Пример #1
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'description' => 'physical tablename for entity being joined to discount, e.g. civicrm_event', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id1' => array('name' => 'entity_id1', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity Id1'), 'description' => 'FK to entity table specified in entity_table column.', 'required' => true), 'entity_id2' => array('name' => 'entity_id2', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity Id2'), 'description' => 'FK to entity table specified in entity_table column.', 'required' => true), 'cacheKey' => array('name' => 'cacheKey', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Cachekey'), 'description' => 'Unique path name for cache element of the searched item', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data'), 'description' => 'cached snapshot of the serialized data'), 'is_selected' => array('name' => 'is_selected', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id1' => array('name' => 'entity_id1', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity Id1'), 'required' => true), 'entity_id2' => array('name' => 'entity_id2', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity Id2'), 'required' => true), 'cacheKey' => array('name' => 'cacheKey', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Cachekey'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data')), 'is_selected' => array('name' => 'is_selected', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }