Disciple_Tools_Counter_Generations

Extends \Disciple_Tools_Counter_Base

Class Disciple_Tools_Counter_Generations

package

Disciple_Tools

Methods

Disciple_Tools_Counter constructor.

__construct() 
inherited

Counts the number of records at the supplied generation level

gen_level( $level,  $type) : integer

Arguments

$level

$type

Response

integer

Counts generation status Returns an array of all contacts in discipleship and their generation status.

generation_status_list(string $type = 'contacts_to_contacts') : array

Arguments

$type

string

Response

array

Helper: Checks if the parent is first generation

get_parent_id( $target,  $p2p_array) : string

Arguments

$target

$p2p_array

Response

string

Helper: Checks if record is zero generation

zero_generation_check( $contact,  $p2p_array_from) : boolean

Arguments

$contact

$p2p_array_from

Response

boolean