当前位置: 首页>>代码示例>>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;未经允许,请勿转载。