Пример #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), 'price_field_id' => array('name' => 'price_field_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'Snapshot_v4p2_Price_DAO_Field'), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Description'), 'rows' => 2, 'cols' => 60, 'default' => 'UL'), 'amount' => array('name' => 'amount', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Amount'), 'required' => true, 'maxlength' => 512, 'size' => CRM_Utils_Type::HUGE), 'count' => array('name' => 'count', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Count'), 'default' => 'UL'), 'max_value' => array('name' => 'max_value', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Max Value'), 'default' => 'UL'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'default' => ''), 'membership_type_id' => array('name' => 'membership_type_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Member_DAO_MembershipType'), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''));
     }
     return self::$_fields;
 }