Example #1
0
 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;
 }
Example #2
0
 protected function createDefaults()
 {
     foreach ($this->defaults as $default) {
         $this->data->set($default[0], $default[1]);
     }
 }