function SpawnDataset() { return manage_spawn_dataset($this->settings['dataset']['id'], $this->settings['dataset']['settings']); if ($this->empty_dataset == nil) { $this->empty_dataset = manage_spawn_dataset($this->settings['dataset']['id'], $this->settings['dataset']['settings']); } return $this->empty_dataset; }
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; }
function DeleteCatRecursive($id) { $q = db_select($this->settings['content'], array('id', 'dataset'), "`id`>={$id}"); while ($r = db_row($q)) { unset($this->settings['cat_' . $r['id'] . '_dsset']); $dataset = manage_spawn_dataset($r['dataset']); $this->DeleteCatRecursive_Iterator($this->content_id, $dataset, $r['id']); $dataset->UnRef(); content_destroy_support_table($this->content_id, $r['dataset'], $r['id']); db_delete($this->settings['content'], '`id`=' . $r['id']); } $this->SaveSettings(); }
function manage_receive_dataset_from_selector($prefix = '', $suffix = '') { $id = manage_receive_dataset_id_from_selector($prefix, $suffix); if ($id < 0) { return null; } $dataset = manage_spawn_dataset($id); if (!$dataset->ReceiveSettings($prefix . $suffix)) { return null; } return $dataset; }