Ejemplo n.º 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), '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' => 255, 'size' => CRM_Utils_Type::HUGE), 'class' => array('name' => 'class', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Class'), 'enumValues' => 'Positive, Pending, Waiting, Negative'), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'is_counted' => array('name' => 'is_counted', 'type' => CRM_Utils_Type::T_BOOLEAN), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'required' => true), 'visibility_id' => array('name' => 'visibility_id', 'type' => CRM_Utils_Type::T_INT));
     }
     return self::$_fields;
 }
 /**
  * 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), 'participant_status' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Participant Status'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_participant_status_type.name', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'class' => array('name' => 'class', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Class'), 'enumValues' => 'Positive, Pending, Waiting, Negative'), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'is_counted' => array('name' => 'is_counted', 'type' => CRM_Utils_Type::T_BOOLEAN), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'required' => true), 'visibility_id' => array('name' => 'visibility_id', 'type' => CRM_Utils_Type::T_INT));
     }
     return self::$_fields;
 }
Ejemplo n.º 3
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('Participant Status Type ID'), 'description' => 'unique participant status type id', 'required' => true), 'participant_status' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Participant Status'), 'description' => 'non-localized name of the status type', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_participant_status_type.name', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Participant Status Label'), 'description' => 'localized label for display of this status type', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'class' => array('name' => 'class', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Participant Status Class'), 'description' => 'the general group of status type this one belongs to', 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Event_PseudoConstant::participantStatusClassOptions')), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Participant Status Is Reserved?>'), 'description' => 'whether this is a status type required by the system'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Participant Status is Active'), 'description' => 'whether this status type is active', 'default' => '1'), 'is_counted' => array('name' => 'is_counted', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Participant Status Counts?'), 'description' => 'whether this status type is counted against event size limit'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'description' => 'controls sort order', 'required' => true), 'visibility_id' => array('name' => 'visibility_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Participant Status Visibility'), 'description' => 'whether the status type is visible to the public, an implicit foreign key to option_value.value related to the `visibility` option_group', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'visibility', 'optionEditPath' => 'civicrm/admin/options/visibility')));
     }
     return self::$_fields;
 }