Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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();
 }