public static function GetArticleTemplate($p_lngId, $p_pubId, $p_issNr, $p_sctNr)
{
$cacheService = \Zend_Registry::get('container')->getService('newscoop.cache');
$cacheKey = $cacheService->getCacheKey(array('GetArticleTemplate', $p_lngId, $p_pubId, $p_issNr, $p_sctNr), 'article');
if ($cacheService->contains($cacheKey)) {
return $cacheService->fetch($cacheKey);
} else {
$resourceId = new ResourceId('template_engine/classes/CampSystem');
$outputService = $resourceId->getService(IOutputService::NAME);
if (!\Zend_Registry::isRegistered('webOutput')) {
$cacheKeyWebOutput = $cacheService->getCacheKey(array('OutputService', 'Web'), 'outputservice');
if ($cacheService->contains($cacheKeyWebOutput)) {
\Zend_Registry::set('webOutput', $cacheService->fetch($cacheKeyWebOutput));
} else {
$webOutput = $outputService->findByName('Web');
$cacheService->save($cacheKeyWebOutput, $webOutput);
\Zend_Registry::set('webOutput', $webOutput);
}
}
$templateSearchService = $resourceId->getService(ITemplateSearchService::NAME);
$sectionObj = new Section($p_pubId, $p_issNr, $p_lngId, $p_sctNr);
$data = $templateSearchService->getArticlePage($sectionObj->getSectionId(), \Zend_Registry::get('webOutput'));
if (empty($data)) {
$data = self::GetInvalidURLTemplate($p_pubId, $p_issNr, $p_lngId);
}
$cacheService->save($cacheKey, $data);
return $data;
}
// fn GetArticleTemplate
}