本文整理汇总了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'));
}
}