本文整理汇总了PHP中XenForo_DataWriter::_postDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP XenForo_DataWriter::_postDelete方法的具体用法?PHP XenForo_DataWriter::_postDelete怎么用?PHP XenForo_DataWriter::_postDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XenForo_DataWriter
的用法示例。
在下文中一共展示了XenForo_DataWriter::_postDelete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _postDelete
protected function _postDelete()
{
parent::_postDelete();
if ($this->getOption(self::OPTION_UPDATE_CATEGORY)) {
$this->rebuildCategoryCounter();
}
}
示例2: _postDelete
protected function _postDelete()
{
if ($this->getOption(self::OPTION_UPDATE_CALLBACKS)) {
$this->_getSubscriptionModel()->updateCallbacksForTopic($this->get('topic'));
}
parent::_postDelete();
}
示例3: _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();
}
示例4: _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();
}
示例5: _postDelete
protected function _postDelete()
{
parent::_postDelete();
$this->_deleteFromSearchIndex();
}
示例6: _postDelete
protected function _postDelete()
{
$this->_updateTag(-1);
return parent::_postDelete();
}