/** * delete a block from the database * * @param XoopsTplFile $tplfile object * * @return bool */ public function deleteTpl(XoopsTplFile $tplfile) { $tpl_id = $tplfile->getVar('tpl_id'); if (!$this->db2->deletePrefix('system_tplfile', array('tpl_id' => $tpl_id))) { return false; } $this->db2->deletePrefix('system_tplsource', array('tpl_id' => $tpl_id)); return true; }