11 defined(
'JPATH_PLATFORM') or die();
34 public function getGroup($group)
36 return $this->
get($group);
52 public function getFeed($group, $limit = 0, $offset = 0, $until = null, $since = null)
54 return $this->getConnection($group,
'feed',
'', $limit, $offset, $until, $since);
68 public function getMembers($group, $limit = 0, $offset = 0)
70 return $this->getConnection($group,
'members',
'', $limit, $offset);
86 public function getDocs($group, $limit = 0, $offset = 0, $until = null, $since = null)
88 return $this->getConnection($group,
'docs',
'', $limit, $offset, $until, $since);
101 public function getPicture($group, $type = null)
105 $type =
'?type=' . $type;
108 return $this->getConnection($group,
'picture', $type);
122 public function createLink($group, $link, $message = null)
126 $data[
'link'] = $link;
130 $data[
'message'] = $message;
133 return $this->createConnection($group,
'feed', $data);
145 public function deleteLink($link)
147 return $this->deleteConnection($link);
166 public function createPost($group, $message = null, $link = null, $picture = null, $name = null, $caption = null,
167 $description = null, $actions = null)
172 $data[
'message'] = $message;
177 $data[
'link'] = $link;
182 $data[
'name'] = $name;
187 $data[
'caption'] = $caption;
192 $data[
'description'] = $description;
197 $data[
'actions'] = $actions;
202 $data[
'picture'] = $picture;
205 return $this->createConnection($group,
'feed', $data);
217 public function deletePost($post)
219 return $this->deleteConnection($post);
232 public function createStatus($group, $message)
236 $data[
'message'] = $message;
238 return $this->createConnection($group,
'feed', $data);
250 public function deleteStatus($status)
252 return $this->deleteConnection($status);