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


PHP CRM_Core_Page_Basic類代碼示例

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


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

示例1: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the  
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  *
  * @return void
  * @access public
  *
  */
 function run()
 {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Payment Processor'));
     $breadCrumb = array(array('title' => ts('Global Settings'), 'url' => CRM_Utils_System::url('civicrm/admin/setting', 'reset=1')));
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     return parent::run();
 }
開發者ID:ksecor,項目名稱:civicrm,代碼行數:19,代碼來源:PaymentProcessor.php

示例2: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  *
  * @return void
  * @access public
  *
  */
 function run()
 {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Scheduled Jobs Log'));
     $breadCrumb = array(array('title' => ts('Administration'), 'url' => CRM_Utils_System::url('civicrm/admin', 'reset=1')));
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     return parent::run();
 }
開發者ID:prashantgajare,項目名稱:civicrm-core,代碼行數:19,代碼來源:JobLog.php

示例3: run

 function run()
 {
     $this->_mailing_id = CRM_Utils_Request::retrieve('mid', $this);
     require_once 'CRM/Mailing/BAO/Mailing.php';
     $report =& CRM_Mailing_BAO_Mailing::report($this->_mailing_id);
     $this->assign('report', $report);
     CRM_Utils_System::setTitle(ts('CiviMail Report: %1', array(1 => $report['mailing']['name'])));
     parent::run();
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:9,代碼來源:Report.php

示例4: __construct

 /**
  * Class constructor.
  *
  * @param string $title
  *   Title of the page.
  * @param int $mode
  *   Mode of the page.
  *
  */
 public function __construct($title = NULL, $mode = NULL)
 {
     parent::__construct($title, $mode);
     $this->account_id = CRM_Utils_Request::retrieve('account_id', 'Integer', CRM_Core_DAO::$_nullObject, true);
     $this->assign('account_id', $this->account_id);
     $this->assign('civicrm_fields', CRM_Myemma_Utils::buildCiviCRMFieldList());
     $this->assign('location_types', CRM_Myemma_Utils::locationTypes());
     $this->assign('my_emma_fields', CRM_Myemma_Utils::buildMyEmmaFieldList($this->account_id));
 }
開發者ID:CiviCooP,項目名稱:org.civicoop.myemma,代碼行數:18,代碼來源:MyEmmaFieldMap.php

示例5: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  */
 public function run()
 {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - SMS Provider'));
     $breadCrumb = array(array('title' => ts('SMS Provider'), 'url' => CRM_Utils_System::url('civicrm/admin/sms/provider', 'reset=1')));
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     $this->_id = CRM_Utils_Request::retrieve('id', 'String', $this, FALSE, 0);
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 0);
     return parent::run();
 }
開發者ID:FundingWorks,項目名稱:civicrm-core,代碼行數:17,代碼來源:Provider.php

示例6: run

 function run()
 {
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, false, 0);
     $this->assign('action', $action);
     $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, false, 0);
     if (!$action) {
         $this->browse();
     }
     parent::run();
 }
開發者ID:bhirsch,項目名稱:voipdev,代碼行數:10,代碼來源:ContactType.php

示例7: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  *
  * @return void
  */
 public function run()
 {
     CRM_Utils_System::setTitle(ts('Query Runner'));
     $this->_id = CRM_Utils_Request::retrieve('id', 'String', $this, FALSE, 0);
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 0);
     if ($this->_action == 'export') {
         $session = CRM_Core_Session::singleton();
         $session->pushUserContext(CRM_Utils_System::url('civicrm/query-runner', 'reset=1'));
     }
     return parent::run();
 }
開發者ID:imba-us,項目名稱:com.imba.queryrunner,代碼行數:20,代碼來源:QueryRunner.php

示例8: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  */
 public function run()
 {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Payment Processor'));
     //CRM-15546
     $paymentProcessorTypes = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_PaymentProcessor', 'payment_processor_type_id', array('labelColumn' => 'name', 'flip' => 1));
     $this->assign('defaultPaymentProcessorType', $paymentProcessorTypes['PayPal']);
     $breadCrumb = array(array('title' => ts('Administration'), 'url' => CRM_Utils_System::url('civicrm/admin', 'reset=1')));
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     return parent::run();
 }
開發者ID:nielosz,項目名稱:civicrm-core,代碼行數:18,代碼來源:PaymentProcessor.php

示例9: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  */
 public function run()
 {
     // set title and breadcrumb
     CRM_Utils_System::setTitle(ts('Settings - Scheduled Jobs'));
     $breadCrumb = array(array('title' => ts('Scheduled Jobs'), 'url' => CRM_Utils_System::url('civicrm/admin', 'reset=1')));
     CRM_Utils_System::appendBreadCrumb($breadCrumb);
     $this->_id = CRM_Utils_Request::retrieve('id', 'String', $this, FALSE, 0);
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 0);
     if ($this->_action == 'export') {
         $session = CRM_Core_Session::singleton();
         $session->pushUserContext(CRM_Utils_System::url('civicrm/admin/job', 'reset=1'));
     }
     return parent::run();
 }
開發者ID:kcristiano,項目名稱:civicrm-core,代碼行數:21,代碼來源:Job.php

示例10: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  *
  * @return void
  * @access public
  *
  */
 function run()
 {
     CRM_Utils_System::setTitle(ts('Appraisal Criteria'));
     // get the requested action
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, false, 'browse');
     // default to 'browse'
     // assign vars to templates
     $this->assign('action', $action);
     $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, false, 0);
     // what action to take ?
     if ($action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD)) {
         $this->edit($action, $id);
     }
     // parent run
     return parent::run();
 }
開發者ID:JoeMurray,項目名稱:civihr,代碼行數:27,代碼來源:AppraisalCriteria.php

示例11: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the type
  * of action and executes that action. Finally it calls the parent's run
  * method.
  */
 public function run()
 {
     // get the requested action, default to 'browse'
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
     // assign vars to templates
     $this->assign('action', $action);
     $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0);
     $context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE);
     if ($context == 'nonDupe') {
         CRM_Core_Session::setStatus(ts('Selected contacts have been marked as not duplicates'), ts('Changes Saved'), 'success');
     }
     // assign permissions vars to template
     $this->assign('hasperm_administer_dedupe_rules', CRM_Core_Permission::check('administer dedupe rules'));
     $this->assign('hasperm_merge_duplicate_contacts', CRM_Core_Permission::check('merge duplicate contacts'));
     // which action to take?
     if ($action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD)) {
         $this->edit($action, $id);
     }
     if ($action & CRM_Core_Action::DELETE) {
         $this->delete($id);
     }
     // browse the rules
     $this->browse();
     // parent run
     return parent::run();
 }
開發者ID:nielosz,項目名稱:civicrm-core,代碼行數:33,代碼來源:DedupeRules.php

示例12: run

 /**
  * Run the basic page (run essentially starts execution for that page).
  *
  * @return void
  */
 function run()
 {
     $this->preProcess();
     return parent::run();
 }
開發者ID:prashantgajare,項目名稱:civicrm-core,代碼行數:10,代碼來源:SurveyType.php

示例13: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  *
  * @return void
  */
 public function run()
 {
     // get the requested action
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
     // assign vars to templates
     $this->assign('action', $action);
     $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0);
     // what action to take ?
     if ($action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD | CRM_Core_Action::PREVIEW)) {
         $this->edit($action, $id, TRUE);
     }
     // finally browse the custom groups
     $this->browse();
     // parent run
     return parent::run();
 }
開發者ID:BorislavZlatanov,項目名稱:civicrm-core,代碼行數:25,代碼來源:ManagePremiums.php

示例14: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the  
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  *
  * @param
  * @return void
  * @access public
  */
 function run()
 {
     // get the requested action
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, false, 'browse');
     if ($action & CRM_Core_Action::REVERT) {
         $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, false);
         CRM_Contribute_BAO_PCP::setIsActive($id, 0);
         $session = CRM_Core_Session::singleton();
         $session->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
     } elseif ($action & CRM_Core_Action::RENEW) {
         $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, false);
         CRM_Contribute_BAO_PCP::setIsActive($id, 1);
         $session = CRM_Core_Session::singleton();
         $session->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
     } elseif ($action & CRM_Core_Action::DELETE) {
         $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, false);
         $session = CRM_Core_Session::singleton();
         $session->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1&action=browse'));
         $controller = new CRM_Core_Controller_Simple('CRM_Contribute_Form_PCP_PCP', 'Personal Campaign Page', CRM_Core_Action::DELETE);
         //$this->setContext( $id, $action );
         $controller->set('id', $id);
         $controller->process();
         return $controller->run();
     }
     // finally browse
     $this->browse();
     // parent run
     parent::run();
 }
開發者ID:hampelm,項目名稱:Ginsberg-CiviDemo,代碼行數:40,代碼來源:PCP.php

示例15: run

 /**
  * Run the page.
  *
  * This method is called after the page is created. It checks for the
  * type of action and executes that action.
  * Finally it calls the parent's run method.
  */
 public function run()
 {
     // get the requested action
     $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
     // assign vars to templates
     $this->assign('action', $action);
     $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0);
     $this->assign('id', $id);
     $this->edit($action, $id, FALSE, FALSE);
     // this is special case where we need to call browse to list premium
     if ($action == CRM_Core_Action::UPDATE) {
         $this->browse();
     }
     // parent run
     return parent::run();
 }
開發者ID:hyebahi,項目名稱:civicrm-core,代碼行數:23,代碼來源:Premium.php


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