當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。