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


PHP getView函数代码示例

本文整理汇总了PHP中getView函数的典型用法代码示例。如果您正苦于以下问题:PHP getView函数的具体用法?PHP getView怎么用?PHP getView使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: loadView

function loadView()
{
    global $com;
    // the component to create the path to include
    if (getView() == null) {
        $view = 'default';
    } else {
        $view = getView();
    }
    $path = ROOT . 'components/com_' . $com . '/views/' . $view . '.php';
    include $path;
}
开发者ID:tapuz,项目名称:alice,代码行数:12,代码来源:alice.php

示例2: testServices

 public function testServices()
 {
     $ins = getAuth();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Auth\IAuth::class, $ins);
     $ins = getView();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\View\IView::class, $ins);
     $ins = getLog();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Log\ILog::class, $ins);
     //        $ins = getDB();
     //        $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Database\MedooDB::class, $ins);
     //        $ins = getRedis();
     //        $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Database\PRedis::class, $ins);
     //        $ins = getDataPool();
     //        $this->assertInstanceOf(\Wwtg99\DataPool\Common\IDataPool::class, $ins);
     $ins = getCache();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Storage\Cache::class, $ins);
     $ins = getSession();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Storage\SessionUtil::class, $ins);
     $ins = getCookie();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Storage\CookieUtil::class, $ins);
     $ins = getOValue();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Storage\OldValue::class, $ins);
     $ins = getAssets();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\View\AssetsManager::class, $ins);
     $ins = getMailer();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Utils\Mail::class, $ins);
     $ins = Flight::Express();
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Utils\Express::class, $ins);
     $ins = getPlugin('php');
     $this->assertInstanceOf(\Wwtg99\Flight2wwu\Component\Plugin\IPlugin::class, $ins);
 }
开发者ID:wwtg99,项目名称:flight2wwu,代码行数:31,代码来源:ComponentTester.php

示例3: dispWidgetAdminGenerateCode

 function dispWidgetAdminGenerateCode()
 {
     $oView =& getView('widget');
     Context::set('in_admin', true);
     $this->setTemplateFile('widget_generate_code');
     return $oView->dispWidgetGenerateCode();
 }
开发者ID:relip,项目名称:xe-core,代码行数:7,代码来源:widget.admin.view.php

示例4: __rebrand_office

	/** 
	 * Override so we don't load any components on the page
	 */
	protected function __rebrand_office($view)
	{
		$this->elements['PAGE_SIDEBARS']['default'] = null;
		$this->elements['SEO_ENGINE_OPTIMIZER']->SetPageTitle(SwitchBoard::$siteOwner->get_site_owner()->get_name());
		$tpl_args = array();
		$renderer = $this->getSmarty();
		
		if (self::$isMobile) {
			$this->layout = getView('site', 'mobile', 'tpl');
			$renderer->render(array(get_class($this->INT), "office.mobile"), $tpl_args);
		} else {
			$renderer->render($view, $tpl_args);		
		}
	}
开发者ID:nicholasbooj,项目名称:Enterprise_Boilerplate,代码行数:17,代码来源:ctrl_Home.action.php

示例5: send

 /**
  * @return bool
  */
 public function send()
 {
     $this->sendHeader();
     switch ($this->resType) {
         case 'json':
             \Flight::json($this->data, $this->resCode, true, 'utf8', $this->jsonOptions);
             return false;
         case 'jsonp':
             \Flight::jsonp($this->data, $this->jsonpCallback, $this->resCode, true, 'utf8', $this->jsonOptions);
             return false;
         case 'view':
             getView()->render($this->view, $this->data);
             return false;
         case 'filter':
             return true;
     }
     return false;
 }
开发者ID:wwtg99,项目名称:flight2wwu,代码行数:21,代码来源:Response.php

示例6: dispNcartAdminAdditionSetup

 function dispNcartAdminAdditionSetup()
 {
     // content는 다른 모듈에서 call by reference로 받아오기에 미리 변수 선언만 해 놓음
     $content = '';
     $oEditorView = getView('editor');
     $oEditorView->triggerDispEditorAdditionSetup($content);
     Context::set('setup_content', $content);
     $this->setTemplateFile('additionsetup');
 }
开发者ID:bjrambo,项目名称:nurigo,代码行数:9,代码来源:ncart.admin.view.php

示例7: dispSocialxeTextyleTool

 function dispSocialxeTextyleTool()
 {
     // 텍스타일의 최신 버전이 아니면 직접 처리
     $oTextyleView =& getView('textyle');
     if (!method_exists($oTextyleView, 'initTool')) {
         $oTextyleModel =& getModel('textyle');
         $site_module_info = Context::get('site_module_info');
         $textyle = $oTextyleModel->getTextyle($site_module_info->index_module_srl);
         Context::set('textyle', $textyle);
         Context::set('custom_menu', $oTextyleModel->getTextyleCustomMenu());
         $template_path = sprintf("%stpl", $oTextyleView->module_path);
         $this->setLayoutPath($template_path);
         $this->setLayoutFile('_tool_layout');
         if ($_COOKIE['tclnb']) {
             Context::addBodyClass('lnbClose');
         } else {
             Context::addBodyClass('lnbToggleOpen');
         }
         // browser title 지정
         Context::setBrowserTitle($textyle->get('browser_title') . ' - admin');
         Context::addHtmlHeader('<link rel="shortcut icon" href="' . $textyle->getFaviconSrc() . '" />');
     }
     // 설정 정보를 받아옴
     Context::set('config', $this->config);
     // 서비스 목록
     $provider_list = $this->providerManager->getFullProviderList();
     Context::set('provider_list', $provider_list);
     // 템플릿 파일 지정
     $this->setTemplatePath($this->module_path . 'tpl');
     $this->setTemplateFile('textyleConfig');
 }
开发者ID:leehankyeol,项目名称:JaWeTip,代码行数:31,代码来源:socialxe.view.php

示例8: rss

 /**
  * @brief rss
  **/
 function rss()
 {
     $oRss =& getView('rss');
     $oDocumentModel =& getModel('document');
     $oModuleModel =& getModel('module');
     $homepage_info = $oModuleModel->getModuleConfig('homepage');
     if ($homepage_info->use_rss != 'Y') {
         return new Object(-1, 'msg_rss_is_disabled');
     }
     $output = executeQueryArray('homepage.getRssList', $args);
     if ($output->data) {
         foreach ($output->data as $key => $val) {
             unset($obj);
             $obj = new DocumentItem(0);
             $obj->setAttribute($val);
             $document_list[] = $obj;
         }
     }
     $oRss->rss($document_list, $homepage_info->browser_title);
     $this->setTemplatePath($oRss->getTemplatePath());
     $this->setTemplateFile($oRss->getTemplateFile());
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:25,代码来源:homepage.view.php

示例9: getView

<?php

if (ROUTE == '/') {
    include getView('hello');
}
开发者ID:xolf,项目名称:myframe,代码行数:5,代码来源:route.php

示例10: rss

 /**
  * @brief rss for publish subscription
  **/
 function rss()
 {
     $oRss =& getView('rss');
     $oRss->module_info = $this->module_info;
     $oRss->rss();
     $this->setTemplatePath($oRss->getTemplatePath());
     $this->setTemplateFile($oRss->getTemplateFile());
 }
开发者ID:google-code-backups,项目名称:xe-textyle,代码行数:11,代码来源:textyle.view.php

示例11: required_param

     $userid = required_param('userid', PARAM_ALPHANUMEXT);
     $response = approveGroupMemberJoin($groupid, $userid);
     break;
 case "mergeselectednodes":
     $groupid = required_param('groupid', PARAM_ALPHANUMEXT);
     $issuenodeid = required_param('issuenodeid', PARAM_ALPHANUMEXT);
     $ids = required_param('ids', PARAM_TEXT);
     $title = required_param('title', PARAM_TEXT);
     $desc = required_param('desc', PARAM_TEXT);
     $response = mergeSelectedNodes($issuenodeid, $groupid, $ids, $title, $desc);
     break;
     /** VIEWS **/
 /** VIEWS **/
 case "getview":
     $viewid = required_param('viewid', PARAM_ALPHANUMEXT);
     $response = getView($viewid, $style);
     break;
 case "getviewsbygroup":
     $groupid = required_param('groupid', PARAM_ALPHANUMEXT);
     $response = getViewsByGroup($groupid, $style);
     break;
 case "getviewsbynode":
     $nodeid = required_param('nodeid', PARAM_ALPHANUMEXT);
     $response = getViewsByNode($nodeid, $style);
     break;
 case "getviewnodes":
     $viewid = required_param('viewid', PARAM_ALPHANUMEXT);
     $response = getViewNodes($viewid, $style);
     break;
 case "getviewnodesbygroup":
     $groupid = required_param('groupid', PARAM_ALPHANUMEXT);
开发者ID:uniteddiversity,项目名称:LiteMap,代码行数:31,代码来源:service.php

示例12: getView

<?php

if (!defined("__ZBXE__")) {
    exit;
}
if ($called_position != "before_display_content") {
    return;
}
// applying to only board module
$oBoardView =& getView('board');
if (Context::getResponseMethod() == "XMLRPC" || Context::getRequestMethod() == 'XMLRPC' || $oBoardView->act != 'dispBoardContent') {
    return;
}
if (!$addon_info->display) {
    Context::addCssFile('./addons/exif/css/exif.css');
}
if ($addon_info->display == '2') {
    Context::addCssFile('./addons/exif/css/exif2.css');
}
if ($addon_info->display == '3') {
    Context::addCssFile('./addons/exif/css/exif3.css');
} else {
    Context::addJsFile('./addons/exif/js/exif.js', false, '', null, 'body');
}
require_once "exif.lib.php";
// call getImageExif() with retrieved image path
$pattern_image_tag = "/<img(.*?)(src=\"[^ ]*)(files\\/attach\\/images\\/[^\"]+)+([^>]*?)(>)+/i";
$pattern_documents_area = '/<!--BeforeDocument\\([0-9]+,[0-9]+\\)-->.+<!--AfterDocument\\([0-9]+,[0-9]+\\)-->/is';
$output = preg_replace_callback($pattern_documents_area, create_function('$matches', "return preg_replace_callback('{$pattern_image_tag}', 'getExifData', \$matches[0]);"), $output);
开发者ID:noxowl,项目名称:Yojouhankai-Sketchbook5,代码行数:29,代码来源:exif.addon.php

示例13: getMapAlertsData

 * @param userids (optional) a comma separated list of userids to get alert data for
 * @param root (optional) a nodeid for the root node of a data tree to process.
 * @return class alertdata with properties 'alertarray', 'userarray', 'nodearray'.
 *
 */
function getMapAlertsData($mapid, $url, $alerttypes, $timeout = 60, $userids = "", $root = "")
{
    global $CFG, $HUB_CACHE;
    $withhistory = true;
    $withvotes = true;
    $withposts = true;
    class alertdata
    {
    }
    $data = array();
    $view = getView($mapid);
    if (!$view instanceof Error) {
        $nodes = $view->nodes;
        $count = count($nodes);
        $nodeArray = array();
        $userArray = array();
        for ($i = 0; $i < $count; $i++) {
            $viewnode = $nodes[$i];
            $node = $viewnode->node;
            $user = $node->users[0];
            $userArray[$user->userid] = $user;
            $nodeArray[$node->nodeid] = $node;
        }
        // Add any users on connections but not on nodes (brokers).
        $conns = $view->connections;
        $countj = count($conns);
开发者ID:uniteddiversity,项目名称:LiteMap,代码行数:31,代码来源:apilib.php

示例14: getTemplate

<?php

require "app/components/frontsite/functions.php";
getTemplate("header");
getTemplate("navi");
getView("landing");
getView("process");
getTemplate("footer");
开发者ID:inap01,项目名称:MySimplePlan,代码行数:8,代码来源:index.php

示例15: rss

 /**
  * @brief rss
  **/
 function rss()
 {
     $oRss =& getView('rss');
     $oRssModel =& getModel('rss');
     $oDocumentModel =& getModel('document');
     if ($this->planet->isHome()) {
         if ($this->module_info->use_rss != 'Y') {
             return new Object(-1, 'msg_rss_is_disabled');
         }
     } else {
         $rss_config = $oRssModel->getRssModuleConfig($this->module_srl);
         if ($rss_config->open_rss != 'Y') {
             return new Object(-1, 'msg_rss_is_disabled');
         }
         $args->module_srl = $this->module_srl;
     }
     $output = executeQueryArray('planet.getRssList', $args);
     if ($output->data) {
         foreach ($output->data as $key => $val) {
             unset($obj);
             $obj = new DocumentItem(0);
             $obj->setAttribute($val);
             $document_list[] = $obj;
         }
     }
     $oRss->rss($document_list, $this->planet->getBrowserTitle());
     $this->setTemplatePath($oRss->getTemplatePath());
     $this->setTemplateFile($oRss->getTemplateFile());
 }
开发者ID:eondcom,项目名称:xe-package-planet,代码行数:32,代码来源:planet.view.php


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