本文整理匯總了PHP中CRM_Contact_Form_Search::_modeValues方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Contact_Form_Search::_modeValues方法的具體用法?PHP CRM_Contact_Form_Search::_modeValues怎麽用?PHP CRM_Contact_Form_Search::_modeValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRM_Contact_Form_Search
的用法示例。
在下文中一共展示了CRM_Contact_Form_Search::_modeValues方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setModeValues
public static function setModeValues()
{
if (!self::$_modeValues) {
self::$_modeValues = array(1 => array('selectorName' => self::$_selectorName, 'selectorLabel' => ts('Contacts'), 'taskFile' => 'CRM/Contact/Form/Search/ResultTasks.tpl', 'taskContext' => NULL, 'resultFile' => 'CRM/Contact/Form/Selector.tpl', 'resultContext' => NULL, 'taskClassName' => 'CRM_Contact_Task'), 2 => array('selectorName' => 'CRM_Contribute_Selector_Search', 'selectorLabel' => ts('Contributions'), 'taskFile' => 'CRM/common/searchResultTasks.tpl', 'taskContext' => 'Contribution', 'resultFile' => 'CRM/Contribute/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Contribute_Task'), 3 => array('selectorName' => 'CRM_Event_Selector_Search', 'selectorLabel' => ts('Event Participants'), 'taskFile' => 'CRM/common/searchResultTasks.tpl', 'taskContext' => NULL, 'resultFile' => 'CRM/Event/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Event_Task'), 4 => array('selectorName' => 'CRM_Activity_Selector_Search', 'selectorLabel' => ts('Activities'), 'taskFile' => 'CRM/common/searchResultTasks.tpl', 'taskContext' => NULL, 'resultFile' => 'CRM/Activity/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Activity_Task'), 5 => array('selectorName' => 'CRM_Member_Selector_Search', 'selectorLabel' => ts('Memberships'), 'taskFile' => "CRM/common/searchResultTasks.tpl", 'taskContext' => NULL, 'resultFile' => 'CRM/Member/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Member_Task'), 6 => array('selectorName' => 'CRM_Case_Selector_Search', 'selectorLabel' => ts('Cases'), 'taskFile' => "CRM/common/searchResultTasks.tpl", 'taskContext' => NULL, 'resultFile' => 'CRM/Case/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Case_Task'), 7 => array('selectorName' => self::$_selectorName, 'selectorLabel' => ts('Related Contacts'), 'taskFile' => 'CRM/Contact/Form/Search/ResultTasks.tpl', 'taskContext' => NULL, 'resultFile' => 'CRM/Contact/Form/Selector.tpl', 'resultContext' => NULL, 'taskClassName' => 'CRM_Contact_Task'), 8 => array('selectorName' => 'CRM_Mailing_Selector_Search', 'selectorLabel' => ts('Mailings'), 'taskFile' => "CRM/common/searchResultTasks.tpl", 'taskContext' => NULL, 'resultFile' => 'CRM/Mailing/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Mailing_Task'));
}
}
示例2: setModeValues
function setModeValues()
{
if (!self::$_modeValues) {
self::$_modeValues = array(1 => array('selectorName' => property_exists($this, '_selectorName') && $this->_selectorName ? $this->_selectorName : 'CRM_Contact_Selector', 'selectorLabel' => ts('Contacts'), 'taskFile' => "CRM/Contact/Form/Search/ResultTasks.tpl", 'taskContext' => null, 'resultFile' => 'CRM/Contact/Form/Selector.tpl', 'resultContext' => null, 'taskClassName' => 'CRM_Contact_Task'), 2 => array('selectorName' => 'CRM_Contribute_Selector_Search', 'selectorLabel' => ts('Contributions'), 'taskFile' => "CRM/common/searchResultTasks.tpl", 'taskContext' => 'Contribution', 'resultFile' => 'CRM/Contribute/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Contribute_Task'), 3 => array('selectorName' => 'CRM_Event_Selector_Search', 'selectorLabel' => ts('Event Participants'), 'taskFile' => "CRM/common/searchResultTasks.tpl", 'taskContext' => null, 'resultFile' => 'CRM/Event/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Event_Task'), 4 => array('selectorName' => 'CRM_Activity_Selector_Search', 'selectorLabel' => ts('Activities'), 'taskFile' => "CRM/common/searchResultTasks.tpl", 'taskContext' => null, 'resultFile' => 'CRM/Activity/Form/Selector.tpl', 'resultContext' => 'Search', 'taskClassName' => 'CRM_Activity_Task'));
}
}