当前位置: 首页>>代码示例>>PHP>>正文


PHP owa_coreAPI::displayView方法代码示例

本文整理汇总了PHP中owa_coreAPI::displayView方法的典型用法代码示例。如果您正苦于以下问题:PHP owa_coreAPI::displayView方法的具体用法?PHP owa_coreAPI::displayView怎么用?PHP owa_coreAPI::displayView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在owa_coreAPI的用法示例。


在下文中一共展示了owa_coreAPI::displayView方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: postProcess

 function postProcess()
 {
     $this->po->setHtmlBody($this->t->fetch());
     if ($this->get('plainTextView')) {
         $this->po->setAltBody(owa_coreAPI::displayView($this->get('plain_text_view')));
     }
     return $this->po->sendMail();
 }
开发者ID:nishantmendiratta,项目名称:Open-Web-Analytics,代码行数:8,代码来源:owa_view.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: ignore_user_abort

// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $Id$
//
include_once 'owa_env.php';
require_once OWA_BASE_DIR . '/owa_php.php';
/**
 * Special HTTP Requests Controler
 * 
 * @author      Peter Adams <peter@openwebanalytics.com>
 * @copyright   Copyright &copy; 2006 Peter Adams <peter@openwebanalytics.com>
 * @license     http://www.gnu.org/copyleft/gpl.html GPL v2.0
 * @category    owa
 * @package     owa
 * @version		$Revision$	      
 * @since		owa 1.0.0
 */
ignore_user_abort(true);
$owa = new owa_php();
if ($owa->isEndpointEnabled(basename(__FILE__))) {
    $owa->e->debug('Logging Event from Url...');
    // log event
    $ret = $owa->logEventFromUrl();
    echo owa_coreAPI::displayView(array(), 'base.pixel');
} else {
    // unload owa
    $owa->restInPeace();
}
开发者ID:nishantmendiratta,项目名称:Open-Web-Analytics,代码行数:31,代码来源:log.php


注:本文中的owa_coreAPI::displayView方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。