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


PHP eZPersistentObject::remove方法代碼示例

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


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

示例1: removeThis

 function removeThis()
 {
     $exportItems = $this->fetchItems();
     $db = eZDB::instance();
     $db->begin();
     foreach ($exportItems as $item) {
         $item->remove();
     }
     eZPersistentObject::remove();
     $db->commit();
 }
開發者ID:EVE-Corp-Center,項目名稱:ECC-Website,代碼行數:11,代碼來源:ezrssexport.php

示例2: remove

 function remove($conditions = null, $extraConditions = null)
 {
     if ($this->attribute('version') == eZPDFExport::VERSION_VALID && $this->attribute('status') != eZPDFExport::CREATE_ONFLY) {
         $sys = eZSys::instance();
         $storage_dir = $sys->storageDirectory();
         $filename = $storage_dir . '/pdf/' . $this->attribute('pdf_filename');
         if (file_exists($filename)) {
             unlink($filename);
         }
     }
     parent::remove($conditions, $extraConditions);
 }
開發者ID:patrickallaert,項目名稱:ezpublish-legacy-php7,代碼行數:12,代碼來源:ezpdfexport.php

示例3: remove

 function remove($removeAttributes = false, $version = eZContentClass::VERSION_STATUS_DEFINED)
 {
     // If we are not allowed to remove just return false
     if ($this->Version == eZContentClass::VERSION_STATUS_DEFINED && !$this->isRemovable()) {
         return false;
     }
     if (is_array($removeAttributes) or $removeAttributes) {
         $this->removeAttributes($removeAttributes);
     }
     $this->NameList->remove($this);
     eZPersistentObject::remove();
 }
開發者ID:nlenardou,項目名稱:ezpublish,代碼行數:12,代碼來源:ezcontentclass.php

示例4: remove

 /**
  * remove the current subscription
  * @see kernel/classes/eZPersistentObject#remove($conditions, $extraConditions)
  */
 function remove($conditions = null, $extraConditions = null)
 {
     CjwNewsletterLog::writeNotice('CjwNewsletterSubscription::remove', 'subscription', 'remove', array('nl_user' => $this->attribute('newsletter_user_id'), 'subscription_id' => $this->attribute('id'), 'modifier' => eZUser::currentUserID()));
     foreach ($currentNewsletterSubscriptionObjects as $subscription) {
         $subscription->remove();
     }
     parent::remove($conditions, $extraConditions);
 }
開發者ID:heliopsis,項目名稱:cjw_newsletter,代碼行數:12,代碼來源:cjwnewslettersubscription.php

示例5: remove

 /**
  * When a blacklist item is removed, remove the blacklist entries for the user
  */
 public function remove($conditions = null, $extraConditions = null)
 {
     $newsletterUserObject = $this->getNewsletterUserObject();
     if (is_object($newsletterUserObject)) {
         $newsletterUserObject->setNonBlacklisted();
     }
     return parent::remove($conditions = null, $extraConditions = null);
 }
開發者ID:hudri,項目名稱:cjw_newsletter,代碼行數:11,代碼來源:cjwnewsletterblacklistitem.php

示例6: removeThis

    function removeThis( $quiet = false )
    {
        $dataType = $this->dataType();
        if ( $dataType->isClassAttributeRemovable( $this ) )
        {
            self::expireCache( $this->ID, $this->attribute( 'contentclass_id' ) );

            $db = eZDB::instance();
            $db->begin();
            $dataType->deleteStoredClassAttribute( $this, $this->Version );
            eZPersistentObject::remove();
            $db->commit();
            return true;
        }
        else
        {
            if ( !$quiet )
            {
                eZDebug::writeError( 'Datatype [' . $dataType->attribute( 'name' ) . '] can not be deleted to avoid system crash' );
            }
            return false;
        }
    }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:23,代碼來源:ezcontentclassattribute.php

示例7: removeThis

 function removeThis( $conditions = null, $extraConditions = null )
 {
     eZPersistentObject::remove( array( "id" => $this->ID ), $extraConditions );
 }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:4,代碼來源:ezsection.php

示例8: remove

 function remove($conditions = null, $extraConditions = null)
 {
     foreach ($this->fetchQuestionResultList(true) as $questionResult) {
         $questionResult->remove();
     }
     eZPersistentObject::remove();
 }
開發者ID:heliopsis,項目名稱:ezsurvey,代碼行數:7,代碼來源:ezsurveyresult.php

示例9: remove

 function remove($conditions = null, $extraConditions = null)
 {
     foreach ($this->fetchRecipientsLists() as $list) {
         $list->remove();
     }
     foreach ($this->fetchSubscribers() as $subscriber) {
         $subscriber->remove();
     }
     eZPersistentObject::remove();
 }
開發者ID:jjohnsen,項目名稱:jaj_newsletter,代碼行數:10,代碼來源:jajnewslettersubscriptionlist.php

示例10: removeThis

 function removeThis()
 {
     $itemOptionList = eZProductCollectionItemOption::fetchList($this->attribute('id'));
     $db = eZDB::instance();
     $db->begin();
     foreach ($itemOptionList as $itemOption) {
         $itemOption->remove();
     }
     eZPersistentObject::remove();
     $db->commit();
 }
開發者ID:EVE-Corp-Center,項目名稱:ECC-Website,代碼行數:11,代碼來源:ezproductcollectionitem.php

示例11: remove

 /**
  * remove the current newlsetter user and all depending nl subscriptions
  * @see kernel/classes/eZPersistentObject#remove($conditions, $extraConditions)
  */
 function remove($conditions = null, $extraConditions = null)
 {
     // remove subscriptions
     $currentNewsletterSubscriptionObjects = $this->attribute('subscription_array');
     CjwNewsletterLog::writeNotice('CjwNewsletterUser::remove', 'user', 'remove', array('nl_user' => $this->attribute('id'), 'subscription_count' => count($currentNewsletterSubscriptionObjects), 'subscriptions_to_remove' => implode('|', array_keys($currentNewsletterSubscriptionObjects)), 'modifier' => eZUser::currentUserID()));
     foreach ($currentNewsletterSubscriptionObjects as $subscription) {
         $subscription->remove();
     }
     $blackListItem = CjwNewsletterBlacklistItem::fetchByEmail($this->attribute('email'));
     if (is_object($blackListItem)) {
         $blackListItem->setAttribute('newsletter_user_id', 0);
         $blackListItem->store();
     }
     parent::remove($conditions, $extraConditions);
 }
開發者ID:hudri,項目名稱:cjw_newsletter,代碼行數:19,代碼來源:cjwnewsletteruser.php

示例12: remove

 function remove($conditions = null, $extraConditions = null)
 {
     $GLOBALS['eZSurveyQuestionTypes'][$this->Type]['count']--;
     parent::remove();
 }
開發者ID:netbliss,項目名稱:ezsurvey,代碼行數:5,代碼來源:ezsurveyquestion.php

示例13: remove

 /**
  * Removes self, while also removing related translations and links to objects
  *
  * @param mixed $conditions
  * @param mixed $extraConditions
  */
 public function remove($conditions = null, $extraConditions = null)
 {
     foreach ($this->getTagAttributeLinks() as $tagAttributeLink) {
         $tagAttributeLink->remove();
     }
     foreach ($this->getTranslations() as $translation) {
         $translation->remove();
     }
     parent::remove($conditions, $extraConditions);
 }
開發者ID:oki34,項目名稱:eztags,代碼行數:16,代碼來源:eztagsobject.php


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