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