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); }
public function __construct() { parent::__construct(); }