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


PHP eZPersistentObject::fetchObject方法代碼示例

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


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

示例1: fetch

 function fetch($collaborationID, $groupID, $userID = false, $asObject = true)
 {
     if ($userID == false) {
         $userID == eZUser::currentUserID();
     }
     return eZPersistentObject::fetchObject(eZCollaborationItemGroupLink::definition(), null, array('collaboration_id' => $collaborationID, 'group_id' => $groupID, 'user_id' => $userID), $asObject);
 }
開發者ID:EVE-Corp-Center,項目名稱:ECC-Website,代碼行數:7,代碼來源:ezcollaborationitemgrouplink.php

示例2: fetch

 static function fetch($collaborationID, $participantID, $asObject = true)
 {
     if (empty($GLOBALS["eZCollaborationItemParticipantLinkCache"][$collaborationID][$participantID])) {
         $GLOBALS["eZCollaborationItemParticipantLinkCache"][$collaborationID][$participantID] = eZPersistentObject::fetchObject(eZCollaborationItemParticipantLink::definition(), null, array("collaboration_id" => $collaborationID, 'participant_id' => $participantID), $asObject);
     }
     return $GLOBALS["eZCollaborationItemParticipantLinkCache"][$collaborationID][$participantID];
 }
開發者ID:legende91,項目名稱:ez,代碼行數:7,代碼來源:ezcollaborationitemparticipantlink.php

示例3: fetch

 static function fetch( $id, $asObject = true )
 {
     return eZPersistentObject::fetchObject( eZWorkflowGroup::definition(),
                                             null,
                                             array( "id" => $id ),
                                             $asObject );
 }
開發者ID:sushilbshinde,項目名稱:ezpublish-study,代碼行數:7,代碼來源:ezworkflowgroup.php

示例4: fetchMain

 static function fetchMain($mementoKey, $asObject = true)
 {
     if (is_array($mementoKey)) {
         $mementoKey = eZOperationMemento::createKey($mementoKey);
     }
     return eZPersistentObject::fetchObject(eZOperationMemento::definition(), null, array('memento_key' => $mementoKey, 'main' => 1), $asObject);
 }
開發者ID:mugoweb,項目名稱:ezpublish-legacy,代碼行數:7,代碼來源:ezoperationmemento.php

示例5: fetchByKey

 static function fetchByKey( $hashKey )
 {
     return eZPersistentObject::fetchObject( eZForgotPassword::definition(),
                                             null,
                                             array( "hash_key" => $hashKey ),
                                             true );
 }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:7,代碼來源:ezforgotpassword.php

示例6: fetch

 static function fetch($id, $asObject = true)
 {
     if ($id == -1 && eZVATManager::isDynamicVatChargingEnabled()) {
         return eZVatType::dynamicVatType($asObject);
     }
     return eZPersistentObject::fetchObject(eZVatType::definition(), null, array("id" => $id), $asObject);
 }
開發者ID:netbliss,項目名稱:ezpublish,代碼行數:7,代碼來源:ezvattype.php

示例7: fetch

 static function fetch( $userID,  $asObject = true  )
 {
     return eZPersistentObject::fetchObject( eZUserSetting::definition(),
                                                 null,
                                                 array('user_id' => $userID ),
                                                 $asObject );
 }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:7,代碼來源:ezusersetting.php

示例8: fetchByNodeId

 public static function fetchByNodeId( $nodeId )
 {
     $conds = array(
         'node_id'       => $nodeId,
     );
     return eZPersistentObject::fetchObject( self::definition(), null, $conds );
 }
開發者ID:sushilbshinde,項目名稱:ezpublish-study,代碼行數:7,代碼來源:pfrlocation.php

示例9: fetchByName

 static function fetchByName( $name, $asObject = true )
 {
     return eZPersistentObject::fetchObject( eZProductCategory::definition(),
                                             null,
                                             array( "name" => $name ),
                                             $asObject );
 }
開發者ID:nottavi,項目名稱:ezpublish,代碼行數:7,代碼來源:ezproductcategory.php

示例10: fetchByKey

 static function fetchByKey( $hashKey )
 {
     return eZPersistentObject::fetchObject( eZUserAccountKey::definition(),
                                             null,
                                             array( 'hash_key' => $hashKey ),
                                             true );
 }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:7,代碼來源:ezuseraccountkey.php

示例11: fetch

 static function fetch( $id, $asObject = true )
 {
     return eZPersistentObject::fetchObject( eZDiscountSubRule::definition(),
                                             null,
                                             array( "id" => $id ),
                                             $asObject );
 }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:7,代碼來源:ezdiscountsubrule.php

示例12: fetch

 static function fetch( $id )
 {
     return eZPersistentObject::fetchObject( eZVatRule::definition(),
                                             null,
                                             array( "id" => $id ),
                                             true );
 }
開發者ID:robinmuilwijk,項目名稱:ezpublish,代碼行數:7,代碼來源:ezvatrule.php

示例13: fetchForUser

 static function fetchForUser( $address, $asObject = true )
 {
     return eZPersistentObject::fetchObject( eZGeneralDigestUserSettings::definition(),
                                             null,
                                             array( 'address' => $address ),
                                             $asObject );
 }
開發者ID:sushilbshinde,項目名稱:ezpublish-study,代碼行數:7,代碼來源:ezgeneraldigestusersettings.php

示例14: fetch

 /**
  * Returns eZTagsKeyword object for given tag ID and locale
  *
  * @static
  *
  * @param int $tagID
  * @param string $locale
  * @param bool $includeDrafts
  *
  * @return eZTagsKeyword
  */
 public static function fetch($tagID, $locale, $includeDrafts = false)
 {
     $fetchParams = array('keyword_id' => $tagID, 'locale' => $locale);
     if (!$includeDrafts) {
         $fetchParams['status'] = self::STATUS_PUBLISHED;
     }
     return parent::fetchObject(self::definition(), null, $fetchParams);
 }
開發者ID:oki34,項目名稱:eztags,代碼行數:19,代碼來源:eztagskeyword.php

示例15: fetch

 static function fetch($id, $userID = false, $asObject = true)
 {
     $conditions = array("id" => $id);
     if ($userID !== false) {
         $conditions['user_id'] = $userID;
     }
     return eZPersistentObject::fetchObject(eZCollaborationGroup::definition(), null, $conditions, $asObject);
 }
開發者ID:patrickallaert,項目名稱:ezpublish-legacy-php7,代碼行數:8,代碼來源:ezcollaborationgroup.php


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