本文整理汇总了PHP中CRM_Grant_BAO_Grant::_exportableFields方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Grant_BAO_Grant::_exportableFields方法的具体用法?PHP CRM_Grant_BAO_Grant::_exportableFields怎么用?PHP CRM_Grant_BAO_Grant::_exportableFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Grant_BAO_Grant
的用法示例。
在下文中一共展示了CRM_Grant_BAO_Grant::_exportableFields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}
$grantFields = array('grant_status' => array('title' => 'Grant Status', 'name' => 'grant_status', 'data_type' => CRM_Utils_Type::T_STRING), 'grant_type' => array('title' => 'Grant Type', 'name' => 'grant_type', 'data_type' => CRM_Utils_Type::T_STRING), 'grant_money_transfer_date' => array('title' => 'Grant Money Transfer Date', 'name' => 'grant_money_transfer_date', 'data_type' => CRM_Utils_Type::T_DATE), 'grant_amount_requested' => array('title' => 'Grant Amount Requested', 'name' => 'grant_amount_requested', 'data_type' => CRM_Utils_Type::T_FLOAT), 'grant_application_received_date' => array('title' => 'Grant Application Received Date', 'name' => 'grant_application_received_date', 'data_type' => CRM_Utils_Type::T_DATE));
$fields = CRM_Grant_DAO_Grant::export();
$grantNote = array('grant_note' => array('title' => ts('Grant Note'), 'name' => 'grant_note', 'data_type' => CRM_Utils_Type::T_TEXT));
$fields = array_merge($fields, $grantFields, $grantNote, CRM_Core_BAO_CustomField::getFieldsForImport('Grant'));
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
*/
function &exportableFields()
{
if (!self::$_exportableFields) {
if (!self::$_exportableFields) {
self::$_exportableFields = array();
}
require_once 'CRM/Grant/DAO/Grant.php';
$fields = CRM_Grant_DAO_Grant::export();
$fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Grant'));
self::$_exportableFields = $fields;
}
return self::$_exportableFields;
}