| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
protected $_fields;
/**
- * Class constructor
+ * Class constructor.
*
* @param $customSearchClass
* @param array $formValues
*
* @return CRM_Contact_Selector
*/
- function __construct(
+ public function __construct(
$customSearchClass,
$formValues = NULL,
$params = NULL,
if (in_array($fieldName, array(
'phone',
'im',
- 'email'
+ 'email',
))) {
if ($type) {
$name = "`$locationTypeName-$fieldName-$type`";
}
/**
- * Returns all the rows in the given offset and rowCount
+ * Returns all the rows in the given offset and rowCount.
*
* @param string $action
* The action being performed.
if (in_array($fieldName, array(
'phone',
'im',
- 'email'
+ 'email',
))) {
if ($type) {
$names[] = "{$locationTypeName}-{$fieldName}-{$type}";
elseif (in_array($property, array(
'addressee',
'email_greeting',
- 'postal_greeting'
+ 'postal_greeting',
))) {
$greeting = $property . '_display';
$row[$property] = $result->$greeting;
}
/**
- * Get colunmn headers for search selector
+ * Get colunmn headers for search selector.
*
* @return array
*/
}
return $properties;
}
+
}