/** * Check if the data is loaded */ private function checkLoaded() { if (!$this->loaded) { $this->data->reset(); $this->loadData(); $this->loaded = true; } }