Exemplo n.º 1
0
 /**
  *  Constructor.
  *
  * @param AlbumsLoader $loader The object that loaded the data.
  */
 public function __construct($loader)
 {
     parent::__construct();
     $this->json_data = $loader->load_feed();
 }
Exemplo n.º 2
0
 /**
  * Shows all the events posted on the Plaza.
  *
  * @param integer $num_per_page The number of items to show.  Max is 15. Default is 10.
  *
  * @return array of all the events posted on the Plaza.
  */
 public function albums($num_per_page = 10)
 {
     if ($this->albums_num_requested == $num_per_page && !is_null($this->albums)) {
         return $this->albums;
     }
     $this->albums_num_requested = $num_per_page;
     $loader = new AlbumsLoader($this->subdomain, $num_per_page, $this->cacher, $this->group_nickname);
     $loader->add_url_params($this->other_url_params);
     $this->albums = new Albums($loader);
     return $this->albums;
 }