本文整理汇总了PHP中CRM_Core_DAO_Mapping::_fields方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_DAO_Mapping::_fields方法的具体用法?PHP CRM_Core_DAO_Mapping::_fields怎么用?PHP CRM_Core_DAO_Mapping::_fields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Core_DAO_Mapping
的用法示例。
在下文中一共展示了CRM_Core_DAO_Mapping::_fields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* 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), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'mapping_type_id' => array('name' => 'mapping_type_id', 'type' => CRM_Utils_Type::T_INT));
}
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('Mapping ID'), 'description' => 'Mapping ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Name of Mapping', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'description' => 'Description of Mapping.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'mapping_type_id' => array('name' => 'mapping_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mapping Type'), 'description' => 'Mapping Type', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'mapping_type', 'optionEditPath' => 'civicrm/admin/options/mapping_type')));
}
return self::$_fields;
}