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