示例#1
0
    protected function updateTopicadditionalfields(ModuleTopic_EntityTopic $oTopic)
    {
        $sql = 'UPDATE ' . Config::Get('db.table.topic') . ' 
			SET 
				now_listening = ? ,
				current_place = ? ,
				mood = ?
			WHERE
				topic_id = ?d';
        if ($this->oDb->query($sql, $oTopic->getNowListening(), $oTopic->getCurrentPlace(), $oTopic->getMood(), $oTopic->getId()) !== null) {
            return true;
        }
        return false;
    }