public function infoJson($slug, Request $request, Application $app)
 {
     if (!$this->build($slug, $request, $app)) {
         $app->abort(404, "Does not exist.");
     }
     $out = array('group' => array('slug' => $this->group->getSlug(), 'slugForURL' => $this->group->getSlugForUrl(), 'title' => $this->group->getTitle(), 'description' => $this->group->getDescription(), 'url' => $this->group->getUrl()));
     return json_encode($out);
 }
 /**
  * @dataProvider dataForTestSet
  */
 function testSet2($slug, $text, $result)
 {
     $group = new GroupModel();
     $group->setSlug($slug);
     $group->setTitle($text);
     $this->assertEquals($result, $group->getSlugForUrl());
 }
 public function getNotificationURL()
 {
     global $CONFIG;
     $this->loadGroupIfNeeded();
     return $CONFIG->getWebSiteDomainSecure($this->site->getSlug()) . '/group/' . $this->group->getSlugForUrl();
 }