options = $options; } function exec(&$Doc) { return true; } function _initDBObj() { return true; } function _path2Type($type) { static $pathArr; if ( !key_exists($type, (array)$pathArr) ){ require_once 'class/SiteMap/SiteMap.php'; $pathArr[$type] = SiteMap::path2Type($type); assert('$path !== false'); } return $pathArr[$type]; } function _setLitetpl4AdmPanel() { require_once 'class/Session.php'; Session::setData('admin_sect', 'tplLite', 1 ); } function _saveNewBackUrl() { require_once 'class/DB/Grid/Grid.php'; DB_Grid::setBackUrl(Constant::get('BASE_URL').'/'.$this->_path2Type('CMS/Doc/Grid').'?action=add_item_by_type_post', $this->_path2Type($this->editType) ); return true; } function gotoFormNew() { $this->_setLitetpl4AdmPanel(); $this->_saveNewBackUrl(); require_once('class/HTTP.php'); skHTTP::redirect(Constant::get('BASE_URL').'/'. $this->_path2Type($this->editType) .'?action=new'); return true; } function _saveEditBackUrl() { require_once 'class/DB/Grid/Grid.php'; DB_Grid::setBackUrl(Constant::get('BASE_URL').'/'.$this->_path2Type('CMS/Doc/Grid').'?action=edit_item_by_val_post', $this->_path2Type($this->editType)); return true; } function gotoFormEdit($name) { $this->_setLitetpl4AdmPanel(); $this->_saveEditBackUrl(); $this->_initDBObj(); require_once('class/HTTP.php'); skHTTP::redirect(Constant::get('BASE_URL').'/'. $this->_path2Type($this->editType) .'?action=edit&id='.$this->DBObj->getIdByName($name) ); return true; } } ?>