protected function _postDelete() { $template = $this->getModelFromCache('XenForo_Model_Template')->getTemplateInStyleByTitle($this->getModelFromCache('XenForo_Model_Page')->getTemplateTitle($this->getMergedData())); if ($template) { $dw = XenForo_DataWriter::create('XenForo_DataWriter_Template', XenForo_DataWriter::ERROR_SILENT); $dw->setExistingData($template, true); $dw->delete(); } parent::_postDelete(); }
protected function _postDelete() { parent::_postDelete(); $nodeId = $this->get('node_id'); $db = $this->_db; $db->delete('xf_forum_prefix', 'node_id = ' . $db->quote($nodeId)); $db->delete('xf_forum_watch', 'node_id = ' . $db->quote($nodeId)); if ($this->getOption(self::OPTION_DELETE_THREADS)) { XenForo_Application::defer('ThreadDelete', array('node_id' => $nodeId), "threadDelete_{$nodeId}", true); } }
protected function _postDelete() { $template = $this->getModelFromCache('XenForo_Model_Template')->getTemplateInStyleByTitle($this->getModelFromCache('XenForo_Model_Page')->getTemplateTitle($this->getMergedData())); if ($template) { $dw = XenForo_DataWriter::create('XenForo_DataWriter_Template', XenForo_DataWriter::ERROR_SILENT); $dw->setExistingData($template, true); $dw->delete(); } $dataHandler = XenForo_Search_DataHandler_Abstract::create('XenForo_Search_DataHandler_Page'); $indexer = new XenForo_Search_Indexer(); $dataHandler->deleteFromIndex($indexer, $this->getMergedData()); parent::_postDelete(); }