* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
*
- * @return object CRM_Core_DAO_Mapping object on success, otherwise null
+ * @return object CRM_Core_DAO_Mapping object on success, otherwise NULL
* @static
*/
public static function retrieve(&$params, &$defaults) {
* @param array $params
* An array of name/value pairs.
*
- * @return object CRM_Core_DAO_Mapper object on success, otherwise null
+ * @return object CRM_Core_DAO_Mapper object on success, otherwise NULL
* @static
*/
public static function add($params) {
/**
* Check Duplicate Mapping Name
*
- * @param $nameField
- * String mapping Name.
- * @param $mapTypeId
- * String mapping Type.
+ * @param string $nameField
+ * mapping Name.
+ * @param string $mapTypeId
+ * mapping Type.
*
* @return boolean
*/
* @param int $smartGroupId
* Smart group id.
*
- * @return array $returnFields associated array of elements@static
+ * @return array $returnFields associated array of elements
+ * @static
*/
public static function getFormattedFields($smartGroupId) {
$returnFields = array();
* @param int $columnNo
* @param int $blockCount
* (no of blocks shown).
- * @param null $exportMode
+ * @param NULL $exportMode
*
* @return void
* @static
// FIX ME: For now let's not expose custom data related to relationship
$relationshipCustomFields = array();
//$relationshipCustomFields = self::getRelationTypeCustomGroupData( $id );
- //asort( $relationshipCustomFields ) ;
+ //asort($relationshipCustomFields);
$relationshipType = new CRM_Contact_BAO_RelationshipType();
$relationshipType->id = $id;
* @param int $customfieldId
* Related file id.
*
- * @return null|string $customGroupName all custom group names@static
+ * @return null|string $customGroupName all custom group names
+ * @static
*/
public static function getCustomGroupName($customfieldId) {
if ($customFieldId = CRM_Core_BAO_CustomField::getKeyID($customfieldId)) {
* Row no of the fields.
*
*
- * @return array $returnFields formatted associated array of elements@static
+ * @return array $returnFields formatted associated array of elements
+ * @static
*/
public static function formattedFields(&$params, $row = FALSE) {
$fields = array();
'Multi-Select',
'AdvMulti-Select',
'Multi-Select State/Province',
- 'Multi-Select Country'
+ 'Multi-Select Country',
);
// override the operator to handle separator ( note: this might have some performance issues )
}
// CRM-14983: verify if values are comma separated convert to array
- if (!is_array($value) && (strpos($value,',') !== false || strstr($value, '(')) && empty($isCustomField) && $params['operator'][$key][$k] == 'IN') {
+ if (!is_array($value) && (strpos($value,',') !== FALSE || strstr($value, '(')) && empty($isCustomField) && $params['operator'][$key][$k] == 'IN') {
preg_match('#\((.*?)\)#', $value, $match);
$tmpArray = explode(',', $match[1]);
$value = array_combine(array_values($tmpArray),array_values($tmpArray));
* @param int $mappingId
* Mapping id.
*
- * @return null
+ * @return NULL
* @static
*/
public static function saveMappingFields(&$params, $mappingId) {