本文整理匯總了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;
}