当前位置: 首页>>代码示例>>PHP>>正文


PHP XenForo_DataWriter::_postDelete方法代码示例

本文整理汇总了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();
     }
 }
开发者ID:NixFifty,项目名称:XenForo-SimplePortal,代码行数:7,代码来源:PortalItem.php

示例2: _postDelete

 protected function _postDelete()
 {
     if ($this->getOption(self::OPTION_UPDATE_CALLBACKS)) {
         $this->_getSubscriptionModel()->updateCallbacksForTopic($this->get('topic'));
     }
     parent::_postDelete();
 }
开发者ID:billyprice1,项目名称:bdApi,代码行数:7,代码来源:Subscription.php

示例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();
 }
开发者ID:Sywooch,项目名称:forums,代码行数:8,代码来源:Tag.php

示例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();
 }
开发者ID:billyprice1,项目名称:bdApi,代码行数:34,代码来源:Client.php

示例5: _postDelete

 protected function _postDelete()
 {
     parent::_postDelete();
     $this->_deleteFromSearchIndex();
 }
开发者ID:billyprice1,项目名称:bdApi,代码行数:5,代码来源:ClientContent.php

示例6: _postDelete

 protected function _postDelete()
 {
     $this->_updateTag(-1);
     return parent::_postDelete();
 }
开发者ID:Sywooch,项目名称:forums,代码行数:5,代码来源:TaggedContent.php


注:本文中的XenForo_DataWriter::_postDelete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。