コード例 #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'task_id' => array('name' => 'task_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Project_DAO_Task'), 'responsible_entity_table' => array('name' => 'responsible_entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Responsible Entity Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'responsible_entity_id' => array('name' => 'responsible_entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Responsible'), 'required' => true), 'target_entity_table' => array('name' => 'target_entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Target Entity Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'target_entity_id' => array('name' => 'target_entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Target'), 'required' => true), 'status_detail' => array('name' => 'status_detail', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Status Details')), 'status_id' => array('name' => 'status_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Status')), 'create_date' => array('name' => 'create_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created')), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Last Modified')));
     }
     return self::$_fields;
 }