Exemplo n.º 1
0
 public static function create($id)
 {
     $result = new vBForum_Search_Result_SocialGroup();
     $result->group = vB_Legacy_SocialGroup::create_from_id($id);
     if ($result->group == null) {
         return new vB_Search_Result_Null();
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  *	Get the Social Group object
  *
  *	return legacy object to avoid rewriting existing social group stuff
  */
 public function getSocialGroup()
 {
     if (!$this->social_group) {
         require_once DIR . '/vb/legacy/socialgroup.php';
         $this->social_group = vB_Legacy_SocialGroup::create_from_id($this->getGroupId());
     }
     return $this->social_group;
 }