本文整理汇总了PHP中CRM_Case_BAO_Case::_exportableFields方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Case_BAO_Case::_exportableFields方法的具体用法?PHP CRM_Case_BAO_Case::_exportableFields怎么用?PHP CRM_Case_BAO_Case::_exportableFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Case_BAO_Case
的用法示例。
在下文中一共展示了CRM_Case_BAO_Case::_exportableFields方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* combine all the exportable fields from the lower levels object
*
* @return array array of exportable Fields
* @access public
*/
function &exportableFields()
{
if (!self::$_exportableFields) {
if (!self::$_exportableFields) {
self::$_exportableFields = array();
}
require_once 'CRM/Case/DAO/Case.php';
$fields = CRM_Case_DAO_Case::import();
$fields['case_role'] = array('title' => ts('Role in Case'));
self::$_exportableFields = $fields;
}
return self::$_exportableFields;
}
示例2: array
/**
* combine all the exportable fields from the lower levels object
*
* @return array array of exportable Fields
* @access public
* @static
*/
static function &exportableFields()
{
if (!self::$_exportableFields) {
if (!self::$_exportableFields) {
self::$_exportableFields = array();
}
$fields = CRM_Case_DAO_Case::export();
$fields['case_role'] = array('title' => ts('Role in Case'));
$fields['case_type'] = array('title' => ts('Case Type'), 'name' => 'case_type');
$fields['case_status'] = array('title' => ts('Case Status'), 'name' => 'case_status');
self::$_exportableFields = $fields;
}
return self::$_exportableFields;
}
示例3: array
/**
* Combine all the exportable fields from the lower levels object.
*
* @return array
* array of exportable Fields
*/
public static function &exportableFields()
{
if (!self::$_exportableFields) {
if (!self::$_exportableFields) {
self::$_exportableFields = array();
}
$fields = CRM_Case_DAO_Case::export();
$fields['case_role'] = array('title' => ts('Role in Case'));
$fields['case_type'] = array('title' => ts('Case Type'), 'name' => 'case_type');
$fields['case_status'] = array('title' => ts('Case Status'), 'name' => 'case_status');
// add custom data for cases
$fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Case'));
self::$_exportableFields = $fields;
}
return self::$_exportableFields;
}