예제 #1
0
파일: EntityBatch.php 프로젝트: kidaa30/yes
 /**
  * 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, 'description' => 'primary key', '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 file, e.g. civicrm_contact', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to entity table specified in entity_table column.', 'required' => true), 'batch_id' => array('name' => 'batch_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to civicrm_batch', 'required' => true, 'FKClassName' => 'CRM_Batch_DAO_Batch'));
     }
     return self::$_fields;
 }
예제 #2
0
 /**
  * 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_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'batch_id' => array('name' => 'batch_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Batch_DAO_Batch'));
     }
     return self::$_fields;
 }