|
Source for file PlgAJAXRespFront.php
Documentation is available at PlgAJAXRespFront.php
* Front side (CMS context).
* @copyright Amiro.CMS. All rights reserved.
* @package Plugin_AJAXResponder
* @version $Id: PlgAJAXRespFront.php 61273 2013-08-07 10:47:54Z Leontiev Anton $
* Plugin front side (CMS context).
* @package Plugin_AJAXResponder
* @see plg_ami_ajax_responder.php
private $tplBlock = 'plg_ami_ajax_responder';
* @param array $aPluginParams $pluginParams array
$this->aParams = $aPluginParams;
$this->oTpl->setLocale($this->aParams['lang_data']);
$aLocale = $this->oTpl->parseLocale(
$this->aParams['templates_path'] .
$this->tplBlock, $this->aParams['templates_path'] .
$this->oTpl->setBlockLocale($this->tplBlock, $aLocale);
'locale' => $this->aParams['lang_data'],
'id_plugin' => $this->aParams['plugin_id']
foreach(array('module', 'order', 'dir', 'limit', 'offset', 'id_page') as $option){
$aScope['locale'] = $this->aParams['lang_data'];
$aScope['render_row'] = $this->oTpl->parse($this->tplBlock . ':render_row', $aScope);
$aScope['js'] = $this->oTpl->parse($this->tplBlock . ':js', $aScope);
return $this->oTpl->parse($this->tplBlock . ':body', $aScope);
|