当前位置: 首页>>代码示例>>PHP>>正文


PHP CRM_Contact_Form_Search::_modeValues方法代码示例

本文整理汇总了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'));
     }
 }
开发者ID:nganivet,项目名称:civicrm-core,代码行数:6,代码来源:Search.php

示例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'));
     }
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:6,代码来源:Search.php


注:本文中的CRM_Contact_Form_Search::_modeValues方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。