本文整理匯總了PHP中eZTemplate::resetInstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZTemplate::resetInstance方法的具體用法?PHP eZTemplate::resetInstance怎麽用?PHP eZTemplate::resetInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZTemplate
的用法示例。
在下文中一共展示了eZTemplate::resetInstance方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: render
/**
* Renders the block (returns HTML)
*
* @return string HTML
**/
public function render()
{
$tpl = eZTemplate::factory();
$tpl->setVariable( 'articles', $this->getSolrArticles() );
$blockResult = $tpl->fetch( 'design:presenters/block/congressreport.tpl' );
eZTemplate::resetInstance();
return $blockResult;
}
示例2: render
/**
* Renders the block (returns HTML)
*
* @return string HTML
**/
public function render()
{
$tpl = eZTemplate::factory();
$page = $this->fetchStaticPage();
$tpl->setVariable( 'core_content', str_replace( '/bundles/static-data/', '/esibuild/static/', $page->attribute('core_content') ) );
$renderResult = $tpl->fetch( 'design:presenters/block/content.tpl' );
eZTemplate::resetInstance();
return $renderResult;
}
示例3: tpl
/**
* @return eZTemplate
*/
public function tpl()
{
if(is_null($this->_tpl))
{
eZTemplate::resetInstance();
$this->_tpl = eZTemplate::factory();
if (SolrSafeOperatorHelper::featureIsActive('showMedicalNewsDemo') && SolrSafeOperatorHelper::feature('ShowMedicalNewsDemo', 'showDemo')){
$showMedicalNewsDemo = true;
}else {
$showMedicalNewsDemo = false;
}
$this->_tpl->setVariable('showMedicalNewsDemo',$showMedicalNewsDemo);
$this->_tpl->setVariable('language' , LocaleTool::languageISO639Code());
$this->_tpl->setVariable('application_class' , get_class($this) );
$this->_tpl->setVariable('view_parameters' , $this->_params['UserParameters']);
$this->_tpl->setVariable('cluster_identifier', ClusterTool::clusterIdentifier());
$this->_tpl->setVariable('application_url' , $this->applicationName());
$this->_tpl->setVariable('consult' , $this->isConsult);
$this->_tpl->setVariable('httpcontext' , array(
'host' => ContextTool::instance()->domain(),
));
$environment = new MMEnvironment();
$this->_tpl->setVariable('environment' , $environment->env);
$applicationLocalized = CacheApplicationTool::buildLocalizedApplication($this->applicationName());
if (empty($applicationLocalized))
$this->_tpl->setVariable('application_name' , $this->applicationName());
else
{
$applicationIdentifier = $applicationLocalized->applicationObject->attribute('identifier');
$this->_tpl->setVariable('application_name' , $applicationIdentifier );
$this->_tpl->setVariable('current_localized' , $applicationLocalized );
$this->_tpl->setVariable('current_application' , $applicationLocalized->applicationObject );
}
}
return $this->_tpl;
}
示例4: render
/**
* Renders the block (returns HTML)
*
* @return string HTML
**/
public function render()
{
$tpl = eZTemplate::factory();
$tpl->setVariable( 'articles', $this->getSolrArticles() );
$tpl->setVariable( 'additional_classes', $this->additionalClasses() );
$tpl->setVariable( 'app', $this->applicationObject );
$tpl->setVariable( 'app_localized', $this->applicationLocalized );
$tpl->setVariable( 'app_url_alias', $this->appUrlAlias() );
$tpl->setVariable( 'cluster_identifier', ClusterTool::clusterIdentifier() );
$tpl->setVariable( 'include_app_name', SolrSafeOperatorHelper::clusterIni( 'HomePageSettings', 'ShowApplicationInMoreLink', 'merck.ini' ) );
$tpl->setVariable( 'nb_articles', $this->nbArticles );
$tpl->setVariable( 'publisher_logo', $this->publisherLogo() );
$tpl->setVariable( 'view_mode', $this->viewMode() );
$tpl->setVariable( 'application_url', SolrSafeOperatorHelper::getApplicationUrl($this->applicationObject->attribute('identifier')) );
$tpl->setVariable( 'with_feed', $this->_application->resultHandler->withFeed );
$blockResult = $tpl->fetch( 'design:presenters/block/applist.tpl' );
eZTemplate::resetInstance();
return $blockResult;
}