protected function _postDelete() { parent::_postDelete(); if ($this->getOption(self::OPTION_UPDATE_CATEGORY)) { $this->rebuildCategoryCounter(); } }
protected function _postDelete() { if ($this->getOption(self::OPTION_UPDATE_CALLBACKS)) { $this->_getSubscriptionModel()->updateCallbacksForTopic($this->get('topic')); } parent::_postDelete(); }
protected function _postDelete() { $taggedContentModel = $this->_getTaggedContentModel(); $taggeds = $taggedContentModel->getAllTaggedContent(array('tag_id' => $this->get('tag_id'))); $taggedContentModel->deleteTaggedContentsByTagId($this->getMergedData(), $taggeds); $this->_rebuildCache(); return parent::_postDelete(); }
protected function _postDelete() { /* @var $oauth2Model bdApi_Model_OAuth2 */ $oauth2Model = $this->getModelFromCache('bdApi_Model_OAuth2'); // delete associated authentication codes $authCodes = $oauth2Model->getAuthCodeModel()->getAuthCodes(array('client_id' => $this->get('client_id'))); foreach ($authCodes as $authCode) { $authCodeDw = XenForo_DataWriter::create('bdApi_DataWriter_AuthCode'); $authCodeDw->setExistingData($authCode, true); $authCodeDw->delete(); } // delete associated tokens $tokens = $oauth2Model->getTokenModel()->getTokens(array('client_id' => $this->get('client_id'))); foreach ($tokens as $token) { $tokenDw = XenForo_DataWriter::create('bdApi_DataWriter_Token'); $tokenDw->setExistingData($token, true); $tokenDw->delete(); } // delete associated refresh tokens $refreshTokens = $oauth2Model->getRefreshTokenModel()->getRefreshTokens(array('client_id' => $this->get('client_id'))); foreach ($refreshTokens as $refreshToken) { $refreshTokenDw = XenForo_DataWriter::create('bdApi_DataWriter_RefreshToken'); $refreshTokenDw->setExistingData($refreshToken, true); $refreshTokenDw->delete(); } // delete associated subscriptions $subscriptions = $oauth2Model->getSubscriptionModel()->getSubscriptions(array('client_id' => $this->get('client_id'))); foreach ($subscriptions as $subscription) { $subscriptionDw = XenForo_DataWriter::create('bdApi_DataWriter_Subscription'); $subscriptionDw->setExistingData($subscription, true); $subscriptionDw->delete(); } parent::_postDelete(); }
protected function _postDelete() { parent::_postDelete(); $this->_deleteFromSearchIndex(); }
protected function _postDelete() { $this->_updateTag(-1); return parent::_postDelete(); }