function Init($content_id = -1, $security = nil) { global $action, $id; CCVirtual::Init($content_id, $security); editor_add_function('Структура каталога', 'Editor_Structure', 'default', "action={$action}&id={$id}"); editor_add_function('Настройка скриптов', 'Editor_Scripts', 'default', "action={$action}&id={$id}"); $this->cache = array(); content_url_var_push_global('ids'); }
function InitInstance() { if (CCVirtual::InitInstance()) { return false; } if ($this->settings['dataset']['id'] == '') { $this->settings['dataset']['id'] = -1; } $this->dataset = $this->SpawnDataSet(); $this->UpdateScripts(); return true; }
function InitInstance() { global $id, $action; if (!CCVirtual::InitInstance()) { return false; } if ($this->settings['dataset']['id'] == '') { $this->settings['dataset']['id'] = -1; } $this->dataset = manage_spawn_dataset($this->settings['dataset']['id'], $this->settings['dataset']['settings']); editor_add_function('Настройка скриптов', 'Editor_ManageScripts', 'default', 'action=' . $action . '&id=' . $id); return true; }