本文整理汇总了PHP中CRM_Core_DAO_OptionGroup::_fields方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_DAO_OptionGroup::_fields方法的具体用法?PHP CRM_Core_DAO_OptionGroup::_fields怎么用?PHP CRM_Core_DAO_OptionGroup::_fields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Core_DAO_OptionGroup
的用法示例。
在下文中一共展示了CRM_Core_DAO_OptionGroup::_fields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* 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('Option Group Name'), 'required' => true, '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), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN));
}
return self::$_fields;
}
示例2: array
/**
* 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('Option Group ID'), 'description' => 'Option Group ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Option Group Name'), 'description' => 'Option group name. Used as selection key by class properties which lookup options in civicrm_option_value.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Option Group title'), 'description' => 'Option Group title.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Option Group Description'), 'description' => 'Option group description.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Option Group Is Reserved?'), 'description' => 'Is this a predefined system option group (i.e. it can not be deleted)?', 'default' => '1'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Option Group Is Active?'), 'description' => 'Is this option group active?'), 'is_locked' => array('name' => 'is_locked', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Option Group Is Locked'), 'description' => 'A lock to remove the ability to add new options via the UI.'));
}
return self::$_fields;
}