Disciple_Tools_Counter_Baptism

Extends \Disciple_Tools_Counter_Base

Class Disciple_Tools_Counter_Baptism

package

Disciple_Tools

Methods

Disciple_Tools_Counter constructor.

__construct() 
inherited

build_baptism_generation_counts

build_baptism_generation_counts(array $elements,  $parent_id,  $generation = -1,  $counts = array()) 
static

Arguments

$elements

array

$parent_id

$generation

$counts

build_baptism_generations_in_range

build_baptism_generations_in_range( $all_baptisms,  $start_date = null,  $end_date = null) 
static

Arguments

$all_baptisms

$start_date

$end_date

Generations of baptisms which occurred in a time range

get_baptism_generations( $start,  $end) : array
static

Arguments

$start

$end

Response

array

Counts the number of contacts with no disciples in database

get_number_of_baptisms( $start,  $end) : float|integer
static
access

public

since 0.1.0

Arguments

$start

$end

Response

float|integer

Counts the number of baptizers who are not zero generation.

get_number_of_baptizers(integer $start, integer $end) : integer
static
access

public

since 0.1.0

Arguments

$start

integer

unix timestamp

$end

integer

unix timestamp

Response

integer

query_get_all_baptism_connections

query_get_all_baptism_connections() 
static

Baptisms with baptism date in range

query_get_baptisms_id_list(integer $start_date, integer $end_date = PHP_INT_MAX) : array
static

Arguments

$start_date

integer

$end_date

integer

Response

array

reset_baptism_generations_on_contact_tree

reset_baptism_generations_on_contact_tree( $contact_id,  $parent_ids = array()) 
static

Arguments

$contact_id

$parent_ids

save_all_contact_generations

save_all_contact_generations() 
static

Properties

total

total : 
static

Type(s)

generations

generations : 
static

Type(s)