Beispiel #1
0
    protected function updateAccessLevel(ModuleTopic_EntityTopic $oTopic)
    {
        $sql = 'UPDATE ' . Config::Get('db.table.topic') . ' 
			SET 
				access_level = ?d
			WHERE
				topic_id = ?d
		';
        if ($this->oDb->query($sql, $oTopic->getAccessLevel(), $oTopic->getId()) !== null) {
            return true;
        }
        return false;
    }