当前位置: 首页>>代码示例>>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;未经允许,请勿转载。