/** * Delete debate from database. This will * only delete one specific translation of the debate question. * * @return boolean */ function delete() { // Delte DebateAnswerAttachments DebateAnswerAttachment::OnDebateAnswerDelete($this->getDebateNumber(), $this->getNumber()); // Delete from plugin_debate_answer table $deleted = parent::delete(); /* if ($deleted) { if (function_exists("camp_load_translation_strings")) { camp_load_translation_strings("api"); } $logtext = getGS('Article #$1: "$2" ($3) deleted.', $this->m_data['Number'], $this->m_data['Name'], $this->getLanguageName()) ." (".getGS("Publication")." ".$this->m_data['IdPublication'].", " ." ".getGS("Issue")." ".$this->m_data['NrIssue'].", " ." ".getGS("Section")." ".$this->m_data['NrSection'].")"; Log::Message($logtext, null, 32); } */ $CampCache = CampCache::singleton(); $CampCache->clear('user'); return $deleted; }