Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

GroupedAttributeCountUtil Class Reference

Static Public Member Functions

static getCountData ($modelClassName, $attributeName, $filterByAttributeName=null, $filterByAttributeValue=null)

Static Protected Member Functions

static getGroupBySqlPart ($tableName, $columnName)
static runQueryBySqlAndGetCountData ($sql)

Detailed Description

Helper class used to query models and group by specific attributes.

Definition at line 40 of file GroupedAttributeCountUtil.php.


Member Function Documentation

static getCountData ( modelClassName,
attributeName,
filterByAttributeName = null,
filterByAttributeValue = null 
) [static]

Query a model's table by attributeName to get the count of attribute values. An example usage is if you want to know how many records have a certain contact state for all states.

Parameters:
$filterByAttributeName - string identifying attribute that should be filtered on.
$filterByAttributeValue - string of value to filter the attribute by.
Returns:
array of atributeValue / count pairings.

Definition at line 49 of file GroupedAttributeCountUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jan 21 07:10:24 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8