* @var string
*/
static $_tableName = 'civicrm_address_format';
- /**
- * static instance to hold the field values
- *
- * @var array
- */
- static $_fields = null;
- /**
- * static instance to hold the FK relationships
- *
- * @var string
- */
- static $_links = null;
/**
* static value to see if we should log any modifications to
* this table in the civicrm_log table
* @return array
*/
static function &fields() {
- if (!(self::$_fields)) {
- self::$_fields = array(
+ if (!isset(Civi::$statics[__CLASS__]['fields'])) {
+ Civi::$statics[__CLASS__]['fields'] = array(
'id' => array(
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'description' => 'The format of an address',
) ,
);
+ CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}
- return self::$_fields;
+ return Civi::$statics[__CLASS__]['fields'];
}
/**
* Return a mapping from field-name to the corresponding key (as used in fields()).