public function __construct($sp = null)
 {
     $this->data = new DataHandler();
     $current = $this->data->load('items.data');
     if ($current !== null) {
         // Workaround for old, serialized PHP database
         if (($this->items = json_decode($current)) === $current) {
             $this->items = unserialize($current);
         }
         $this->items = (array) $this->items;
         $this->cached_items = $this->items;
     }
     parent::__construct($sp);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
 }