11 defined(
'JPATH_PLATFORM') or die();
34 public function getPhoto($photo)
36 return $this->
get($photo);
52 public function getComments($photo, $limit = 0, $offset = 0, $until = null, $since = null)
54 return $this->getConnection($photo,
'comments',
'', $limit, $offset, $until, $since);
67 public function createComment($photo, $message)
70 $data[
'message'] = $message;
72 return $this->createConnection($photo,
'comments', $data);
84 public function deleteComment($comment)
86 return $this->deleteConnection($comment);
102 public function getLikes($photo, $limit = 0, $offset = 0, $until = null, $since = null)
104 return $this->getConnection($photo,
'likes',
'', $limit, $offset, $until, $since);
116 public function createLike($photo)
118 return $this->createConnection($photo,
'likes');
130 public function deleteLike($photo)
132 return $this->deleteConnection($photo,
'likes');
148 public function getTags($photo, $limit = 0, $offset = 0, $until = null, $since = null)
150 return $this->getConnection($photo,
'tags',
'', $limit, $offset, $until, $since);
167 public function createTag($photo, $to = null, $tag_text = null, $x = null, $y = null)
181 $data[
'tag_text'] = $tag_text;
194 return $this->createConnection($photo,
'tags', $data);
210 public function updateTag($photo, $to, $x = null, $y = null)
225 return $this->createConnection($photo,
'tags', $data);
238 public function getPicture($photo, $redirect =
true)
242 if ($redirect ==
false)
244 $extra_fields =
'?redirect=false';
247 return $this->getConnection($photo,
'picture', $extra_fields);