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


PHP CRM_Core_StateMachine::CRM_Core_StateMachine方法代码示例

本文整理汇总了PHP中CRM_Core_StateMachine::CRM_Core_StateMachine方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_StateMachine::CRM_Core_StateMachine方法的具体用法?PHP CRM_Core_StateMachine::CRM_Core_StateMachine怎么用?PHP CRM_Core_StateMachine::CRM_Core_StateMachine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CRM_Core_StateMachine的用法示例。


在下文中一共展示了CRM_Core_StateMachine::CRM_Core_StateMachine方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 /**
  * class constructor
  *
  * @param object  CRM_Contribute_Controller_ContributionPage
  * @param int     $action
  *
  * @return object CRM_Contribute_StateMachine_ContributionPage
  */
 function CRM_Contribute_StateMachine_ContributionPage($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $session =& CRM_Core_Session::singleton();
     $session->set('singleForm', false);
     $this->_pages = array('CRM_Contribute_Form_ContributionPage_Settings', 'CRM_Contribute_Form_ContributionPage_Amount', 'CRM_Contribute_Form_ContributionPage_ThankYou', 'CRM_Contribute_Form_ContributionPage_Custom', 'CRM_Contribute_Form_ContributionPage_Premium');
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:16,代码来源:ContributionPage.php

示例2: array

 /**
  * class constructor
  */
 function CRM_Contribute_StateMachine_Search($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $this->_pages = array();
     $this->_pages[] = 'CRM_Contribute_Form_Search';
     list($task, $result) = $this->taskName($controller, 'Search');
     $this->_task = $task;
     if (is_array($task)) {
         foreach ($task as $t) {
             $this->_pages[] = $t;
         }
     } else {
         $this->_pages[] = $task;
     }
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:19,代码来源:Search.php

示例3: array

 /**
  * class constructor
  */
 function CRM_Contact_StateMachine_Search($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $this->_pages = array();
     if ($action == CRM_CORE_ACTION_ADVANCED) {
         $this->_pages[] = 'CRM_Contact_Form_Search_Advanced';
         list($task, $result) = $this->taskName($controller, 'Advanced');
     } else {
         $this->_pages[] = 'CRM_Contact_Form_Search';
         list($task, $result) = $this->taskName($controller, 'Search');
     }
     $this->_task = $task;
     if (is_array($task)) {
         foreach ($task as $t) {
             $this->_pages[] = $t;
         }
     } else {
         $this->_pages[] = $task;
     }
     if ($result) {
         $this->_pages[] = 'CRM_Contact_Form_Task_Result';
     }
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:27,代码来源:Search.php

示例4: array

 /**
  * class constructor
  *
  * @param object  CRM_History_Import_Controller
  * @param int     $action
  *
  * @return object CRM_History_Import_StateMachine
  */
 function CRM_History_Import_StateMachine($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $this->_pages = array('CRM_History_Import_Form_UploadFile', 'CRM_History_Import_Form_MapField', 'CRM_History_Import_Form_Preview', 'CRM_History_Import_Form_Summary');
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:14,代码来源:StateMachine.php

示例5: array

 /**
  * class constructor
  *
  * @param object  CRM_Import_Controller
  * @param int     $action
  *
  * @return object CRM_Import_StateMachine
  */
 function CRM_Contribute_StateMachine_Contribution($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $this->_pages = array('CRM_Contribute_Form_Contribution_Main', 'CRM_Contribute_Form_Contribution_Confirm', 'CRM_Contribute_Form_Contribution_ThankYou');
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:14,代码来源:Contribution.php

示例6: array

 /**
  * class constructor
  *
  * @param object  CRM_Mailing_Controller
  * @param int     $action
  *
  * @return object CRM_Mailing_StateMachine
  */
 function CRM_Mailing_StateMachine_Send($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $this->_pages = array('CRM_Mailing_Form_Name', 'CRM_Mailing_Form_Group', 'CRM_Mailing_Form_Upload', 'CRM_Mailing_Form_Test', 'CRM_Mailing_Form_Schedule');
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:14,代码来源:Send.php

示例7: array

 /**
  * class constructor
  */
 function CRM_Group_StateMachine($controller, $action = CRM_CORE_ACTION_NONE)
 {
     parent::CRM_Core_StateMachine($controller, $action);
     $this->_pages = array('CRM_Group_Form_Edit', 'CRM_Contact_Form_Search', 'CRM_Contact_Form_Task_AddToGroup', 'CRM_Contact_Form_Task_Result');
     $this->addSequentialPages($this->_pages, $action);
 }
开发者ID:bhirsch,项目名称:voipdrupal-4.7-1.0,代码行数:9,代码来源:StateMachine.php


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