* * Marat Bedoev */ class tinymcehelper extends oxAdminView { protected $_errors; protected $_content; public function render() { $oOutput = oxRegistry::get("oxOutput"); $oOutput->setCharset($this->getCharSet()); $oOutput->setOutputFormat(oxOutput::OUTPUT_FORMAT_JSON); $oOutput->sendHeaders(); $oOutput->output('errors', $this->_errors); $oOutput->output('content', $this->_content); exit; } public function search() { $cfg = oxRegistry::getConfig(); $what = $cfg->getRequestParameter("what"); $where = $cfg->getRequestParameter("where"); $this->_content = $what . ' + '. $where; } public function getCMS() { $oList = oxNew("oxlist"); $oList->init("oxcontent"); $oListObject = $oList->getBaseObject(); $sViewName = $oListObject->getViewName(); $sActiveSnippet = $oListObject->getSqlActiveSnippet(); $sSQL = "SELECT OXID, OXLOADID, OXTITLE FROM {$sViewName} WHERE {$sActiveSnippet} AND {$sViewName}.oxfolder != 'CMSFOLDER_EMAILS'"; $aPages = oxDB::getDb()->getAssoc($sSQL); $this->_content = $aPages; } public function oxgetseourl() { $cfg = oxRegistry::getConfig(); $type = ($cfg->getRequestParameter("type") ? $cfg->getRequestParameter("type") : "oxcontent"); $oxid = ($cfg->getRequestParameter("oxid") ? $cfg->getRequestParameter("oxid") : "oximpressum"); } }