DBObj)) {
$this->DBObj = SiteMap::getObj('HTMLBlock/HTMLBlock.php');
}
}
function getNames()
{
$this->_initDBObj();
$names = array();
$list = $this->DBObj->getList4Grid();
foreach ($list['list'] as $value) {
$names[] = $value['name'];
}
return $names;
}
function exec(&$Doc)
{
$this->_initDBObj();
$id = $this->DBObj->getIdByName($this->options['name']);
$content = $this->DBObj->getFromDB($id, "content[{$this->options['lang']}]");
//require_once('app/HTMLBlock/Parser/Parser_Activex.php');
//$content = HTMLBlock_Parser_Activex::parse($content);
$Doc->addContent(array(
'tpl' => 'html_block.tpl',
'text' => $content,
));
}
}