public function delete($id = null) { if ($id === null || $id < 0) { return false; } $o = $this->data->get("folders", array()); if (isset($o[(int) $id])) { unset($o[(int) $id]); $this->data->set("folders", $o); return true; } return false; }
protected function createDefaults() { foreach ($this->defaults as $default) { $this->data->set($default[0], $default[1]); } }