PHP Class Pimcore\Model\Object\Service

Inheritance: extends Pimcore\Model\Element\Service
Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Свойство Type Description
$_copyRecursiveIds array
$_user Pimcore\Model\User
$systemFields array System fields used by filter conditions

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
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

Method Details

__construct() public méthode

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

addGridFeatureJoins() public static méthode

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 méthode

public copyAsChild ( AbstractObject $target, AbstractObject $source ) : AbstractObject
$target AbstractObject
$source AbstractObject
Résultat AbstractObject copied object

copyContents() public méthode

public copyContents ( $target, $source ) : AbstractObject
$target
$source
Résultat AbstractObject

copyRecursive() public méthode

public copyRecursive ( $target, $source ) : mixed
$target
$source
Résultat mixed

createSuperLayout() public static méthode

public static createSuperLayout ( &$layout )

enrichLayoutDefinition() public static méthode

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

extractLocalizedFieldDefinitions() public static méthode

public static extractLocalizedFieldDefinitions ( $layout, $targetList, $insideLocalizedField ) : mixed
$layout
$targetList
$insideLocalizedField
Résultat mixed

getCalculatedFieldValue() public static méthode

public static getCalculatedFieldValue ( $object, $data ) : mixed | null
$object
$data Model\Object\Data\CalculatedValue
Résultat mixed | null

getCalculatedFieldValueForEditMode() public static méthode

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

getCustomGridFieldDefinitions() public static méthode

public static getCustomGridFieldDefinitions ( $classId, $objectId )

getCustomLayoutDefinitionForGridColumnConfig() public static méthode

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

getFeatureFilters() public static méthode

public static getFeatureFilters ( string $filterJson, ClassDefinition $class ) : string
$filterJson string
$class ClassDefinition
Résultat string

getFieldForBrickType() public static méthode

public static getFieldForBrickType ( ClassDefinition $class, $bricktype ) : integer | null | string
$class ClassDefinition
$bricktype
Résultat integer | null | string

getFilterCondition() public static méthode

public static getFilterCondition ( string $filterJson, ClassDefinition $class ) : string
$filterJson string
$class ClassDefinition
Résultat string

getLanguagePermissions() public static méthode

public static getLanguagePermissions ( $object, $user, $type ) : array | null
$object
$user
$type
Résultat array | null

getLayoutPermissions() public static méthode

public static getLayoutPermissions ( $classId, $permissionSet ) : array | null
$classId
$permissionSet
Résultat array | null

getObjectsReferencingUser() public static méthode

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

getOptionsForMultiSelectField() public static méthode

alias of getOptionsForMultiSelectField
public static getOptionsForMultiSelectField ( $object, $fieldname ) : array
$object
$fieldname
Résultat array

getOptionsForSelectField() public static méthode

public static getOptionsForSelectField ( $object, $fieldname ) : array
$object
$fieldname
Résultat array

getSuperLayoutDefinition() public static méthode

Calculates the super layout definition for the given object.
public static getSuperLayoutDefinition ( Concrete $object ) : mixed
$object Concrete
Résultat mixed

getSystemFields() public static méthode

public static getSystemFields ( ) : array
Résultat array

getUniqueKey() public static méthode

public static getUniqueKey ( $item, $nr )

getValidLayouts() public static méthode

public static getValidLayouts ( Concrete $object ) : array
$object Concrete
Résultat array

gridObjectData() public static méthode

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

hasInheritableParentObject() public static méthode

public static hasInheritableParentObject ( Concrete $object ) : AbstractObject | null
$object Concrete
Résultat AbstractObject | null

loadAllObjectFields() public static méthode

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
Résultat void

pathExists() public static méthode

public static pathExists ( $path, $type = null ) : boolean
$path
Résultat boolean

rewriteIds() public static méthode

..), "asset" => array(...) )
public static rewriteIds ( $object, $rewriteConfig ) : AbstractObject
$object
$rewriteConfig
Résultat AbstractObject

synchronizeCustomLayout() public static méthode

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

Property Details

$_copyRecursiveIds protected_oe property

protected array $_copyRecursiveIds
Résultat array

$_user protected_oe property

protected User,Pimcore\Model $_user
Résultat Pimcore\Model\User

$systemFields protected_oe static_oe property

System fields used by filter conditions
protected static array $systemFields
Résultat array