本文整理汇总了PHP中getView函数的典型用法代码示例。如果您正苦于以下问题:PHP getView函数的具体用法?PHP getView怎么用?PHP getView使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getView函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: getView
echo getView($view_files['no_results'], get_defined_vars());
exit;
}
//If the zillow service was able to find any properties which matched the
// address, we can proceed with trying to get additional information about
// the property
if (count($search) > 0) {
$primary_property = $search[0];
//dump($primary_property);
//Let's see if there is a zestimate history chart available
try {
$chart = $primary_property->getChart(Pillow_Property::CHART_UNIT_DOLLAR, 275, 200);
$chart_url = $chart->url;
} catch (Exception $e) {
$chart_url = '/images/no_data.png';
}
//Let's see if there are any comparables available - try to get 5 of them.
try {
$comps = $primary_property->getDeepComps(5);
foreach ($comps as $comp) {
$comp_placemarks[] = $gc->geocode($comp->street . ' ' . $comp->city . ' ' . $comp->state . ' ' . $comp->zipcode);
}
//dump($comps);
} catch (Exception $e) {
}
} else {
echo getView($view_files['no_results'], get_defined_vars());
exit;
}
echo getView($view_files['results'], get_defined_vars());
exit;
开发者ID:robap,项目名称:zillgoog,代码行数:31,代码来源:index.php
示例17: required_param
* consequential damages (including, but not limited to, procurement of *
* substitute goods or services; loss of use, data, or profits; or business *
* interruption) however caused and on any theory of liability, whether in *
* contract, strict liability, or tort (including negligence or otherwise) *
* arising in any way out of the use of this software, even if advised of the *
* possibility of such damage. *
* *
********************************************************************************/
/** Author: Michelle Bachler, KMi, The Open University **/
require_once $_SERVER['DOCUMENT_ROOT'] . '/config.php';
require_once $HUB_FLM->getCodeDirPath("ui/headerstats.php");
$nodeid = required_param("nodeid", PARAM_ALPHANUMEXT);
$node = getNode($nodeid);
$nodes = array();
array_push($nodes, $node);
$view = getView($nodeid, 'shortactivity');
$node = $view->viewnode;
$viewnodes = $view->nodes;
$nodes = array();
array_push($nodes, $node);
$countj = count($viewnodes);
for ($j = 0; $j < $countj; $j++) {
$viewnode = $viewnodes[$j];
array_push($nodes, $viewnode->node);
}
$data = getActivityAnalysisData($nodes);
?>
<script type='text/javascript'>
var NODE_ARGS = new Array();
Event.observe(window, 'load', function() {
开发者ID:uniteddiversity,项目名称:LiteMap,代码行数:31,代码来源:activityanalysis.php
示例18: getView
<?php
/*
* Created on Jan 16, 2005
*
* Created by Teemu Lahtela
* (c) Lämmi
*
* Page template.
*/
// Get the view for content functions
$view =& getView();
global $CSSFILE;
global $JOUKKUEENNIMI;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="fi">
<meta name="GENERATOR" content="PHPEclipse 1.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php
print $CSSFILE;
?>
" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="KooVee II - Uutiset" href="rss.xml" />
<link rel="shortcut icon" href="kuvat/favicon.ico">
<title>
<?php
print $view->getTitle();
开发者ID:kaartine,项目名称:Rysty,代码行数:31,代码来源:page.php
示例19: loadCSS
<?php
//patient component
loadCSS('search.css', 'patient');
$component_name = 'Patients';
//loadJS('add_payment.js','payment');
$patient_id = getVar('patient_id');
switch (getView()) {
case 'search_patients':
//loadView();
loadJS('search-patient.js', 'patient');
//get expected patients for practitioner to select from
$patients_for_today = Patient::getPatientsForToday();
include 'views/search.php';
break;
case 'patient':
//loadView();
//get patient details according to patient_id in url query
$patient = getPatient(getVar('patient_id'));
//get user info
$user = get_userdata($patient->practitioner);
//get appointments
$appointments = getAppointments($patient->patient_id);
//get user_id
$practitioner_id = get_current_user_id();
//$letterCount = letterCount();//used in de patient_menu module
loadJS('patient.js', 'patient');
include 'views/patient_new.php';
break;
}
switch (getTask()) {
开发者ID:tapuz,项目名称:alice,代码行数:31,代码来源:patient.php
示例20: dispMemberAdminInfo
/**
* display member information
*
* @return void
*/
function dispMemberAdminInfo()
{
$oMemberModel = getModel('member');
$oModuleModel = getModel('module');
$member_config = $oModuleModel->getModuleConfig('member');
Context::set('member_config', $member_config);
$extendForm = $oMemberModel->getCombineJoinForm($this->memberInfo);
Context::set('extend_form_list', $extendForm);
$memberInfo = get_object_vars(Context::get('member_info'));
if (!is_array($memberInfo['group_list'])) {
$memberInfo['group_list'] = array();
}
Context::set('memberInfo', $memberInfo);
$disableColumns = array('password', 'find_account_question');
Context::set('disableColumns', $disableColumns);
$security = new Security();
$security->encodeHTML('member_config..');
$security->encodeHTML('extend_form_list...');
$oMemberView = getView('member');
$oMemberView->_getDisplayedMemberInfo($this->memberInfo, $extendForm, $member_config);
$this->setTemplateFile('member_info');
}
开发者ID:umjinsun12,项目名称:dngshin,代码行数:27,代码来源:member.admin.view.php
注:本文中的getView函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论