本文整理汇总了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;
}
示例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);
}
示例3: dispWidgetAdminGenerateCode
function dispWidgetAdminGenerateCode()
{
$oView =& getView('widget');
Context::set('in_admin', true);
$this->setTemplateFile('widget_generate_code');
return $oView->dispWidgetGenerateCode();
}
示例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);
}
}
示例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;
}
示例6: dispNcartAdminAdditionSetup
function dispNcartAdminAdditionSetup()
{
// content는 다른 모듈에서 call by reference로 받아오기에 미리 변수 선언만 해 놓음
$content = '';
$oEditorView = getView('editor');
$oEditorView->triggerDispEditorAdditionSetup($content);
Context::set('setup_content', $content);
$this->setTemplateFile('additionsetup');
}
示例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');
}
示例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());
}
示例9: getView
<?php
if (ROUTE == '/') {
include getView('hello');
}
示例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());
}
示例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);
示例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);
示例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);
示例14: getTemplate
<?php
require "app/components/frontsite/functions.php";
getTemplate("header");
getTemplate("navi");
getView("landing");
getView("process");
getTemplate("footer");
示例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());
}