示例#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, 'title' => ts('Contact Type ID'), 'description' => 'Contact Type ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Internal name of Contact Type (or Subtype).', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Contact Type Label'), 'description' => 'localized Name of Contact Type.', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Contact Type Description'), 'description' => 'localized Optional verbose description of the type.', 'rows' => 2, 'cols' => 60, 'html' => array('type' => 'TextArea')), 'image_URL' => array('name' => 'image_URL', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Contact Type Image URL'), 'description' => 'URL of image if any.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact Type Parent'), 'description' => 'Optional FK to parent contact type.', 'FKClassName' => 'CRM_Contact_DAO_ContactType'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Contact Type Is Active?'), 'description' => 'Is this entry active?'), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Contact Type is Reserved?'), 'description' => 'Is this contact type a predefined system type'));
     }
     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' => 2, 'cols' => 60), 'image_URL' => array('name' => 'image_URL', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Image Url'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_ContactType'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }