/**
  * 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), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'mapping_type_id' => array('name' => 'mapping_type_id', 'type' => CRM_Utils_Type::T_INT));
     }
     return self::$_fields;
 }
Example #2
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, 'title' => ts('Mapping ID'), 'description' => 'Mapping ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Name of Mapping', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'description' => 'Description of Mapping.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'mapping_type_id' => array('name' => 'mapping_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mapping Type'), 'description' => 'Mapping Type', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'mapping_type', 'optionEditPath' => 'civicrm/admin/options/mapping_type')));
     }
     return self::$_fields;
 }