Disciple_Tools_Counter

Class Disciple_Tools_Counter_Factory

package

Disciple_Tools

Methods

__construct

__construct() 

Counts the meta_data attached to a P2P connection

connection_type_counter( $type,  $meta_value) : null|string

Arguments

$type

$meta_value

Response

null|string

Counts Contacts with matching $meta_key and $meta_value provided.

contacts_meta_counter( $meta_key,  $meta_value) : integer

Used to retrieve the number of contacts that match the meta_key and meta_value supplied. Example usage: How many contacts have the "unassigned" status? or How many contacts have a "Contact Attempted" status?

Arguments

$meta_key

$meta_value

Response

integer

Gets the critical path.

critical_path(string $step_name = 'all', null $start = null, null $end = null, array $args = array()) : integer|array
static

The steps of the critical path can be called direction, or the entire array for the critical path can be called with 'full'.

Arguments

$step_name

string

$start

null

, unix time stamp

$end

null

$args

array

Response

integer|array

Contact generations counting factory

get_generation( $generation_number, string $type = 'contacts') : \number

Arguments

$generation_number

1,2,3 etc for generation number

$type

string

contacts or groups or baptisms

Response

\number

Counts Contacts with matching $meta_key and $meta_value provided.

groups_meta_counter( $meta_key,  $meta_value) : integer

Used to retrieve the number of contacts that match the meta_key and meta_value supplied. Example usage: How many contacts have the "unassigned" status? or How many contacts have a "Contact Attempted" status?

Arguments

$meta_key

$meta_value

Response

integer

instance

instance() 
static

Sets the p2p_type for the where statement

set_connection_type( $type) : string

Arguments

$type

Response

string

Properties

_instance

_instance : 
static

Type(s)