예제 #1
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), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Description'), 'rows' => 4, 'cols' => 80), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date')), 'modified_id' => array('name' => 'modified_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Modified Date')), 'saved_search_id' => array('name' => 'saved_search_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_SavedSearch'), 'status_id' => array('name' => 'status_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'type_id' => array('name' => 'type_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'mode_id' => array('name' => 'mode_id', 'type' => CRM_Utils_Type::T_INT), 'total' => array('name' => 'total', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('Total')), 'item_count' => array('name' => 'item_count', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Item Count'), 'required' => true));
     }
     return self::$_fields;
 }
예제 #2
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), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Description'), 'rows' => 4, 'cols' => 80), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date')), 'modified_id' => array('name' => 'modified_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Modified Date')));
     }
     return self::$_fields;
 }