Example #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), 'username' => array('name' => 'username', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Username'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'password' => array('name' => 'password', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Password'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'api_type' => array('name' => 'api_type', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Api Type'), 'required' => true), 'api_url' => array('name' => 'api_url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Api Url'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE), 'api_params' => array('name' => 'api_params', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Api Params')), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     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('SMS Provider ID'), 'description' => 'SMS Provider ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('SMS Provider Name'), 'description' => 'Provider internal name points to option_value of option_group sms_provider_name', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('SMS Provider Title'), 'description' => 'Provider name visible to user', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'html' => array('type' => 'Text')), 'username' => array('name' => 'username', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('SMS Provider Username'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'html' => array('type' => 'Text')), 'password' => array('name' => 'password', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('SMS Provider Password'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'html' => array('type' => 'Text')), 'api_type' => array('name' => 'api_type', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('SMS Provider API'), 'description' => 'points to value in civicrm_option_value for group sms_api_type', 'required' => true, 'html' => array('type' => 'Select')), 'api_url' => array('name' => 'api_url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('SMS Provider API URL'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE, 'html' => array('type' => 'Text')), 'api_params' => array('name' => 'api_params', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('SMS Provider API Params'), 'description' => 'the api params in xml, http or smtp format', 'html' => array('type' => 'Text')), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('SMS Provider is Default?'), 'html' => array('type' => 'CheckBox')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('SMS Provider is Active?'), 'html' => array('type' => 'CheckBox')));
     }
     return self::$_fields;
 }