Exemple #1
0
 public function getPermissionString()
 {
     if ($this->getPermissions() == null || $this->getPermissions() == '') {
         $settings = DB_ForumSettingsPeer::instance()->selectByPrimaryKey($this->getSiteId());
         return $settings->getPermissions();
     } else {
         return $this->getPermissions();
     }
 }
Exemple #2
0
 public function getForumSettings()
 {
     $c = new Criteria();
     $c->add("site_id", $this->getSiteId());
     return DB_ForumSettingsPeer::instance()->selectOne($c);
 }