PHP 클래스 Pimcore\Model\Object\Service

상속: extends Pimcore\Model\Element\Service
파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_copyRecursiveIds array
$_user Pimcore\Model\User
$systemFields array System fields used by filter conditions

공개 메소드들

메소드 설명
__construct ( User $user = null )
addGridFeatureJoins ( $list, $featureJoins, $class, $featureFilters, $requestedLanguage ) Adds all the query stuff that is needed for displaying, filtering and exporting the feature grid data.
copyAsChild ( AbstractObject $target, AbstractObject $source ) : AbstractObject
copyContents ( $target, $source ) : AbstractObject
copyRecursive ( $target, $source ) : mixed
createSuperLayout ( &$layout )
enrichLayoutDefinition ( &$layout, $object = null ) Enriches the layout definition before it is returned to the admin interface.
extractLocalizedFieldDefinitions ( $layout, $targetList, $insideLocalizedField ) : mixed
getCalculatedFieldValue ( $object, $data ) : mixed | null
getCalculatedFieldValueForEditMode ( $object, $params = [], $data ) : mixed | null
getCustomGridFieldDefinitions ( $classId, $objectId )
getCustomLayoutDefinitionForGridColumnConfig ( ClassDefinition $class, integer $objectId ) : array Determines the custom layout definition (if necessary) for the given class
getFeatureFilters ( string $filterJson, ClassDefinition $class ) : string
getFieldForBrickType ( ClassDefinition $class, $bricktype ) : integer | null | string
getFilterCondition ( string $filterJson, ClassDefinition $class ) : string
getLanguagePermissions ( $object, $user, $type ) : array | null
getLayoutPermissions ( $classId, $permissionSet ) : array | null
getObjectsReferencingUser ( integer $userId ) : Concrete[] finds all objects which hold a reference to a specific user
getOptionsForMultiSelectField ( $object, $fieldname ) : array alias of getOptionsForMultiSelectField
getOptionsForSelectField ( $object, $fieldname ) : array
getSuperLayoutDefinition ( Concrete $object ) : mixed Calculates the super layout definition for the given object.
getSystemFields ( ) : array
getUniqueKey ( $item, $nr )
getValidLayouts ( Concrete $object ) : array
gridObjectData ( AbstractObject $object, $fields = null, $requestedLanguage = null ) : array Language only user for classification store !!!
hasInheritableParentObject ( Concrete $object ) : AbstractObject | null
loadAllObjectFields ( Concrete $object ) : void call the getters of each object field, in case some of the are lazy loading and we need the data to be loaded
pathExists ( $path, $type = null ) : boolean
rewriteIds ( $object, $rewriteConfig ) : AbstractObject Rewrites id from source to target, $rewriteConfig contains array( "document" => array( SOURCE_ID => TARGET_ID, SOURCE_ID => TARGET_ID ), "object" => array(.
synchronizeCustomLayout ( CustomLayout $customLayout ) Synchronizes a custom layout with its master layout

비공개 메소드들

메소드 설명
doFilterCustomGridFieldDefinitions ( &$layout, $fieldDefinitions ) : boolean
getValueForObject ( $object, $key, $brickType = null, $brickKey = null, $fieldDefinition = null ) : stdclass, gets value for given object and getter, including inherited values
mergeFieldDefinition ( &$mergedFieldDefinition, &$customFieldDefinitions, $key )
synchronizeCustomLayoutFieldWithMaster ( $masterDefinition, &$layout ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( User $user = null )
$user Pimcore\Model\User

addGridFeatureJoins() 공개 정적인 메소드

Adds all the query stuff that is needed for displaying, filtering and exporting the feature grid data.
public static addGridFeatureJoins ( $list, $featureJoins, $class, $featureFilters, $requestedLanguage )
$list list
$featureJoins
$class
$featureFilters
$requestedLanguage

copyAsChild() 공개 메소드

public copyAsChild ( AbstractObject $target, AbstractObject $source ) : AbstractObject
$target AbstractObject
$source AbstractObject
리턴 AbstractObject copied object

copyContents() 공개 메소드

public copyContents ( $target, $source ) : AbstractObject
$target
$source
리턴 AbstractObject

copyRecursive() 공개 메소드

public copyRecursive ( $target, $source ) : mixed
$target
$source
리턴 mixed

createSuperLayout() 공개 정적인 메소드

public static createSuperLayout ( &$layout )

enrichLayoutDefinition() 공개 정적인 메소드

Enriches the layout definition before it is returned to the admin interface.
public static enrichLayoutDefinition ( &$layout, $object = null )
$layout

extractLocalizedFieldDefinitions() 공개 정적인 메소드

public static extractLocalizedFieldDefinitions ( $layout, $targetList, $insideLocalizedField ) : mixed
$layout
$targetList
$insideLocalizedField
리턴 mixed

getCalculatedFieldValue() 공개 정적인 메소드

public static getCalculatedFieldValue ( $object, $data ) : mixed | null
$object
$data Model\Object\Data\CalculatedValue
리턴 mixed | null

getCalculatedFieldValueForEditMode() 공개 정적인 메소드

public static getCalculatedFieldValueForEditMode ( $object, $params = [], $data ) : mixed | null
$object
$data Model\Object\Data\CalculatedValue
리턴 mixed | null

getCustomGridFieldDefinitions() 공개 정적인 메소드

public static getCustomGridFieldDefinitions ( $classId, $objectId )

getCustomLayoutDefinitionForGridColumnConfig() 공개 정적인 메소드

Determines the custom layout definition (if necessary) for the given class
public static getCustomLayoutDefinitionForGridColumnConfig ( ClassDefinition $class, integer $objectId ) : array
$class ClassDefinition
$objectId integer
리턴 array layout

getFeatureFilters() 공개 정적인 메소드

public static getFeatureFilters ( string $filterJson, ClassDefinition $class ) : string
$filterJson string
$class ClassDefinition
리턴 string

getFieldForBrickType() 공개 정적인 메소드

public static getFieldForBrickType ( ClassDefinition $class, $bricktype ) : integer | null | string
$class ClassDefinition
$bricktype
리턴 integer | null | string

getFilterCondition() 공개 정적인 메소드

public static getFilterCondition ( string $filterJson, ClassDefinition $class ) : string
$filterJson string
$class ClassDefinition
리턴 string

getLanguagePermissions() 공개 정적인 메소드

public static getLanguagePermissions ( $object, $user, $type ) : array | null
$object
$user
$type
리턴 array | null

getLayoutPermissions() 공개 정적인 메소드

public static getLayoutPermissions ( $classId, $permissionSet ) : array | null
$classId
$permissionSet
리턴 array | null

getObjectsReferencingUser() 공개 정적인 메소드

finds all objects which hold a reference to a specific user
public static getObjectsReferencingUser ( integer $userId ) : Concrete[]
$userId integer
리턴 Concrete[]

getOptionsForMultiSelectField() 공개 정적인 메소드

alias of getOptionsForMultiSelectField
public static getOptionsForMultiSelectField ( $object, $fieldname ) : array
$object
$fieldname
리턴 array

getOptionsForSelectField() 공개 정적인 메소드

public static getOptionsForSelectField ( $object, $fieldname ) : array
$object
$fieldname
리턴 array

getSuperLayoutDefinition() 공개 정적인 메소드

Calculates the super layout definition for the given object.
public static getSuperLayoutDefinition ( Concrete $object ) : mixed
$object Concrete
리턴 mixed

getSystemFields() 공개 정적인 메소드

public static getSystemFields ( ) : array
리턴 array

getUniqueKey() 공개 정적인 메소드

public static getUniqueKey ( $item, $nr )

getValidLayouts() 공개 정적인 메소드

public static getValidLayouts ( Concrete $object ) : array
$object Concrete
리턴 array

gridObjectData() 공개 정적인 메소드

Language only user for classification store !!!
public static gridObjectData ( AbstractObject $object, $fields = null, $requestedLanguage = null ) : array
$object AbstractObject
리턴 array

hasInheritableParentObject() 공개 정적인 메소드

public static hasInheritableParentObject ( Concrete $object ) : AbstractObject | null
$object Concrete
리턴 AbstractObject | null

loadAllObjectFields() 공개 정적인 메소드

call the getters of each object field, in case some of the are lazy loading and we need the data to be loaded
public static loadAllObjectFields ( Concrete $object ) : void
$object Concrete
리턴 void

pathExists() 공개 정적인 메소드

public static pathExists ( $path, $type = null ) : boolean
$path
리턴 boolean

rewriteIds() 공개 정적인 메소드

..), "asset" => array(...) )
public static rewriteIds ( $object, $rewriteConfig ) : AbstractObject
$object
$rewriteConfig
리턴 AbstractObject

synchronizeCustomLayout() 공개 정적인 메소드

Synchronizes a custom layout with its master layout
public static synchronizeCustomLayout ( CustomLayout $customLayout )
$customLayout Pimcore\Model\Object\ClassDefinition\CustomLayout

프로퍼티 상세

$_copyRecursiveIds 보호되어 있는 프로퍼티

protected array $_copyRecursiveIds
리턴 array

$_user 보호되어 있는 프로퍼티

protected User,Pimcore\Model $_user
리턴 Pimcore\Model\User

$systemFields 보호되어 있는 정적으로 프로퍼티

System fields used by filter conditions
protected static array $systemFields
리턴 array