Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /**
  * Loads the data.
  *
  * @param  string $name Name of the data to load.
  *
  * @return array
  */
 public function loadData($name)
 {
     return $this->dataLoader->load($name);
 }