本文整理汇总了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);
}
示例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];
}
示例3: fetch
static function fetch( $id, $asObject = true )
{
return eZPersistentObject::fetchObject( eZWorkflowGroup::definition(),
null,
array( "id" => $id ),
$asObject );
}
示例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);
}
示例5: fetchByKey
static function fetchByKey( $hashKey )
{
return eZPersistentObject::fetchObject( eZForgotPassword::definition(),
null,
array( "hash_key" => $hashKey ),
true );
}
示例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);
}
示例7: fetch
static function fetch( $userID, $asObject = true )
{
return eZPersistentObject::fetchObject( eZUserSetting::definition(),
null,
array('user_id' => $userID ),
$asObject );
}
示例8: fetchByNodeId
public static function fetchByNodeId( $nodeId )
{
$conds = array(
'node_id' => $nodeId,
);
return eZPersistentObject::fetchObject( self::definition(), null, $conds );
}
示例9: fetchByName
static function fetchByName( $name, $asObject = true )
{
return eZPersistentObject::fetchObject( eZProductCategory::definition(),
null,
array( "name" => $name ),
$asObject );
}
示例10: fetchByKey
static function fetchByKey( $hashKey )
{
return eZPersistentObject::fetchObject( eZUserAccountKey::definition(),
null,
array( 'hash_key' => $hashKey ),
true );
}
示例11: fetch
static function fetch( $id, $asObject = true )
{
return eZPersistentObject::fetchObject( eZDiscountSubRule::definition(),
null,
array( "id" => $id ),
$asObject );
}
示例12: fetch
static function fetch( $id )
{
return eZPersistentObject::fetchObject( eZVatRule::definition(),
null,
array( "id" => $id ),
true );
}
示例13: fetchForUser
static function fetchForUser( $address, $asObject = true )
{
return eZPersistentObject::fetchObject( eZGeneralDigestUserSettings::definition(),
null,
array( 'address' => $address ),
$asObject );
}
示例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);
}
示例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);
}