當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Memcached_DataObject::delete方法代碼示例

本文整理匯總了PHP中Memcached_DataObject::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP Memcached_DataObject::delete方法的具體用法?PHP Memcached_DataObject::delete怎麽用?PHP Memcached_DataObject::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Memcached_DataObject的用法示例。


在下文中一共展示了Memcached_DataObject::delete方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: delete

 function delete()
 {
     $filename = $this->filename;
     if (parent::delete()) {
         @unlink(Avatar::path($filename));
     }
 }
開發者ID:Br3nda,項目名稱:laconica,代碼行數:7,代碼來源:Avatar.php

示例2: delete

 function delete()
 {
     $filename = $this->filename;
     if (parent::delete()) {
         //@unlink(Image::path($filename));
     }
 }
開發者ID:himmelex,項目名稱:NTW,代碼行數:7,代碼來源:Image.php

示例3: delete

 /**
  * Delete a Consumer and related tokens and nonces
  *
  * XXX: Should this happen in an OAuthDataStore instead?
  *
  */
 function delete()
 {
     // XXX: Is there any reason NOT to do this kind of cleanup?
     $this->_deleteTokens();
     $this->_deleteNonces();
     parent::delete();
 }
開發者ID:himmelex,項目名稱:NTW,代碼行數:13,代碼來源:Consumer.php

示例4: delete

 function delete()
 {
     $f = File::staticGet('id', $this->file_id);
     if (!empty($f)) {
         $f->blowCache();
     }
     return parent::delete();
 }
開發者ID:microcosmx,項目名稱:experiments,代碼行數:8,代碼來源:File_to_post.php

示例5: delete

 function delete()
 {
     $profile = Profile::staticGet('id', $this->user_id);
     $notice = Notice::staticGet('id', $this->notice_id);
     $result = null;
     if (Event::handle('StartDisfavorNotice', array($profile, $notice, &$result))) {
         $result = parent::delete();
         if ($result) {
             Event::handle('EndDisfavorNotice', array($profile, $notice));
         }
     }
     return $result;
 }
開發者ID:Br3nda,項目名稱:StatusNet,代碼行數:13,代碼來源:Fave.php

示例6: delete

 function delete()
 {
     $this->blowCaches(true);
     $this->blowFavesCache(true);
     $this->blowSubsCache(true);
     $this->query('BEGIN');
     $related = array('Reply', 'Fave', 'Notice_tag', 'Group_inbox', 'Queue_item');
     if (common_config('inboxes', 'enabled')) {
         $related[] = 'Notice_inbox';
     }
     foreach ($related as $cls) {
         $inst = new $cls();
         $inst->notice_id = $this->id;
         $inst->delete();
     }
     $result = parent::delete();
     $this->query('COMMIT');
 }
開發者ID:Br3nda,項目名稱:laconica,代碼行數:18,代碼來源:Notice.php

示例7: delete

 function delete()
 {
     $this->_deleteAppUsers();
     $consumer = $this->getConsumer();
     $consumer->delete();
     parent::delete();
 }
開發者ID:sukhjindersingh,項目名稱:PHInest-Solutions,代碼行數:7,代碼來源:Oauth_application.php

示例8: delete

 function delete()
 {
     $result = parent::delete();
     if ($result) {
         Config::_blowSettingsCache();
     }
     return $result;
 }
開發者ID:himmelex,項目名稱:NTW,代碼行數:8,代碼來源:Config.php

示例9: delete

 function delete()
 {
     $result = parent::delete();
     if ($result) {
         self::blow('profile_list:subscriber_count:%d', $this->profile_tag_id);
     }
     return $result;
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:8,代碼來源:Profile_tag_subscription.php

示例10: delete

 function delete()
 {
     $this->_deleteNotices();
     $this->_deleteSubscriptions();
     $this->_deleteMessages();
     $this->_deleteTags();
     $this->_deleteBlocks();
     $this->delete_avatars();
     // Warning: delete() will run on the batch objects,
     // not on individual objects.
     $related = array('Reply', 'Group_member');
     Event::handle('ProfileDeleteRelated', array($this, &$related));
     foreach ($related as $cls) {
         $inst = new $cls();
         $inst->profile_id = $this->id;
         $inst->delete();
     }
     parent::delete();
 }
開發者ID:microcosmx,項目名稱:experiments,代碼行數:19,代碼來源:Profile.php

示例11: delete

 function delete()
 {
     // For auditing purposes, save a record that the notice
     // was deleted.
     // @fixme we have some cases where things get re-run and so the
     // insert fails.
     $deleted = Deleted_notice::staticGet('id', $this->id);
     if (!$deleted) {
         $deleted = new Deleted_notice();
         $deleted->id = $this->id;
         $deleted->profile_id = $this->profile_id;
         $deleted->uri = $this->uri;
         $deleted->created = $this->created;
         $deleted->deleted = common_sql_now();
         $deleted->insert();
     }
     if (Event::handle('NoticeDeleteRelated', array($this))) {
         // Clear related records
         $this->clearReplies();
         $this->clearRepeats();
         $this->clearFaves();
         $this->clearTags();
         $this->clearGroupInboxes();
         // NOTE: we don't clear inboxes
         // NOTE: we don't clear queue items
     }
     $result = parent::delete();
     $this->blowOnDelete();
     return $result;
 }
開發者ID:Br3nda,項目名稱:statusnet-debian,代碼行數:30,代碼來源:Notice.php

示例12: delete

 function delete()
 {
     // For auditing purposes, save a record that the notice
     // was deleted.
     $deleted = new Deleted_notice();
     $deleted->id = $this->id;
     $deleted->profile_id = $this->profile_id;
     $deleted->uri = $this->uri;
     $deleted->created = $this->created;
     $deleted->deleted = common_sql_now();
     $deleted->insert();
     // Clear related records
     $this->clearReplies();
     $this->clearRepeats();
     $this->clearFaves();
     $this->clearTags();
     $this->clearGroupInboxes();
     // NOTE: we don't clear inboxes
     // NOTE: we don't clear queue items
     $result = parent::delete();
     $this->blowOnDelete();
     return $result;
 }
開發者ID:himmelex,項目名稱:NTW,代碼行數:23,代碼來源:Notice.php

示例13: delete

 /**
  * Gracefully delete one or many people tags
  * along with their members and subscriptions data
  *
  * @return boolean success
  */
 function delete()
 {
     // force delete one item at a time.
     if (empty($this->id)) {
         $this->find();
         while ($this->fetch()) {
             $this->delete();
         }
     }
     Profile_tag::cleanup($this);
     Profile_tag_subscription::cleanup($this);
     self::blow('profile:lists:%d', $this->tagger);
     return parent::delete();
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:20,代碼來源:Profile_list.php

示例14: delete

 function delete()
 {
     $this->_deleteNotices();
     $this->_deleteSubscriptions();
     $this->_deleteMessages();
     $this->_deleteTags();
     $this->_deleteBlocks();
     $related = array('Avatar', 'Reply', 'Group_member');
     Event::handle('ProfileDeleteRelated', array($this, &$related));
     foreach ($related as $cls) {
         $inst = new $cls();
         $inst->profile_id = $this->id;
         $inst->delete();
     }
     parent::delete();
 }
開發者ID:Br3nda,項目名稱:statusnet-debian,代碼行數:16,代碼來源:Profile.php

示例15: delete

 function delete()
 {
     $result = parent::delete();
     if ($result) {
         self::blow('profile_list:tagged_count:%d:%s', $this->tagger, $this->tag);
     }
     return $result;
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:8,代碼來源:Profile_tag.php


注:本文中的Memcached_DataObject::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。