Source for file TemplateEditor.class.php
Documentation is available at TemplateEditor.class.php
* Содержит класс TemplateEditor
* @copyright Energine 2006
public function __construct($name, $module, Document $document, array $params = null) {
parent::__construct($name, $module, $document, $params);
if($f = $result->getFieldDescriptionByName('tmpl_icon')){
foreach (array(self::TMPL_CONTENT, self::TMPL_LAYOUT) as $type)
if(($f = $result->getFieldDescriptionByName('tmpl_'. $type)) && in_array($this->getAction(), array('add', 'edit'))){
foreach(glob("templates/icons/*.icon.gif") as $path){
foreach(glob("templates/". $type. "/*.". $type. ".xml") as $path){
foreach(glob("templates/icons/*.preview.gif") as $path){
|