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


PHP owa_coreAPI::performAction方法代碼示例

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


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

示例1: notify

 /**
  * Notify Handler
  *
  * @access 	public
  * @param 	object $event
  */
 function notify($event)
 {
     $s = owa_coreAPI::entityFactory('base.site');
     $s->getByPk('siteId', $event->get('siteId'));
     if ($s->wasPersisted()) {
         $ret = owa_coreAPI::performAction('base.notifyNewSession', array('site' => $s, 'event' => $event));
         return OWA_EHS_EVENT_HANDLED;
     } else {
         return OWA_EHS_EVENT_FAILED;
     }
 }
開發者ID:nishantmendiratta,項目名稱:Open-Web-Analytics,代碼行數:17,代碼來源:notifyHandlers.php

示例2: handleRequest

 /**
  * Handles OWA internal page/action requests
  *
  * @return unknown
  */
 public static function handleRequest($caller_params = null, $action = '')
 {
     static $init;
     $service = owa_coreAPI::serviceSingleton();
     // Override request parsms with those passed by caller
     if (!empty($caller_params)) {
         $service->request->mergeParams($caller_params);
     }
     $params = $service->request->getAllOwaParams();
     if ($init != true) {
         owa_coreAPI::debug('Handling request with params: ' . print_r($params, true));
     }
     // backwards compatability with old style view/controler scheme
     // still needed??
     if (array_key_exists('view', $params)) {
         // its a view request so the only data is in whats in the params
         $init = true;
         return owa_coreAPI::displayView($params);
     }
     if (empty($action)) {
         $action = owa_coreAPI::getRequestParam('action');
         if (empty($action)) {
             $action = owa_coreAPI::getRequestParam('do');
             if (empty($action)) {
                 $action = owa_coreAPI::getSetting('base', 'start_page');
                 $params['do'] = $action;
             }
         }
     }
     $init = true;
     owa_coreAPI::debug('About to perform action: ' . $action);
     return owa_coreAPI::performAction($action, $params);
 }
開發者ID:ashutoshdev,項目名稱:Open-Web-Analytics,代碼行數:38,代碼來源:owa_coreAPI.php

示例3: getWidget

 function getWidget($do, $params = array(), $wrapper = true, $add_state = true)
 {
     $final_params = array();
     if (empty($params)) {
         $params = array();
     }
     $params['do'] = $do;
     if ($wrapper === true) {
         $params['initial_view'] = true;
         $params['wrapper'] = true;
     } elseif ($wrapper === 'inpage') {
         $params['initial_view'] = true;
         $params['wrapper'] = 'inpage';
     } else {
         $params['wrapper'] = false;
     }
     // add state params into request params
     if ($add_state === true) {
         $final_params = array_merge($final_params, $this->caller_params['link_state']);
     }
     // apply overides made via the template
     $final_params = array_merge($final_params, array_filter($params));
     return owa_coreAPI::performAction($do, $final_params);
 }
開發者ID:nishantmendiratta,項目名稱:Open-Web-Analytics,代碼行數:24,代碼來源:owa_template.php

示例4: handleEvent

 function handleEvent($action)
 {
     $data = owa_coreAPI::performAction($action, array('event' => $this->m));
     return owa_coreAPI::debug(sprintf("Handled Event. Action: %s", $action));
 }
開發者ID:ashutoshdev,項目名稱:Open-Web-Analytics,代碼行數:5,代碼來源:owa_observer.php


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