當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CRM_Core_Controller::CRM_Core_Controller方法代碼示例

本文整理匯總了PHP中CRM_Core_Controller::CRM_Core_Controller方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Core_Controller::CRM_Core_Controller方法的具體用法?PHP CRM_Core_Controller::CRM_Core_Controller怎麽用?PHP CRM_Core_Controller::CRM_Core_Controller使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CRM_Core_Controller的用法示例。


在下文中一共展示了CRM_Core_Controller::CRM_Core_Controller方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 /**
  * class constructor
  */
 function CRM_Contribute_Controller_Contribution($title = null, $action = CRM_CORE_ACTION_NONE, $modal = true)
 {
     require_once 'CRM/Contribute/StateMachine/Contribution.php';
     parent::CRM_Core_Controller($title, $modal);
     $this->_stateMachine =& new CRM_Contribute_StateMachine_Contribution($this, $action);
     // create and instantiate the pages
     $this->addPages($this->_stateMachine, $action);
     // add all the actions
     $this->addActions();
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:13,代碼來源:Contribution.php

示例2: array

 /**
  * class constructor
  */
 function CRM_Import_Controller($title = null, $action = CRM_CORE_ACTION_NONE, $modal = true)
 {
     parent::CRM_Core_Controller($title, $modal);
     require_once 'CRM/Import/StateMachine.php';
     $this->_stateMachine =& new CRM_Import_StateMachine($this, $action);
     // create and instantiate the pages
     $this->addPages($this->_stateMachine, $action);
     // add all the actions
     $config =& CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('uploadFile'));
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:14,代碼來源:Controller.php

示例3: array

 /**
  * class constructor
  */
 function CRM_Mailing_Controller_Send($title = null, $action = CRM_CORE_ACTION_NONE, $modal = true)
 {
     require_once 'CRM/Mailing/StateMachine/Send.php';
     parent::CRM_Core_Controller($title, $modal);
     $this->_stateMachine =& new CRM_Mailing_StateMachine_Send($this, $action);
     // create and instantiate the pages
     $this->addPages($this->_stateMachine, $action);
     // add all the actions
     $config =& CRM_Core_Config::singleton();
     $this->addActions($config->uploadDir, array('textFile', 'htmlFile'));
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:14,代碼來源:Send.php

示例4:

 /**
  * class constructor
  */
 function CRM_Contact_Controller_Search($title = null, $action = CRM_CORE_ACTION_NONE, $modal = true)
 {
     require_once 'CRM/Contact/StateMachine/Search.php';
     parent::CRM_Core_Controller($title, $modal);
     $this->_stateMachine =& new CRM_Contact_StateMachine_Search($this, $action);
     // create and instantiate the pages
     $this->addPages($this->_stateMachine, $action);
     // add all the actions
     $config =& CRM_Core_Config::singleton();
     $this->addActions();
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:14,代碼來源:Search.php

示例5:

 /**
  * class constructor
  */
 function CRM_Group_Controller($title = null, $action = CRM_CORE_ACTION_NONE, $modal = true)
 {
     parent::CRM_Core_Controller($title, $modal);
     require_once 'CRM/Group/StateMachine.php';
     $this->_stateMachine =& new CRM_Group_StateMachine($this, $action);
     // create and instantiate the pages
     $this->addPages($this->_stateMachine, $action);
     // hack for now, set Search to Basic mode
     $this->_pages['Search']->setAction(CRM_CORE_ACTION_BASIC);
     // add all the actions
     $config =& CRM_Core_Config::singleton();
     $this->addActions();
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:16,代碼來源:Controller.php

示例6: array

 /**
  * constructor
  *
  * @param string path   the class Path of the form being implemented
  * @param string title  the descriptive name for the page
  * @param int    mode   the mode that the form will operate on
  *
  * @return object
  * @access public
  */
 function CRM_Core_Controller_Simple($path, $title, $mode, $imageUpload = false)
 {
     // by definition a single page is modal :). We use the form name as the scope for this controller
     parent::CRM_Core_Controller($title, true, $path);
     $this->_stateMachine =& new CRM_Core_StateMachine($this);
     $params = array($path);
     $this->_stateMachine->addSequentialPages($params, $mode);
     $this->addPages($this->_stateMachine, $mode);
     // always allow a single upload file with same name
     $config =& CRM_Core_Config::singleton();
     if ($imageUpload) {
         $this->addActions($config->imageUploadDir, array('uploadFile'));
     } else {
         $this->addActions($config->uploadDir, array('uploadFile'));
     }
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:26,代碼來源:Simple.php


注:本文中的CRM_Core_Controller::CRM_Core_Controller方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。