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


PHP eZPersistentObject::store方法代碼示例

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


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

示例1: store

 function store($fieldFilters = null)
 {
     parent::store($fieldFilters);
     if ($this->OriginalID == 0) {
         $this->OriginalID = $this->ID;
         parent::store($fieldFilters);
     }
 }
開發者ID:netbliss,項目名稱:ezsurvey,代碼行數:8,代碼來源:ezsurveyquestion.php

示例2: store

 function store($fieldFilters = null)
 {
     $dateTime = time();
     $user = eZUser::currentUser();
     $this->setAttribute('modifier_id', $user->attribute('contentobject_id'));
     $this->setAttribute('modified', $dateTime);
     parent::store($fieldFilters);
 }
開發者ID:brookinsconsulting,項目名稱:ezecosystem,代碼行數:8,代碼來源:ezrssimport.php

示例3: store

 function store($fieldFilters = null)
 {
     if ($this->ContentobjectID == eZUser::anonymousId()) {
         eZUser::purgeUserCacheByAnonymousId();
     } else {
         $handler = eZExpiryHandler::instance();
         $handler->setTimestamp('user-discountrules-cache', time());
         $handler->store();
     }
     parent::store($fieldFilters);
 }
開發者ID:CG77,項目名稱:ezpublish-legacy,代碼行數:11,代碼來源:ezuserdiscountrule.php

示例4: store

 function store($fieldFilters = null)
 {
     if ($this->QuestionOriginalID == 0) {
         $db = eZDB::instance();
         $id = $this->QuestionID;
         $question = eZSurveyQuestion::fetch($id);
         if (get_class($question) == 'eZSurveyQuestion') {
             $this->QuestionOriginalID = $question->attribute('original_id');
         }
     }
     parent::store($fieldFilters);
 }
開發者ID:netbliss,項目名稱:ezsurvey,代碼行數:12,代碼來源:ezsurveyquestionresult.php

示例5: store

 function store($publish = false)
 {
     if ($publish) {
         $originalVersion = $this->attribute('version');
         $this->setAttribute('version', eZPDFExport::VERSION_VALID);
     }
     $user = eZUser::currentUser();
     $this->setAttribute('modified', time());
     $this->setAttribute('modifier_id', $user->attribute('contentobject_id'));
     $db = eZDB::instance();
     $db->begin();
     parent::store();
     if ($publish) {
         $this->setAttribute('version', eZPDFExport::VERSION_DRAFT);
         $this->remove();
         $this->setAttribute('version', $originalVersion);
     }
     $db->commit();
 }
開發者ID:CG77,項目名稱:ezpublish-legacy,代碼行數:19,代碼來源:ezpdfexport.php

示例6: store

 function store($storeAsValid = false)
 {
     $dateTime = time();
     $user = eZUser::currentUser();
     if ($this->ID == null) {
         parent::store();
         return;
     }
     $db = eZDB::instance();
     $db->begin();
     if ($storeAsValid) {
         $oldStatus = $this->attribute('status');
         $this->setAttribute('status', eZRSSExport::STATUS_VALID);
     }
     $this->setAttribute('modified', $dateTime);
     $this->setAttribute('modifier_id', $user->attribute("contentobject_id"));
     parent::store();
     $db->commit();
     if ($storeAsValid) {
         $this->setAttribute('status', $oldStatus);
     }
 }
開發者ID:nfrp,項目名稱:ezpublish,代碼行數:22,代碼來源:ezrssexport.php

示例7: store

 function store($fieldFilters = null)
 {
     $db = eZDB::instance();
     $db->begin();
     // Store the rule itself.
     parent::store($fieldFilters);
     // Store product categories associated with the rule,
     $this->removeProductCategories();
     $categories = $this->attribute('product_categories');
     if ($categories) {
         foreach ($categories as $category) {
             $query = sprintf("INSERT INTO ezvatrule_product_category " . "(vatrule_id, product_category_id) VALUES (%d,%d)", $this->ID, $category['id']);
             $db->query($query);
         }
     }
     $db->commit();
 }
開發者ID:patrickallaert,項目名稱:ezpublish-legacy-php7,代碼行數:17,代碼來源:ezvatrule.php

示例8: store

 /**
  * Stores the eZURLWildcard persistent object
  */
 public function store( $fieldFilters = null )
 {
     eZPersistentObject::store( $fieldFilters );
 }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:7,代碼來源:ezurlwildcard.php

示例9: storeNewRow

 function storeNewRow()
 {
     return parent::store();
 }
開發者ID:nfrp,項目名稱:ezpublish,代碼行數:4,代碼來源:ezcontentobjectattribute.php

示例10: store

 /**
  * if nl user exists update this data to
  * (non-PHPdoc)
  * @see kernel/classes/eZPersistentObject#store($fieldFilters)
  */
 public function store($fieldFilters = null)
 {
     $newsletterUserObject = $this->getNewsletterUserObject();
     if (is_object($newsletterUserObject)) {
         $newsletterUserObject->setBlacklisted();
     }
     parent::store($fieldFilters);
 }
開發者ID:hudri,項目名稱:cjw_newsletter,代碼行數:13,代碼來源:cjwnewsletterblacklistitem.php

示例11: store

 function store($fieldFilters = null)
 {
     $db = eZDB::instance();
     $db->begin();
     parent::store($fieldFilters);
     $this->updateAndStoreModified();
     $db->commit();
 }
開發者ID:brookinsconsulting,項目名稱:ezecosystem,代碼行數:8,代碼來源:ezcontentobjecttreenode.php

示例12: store

 function store($fieldFilters = null)
 {
     $this->Email = trim($this->Email);
     $userID = $this->attribute('contentobject_id');
     // Clear memory cache
     unset($GLOBALS['eZUserObject_' . $userID]);
     $GLOBALS['eZUserObject_' . $userID] = $this;
     self::purgeUserCacheByUserId($userID);
     parent::store($fieldFilters);
 }
開發者ID:brookinsconsulting,項目名稱:ezecosystem,代碼行數:10,代碼來源:ezuser.php

示例13: store

 function store($fieldFilters = null)
 {
     eZPersistentObject::store($fieldFilters);
     $this->updateCache();
     return true;
 }
開發者ID:legende91,項目名稱:ez,代碼行數:6,代碼來源:ezcollaborationitemstatus.php

示例14: store

 /**
  * set Modifed data if somebody store content
  * (non-PHPdoc)
  * @see kernel/classes/eZPersistentObject#store($fieldFilters)
  */
 public function store($fieldFilters = null)
 {
     $this->setModified();
     parent::store($fieldFilters);
 }
開發者ID:heliopsis,項目名稱:cjw_newsletter,代碼行數:10,代碼來源:cjwnewslettersubscription.php

示例15: storeVersioned

 /**
  * Stores the current class as a modified version, updates the contentobject_name
  * attribute and recreates the class group entries.
  *
  * @note It will remove classes in the previous and specified version before storing.
  *
  * @param array $attributes array of attributes
  * @param int $version version status
  * @since Version 4.3
  */
 public function storeVersioned($attributes, $version)
 {
     $previousVersion = $this->attribute('version');
     $db = eZDB::instance();
     $db->begin();
     // Before removing anything from the attributes, load attribute information
     // which might otherwise not accessible when recreating them below.
     // See issue #18164
     foreach ($attributes as $attribute) {
         $attribute->content();
     }
     $this->removeAttributes(false, $version);
     $this->removeAttributes(false, $previousVersion);
     $this->remove(false);
     $this->setVersion($version, $attributes);
     $this->setAttribute("modifier_id", eZUser::currentUser()->attribute("contentobject_id"));
     $this->setAttribute("modified", time());
     $this->adjustAttributePlacements($attributes);
     foreach ($attributes as $attribute) {
         $attribute->storeVersioned($version);
     }
     // Set contentobject_name to something sensible if it is missing
     if (count($attributes) > 0 && trim($this->attribute('contentobject_name')) == '') {
         $this->setAttribute('contentobject_name', '<' . $attributes[0]->attribute('identifier') . '>');
     }
     // Recreate class member entries
     eZContentClassClassGroup::removeClassMembers($this->ID, $version);
     foreach (eZContentClassClassGroup::fetchGroupList($this->ID, $previousVersion) as $classgroup) {
         $classgroup->setAttribute('contentclass_version', $version);
         $classgroup->store();
     }
     eZContentClassClassGroup::removeClassMembers($this->ID, $previousVersion);
     eZExpiryHandler::registerShutdownFunction();
     $handler = eZExpiryHandler::instance();
     $time = time();
     $handler->setTimestamp('user-class-cache', $time);
     $handler->setTimestamp('class-identifier-cache', $time);
     $handler->setTimestamp('sort-key-cache', $time);
     $handler->store();
     eZContentCacheManager::clearAllContentCache();
     $this->setAttribute('serialized_name_list', $this->NameList->serializeNames());
     $this->setAttribute('serialized_description_list', $this->DescriptionList->serializeNames());
     eZPersistentObject::store();
     $this->NameList->store($this);
     $db->commit();
 }
開發者ID:nlenardou,項目名稱:ezpublish,代碼行數:56,代碼來源:ezcontentclass.php


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