Beispiel #1
0
 /**
  * Loads information about all articles.
  *
  * @return array
  */
 public function load()
 {
     if ($this->loaded) {
         return $this->data;
     }
     try {
         $this->data = $this->loader->load($this->dataFile);
     } catch (NotFoundException $e) {
         $this->data = array();
     }
     $this->loaded = true;
     return $this->data;
 }
 /**
  * Loads the data.
  *
  * @param  string $name Name of the data to load.
  *
  * @return array
  */
 public function loadData($name)
 {
     return $this->dataLoader->load($name);
 }