11 defined(
'JPATH_PLATFORM') or die();
34 public function getAlbum($album)
36 return $this->
get($album);
52 public function getPhotos($album, $limit = 0, $offset = 0, $until = null, $since = null)
54 return $this->getConnection($album,
'photos',
'', $limit, $offset, $until, $since);
68 public function createPhoto($album, $source, $message = null)
72 $data[basename($source)] =
'@' . realpath($source);
76 $data[
'message'] = $message;
79 return $this->createConnection($album,
'photos', $data, array(
'Content-Type' =>
'multipart/form-data'));
95 public function getComments($album, $limit = 0, $offset = 0, $until = null, $since = null)
97 return $this->getConnection($album,
'comments',
'', $limit, $offset, $until, $since);
110 public function createComment($album, $message)
114 $data[
'message'] = $message;
116 return $this->createConnection($album,
'comments', $data);
128 public function deleteComment($comment)
130 return $this->deleteConnection($comment);
146 public function getLikes($album, $limit = 0, $offset = 0, $until = null, $since = null)
148 return $this->getConnection($album,
'likes',
'', $limit, $offset, $until, $since);
160 public function createLike($album)
162 return $this->createConnection($album,
'likes');
174 public function deleteLike($album)
176 return $this->deleteConnection($album,
'likes');
190 public function getPicture($album, $redirect =
true)
194 if ($redirect ==
false)
196 $extra_fields =
'?redirect=false';
199 return $this->getConnection($album,
'picture', $extra_fields);