PHP Класс Pimcore\Model\Dependency

Наследование: extends AbstractModel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$requiredBy integer Contains the ID/type of objects that need the given source object (sourceId/sourceType)
$requires integer Contains the ID/type of objects which are required for the given source object (sourceId/sourceType)
$sourceId integer The ID of the object to get dependencies for
$sourceType string The type of the object to get dependencies for

Открытые методы

Метод Описание
addRequirement ( integer $id, string $type ) : void Add a requirement to the source object
clean ( ) : void Cleanup the dependencies for current source id
cleanAllForElement ( Element\ELementInterface $element ) : void
getBySourceId ( integer $id, string $type ) : Dependency Static helper to get the dependencies for the given sourceId & type
getRequiredBy ( ) : array
getRequires ( ) : array
getSourceId ( ) : integer
getSourceType ( ) : string
isRequired ( ) : void Check if the source object is required by an other object (an other object depends on this object)
setRequiredBy ( array $requiredBy ) : void
setRequires ( array $requires )
setSourceId ( integer $sourceId )
setSourceType ( string $sourceType ) : void

Описание методов

addRequirement() публичный Метод

Add a requirement to the source object
public addRequirement ( integer $id, string $type ) : void
$id integer
$type string
Результат void

clean() публичный Метод

Cleanup the dependencies for current source id
public clean ( ) : void
Результат void

cleanAllForElement() публичный Метод

public cleanAllForElement ( Element\ELementInterface $element ) : void
$element Element\ELementInterface
Результат void

getBySourceId() публичный статический Метод

Static helper to get the dependencies for the given sourceId & type
public static getBySourceId ( integer $id, string $type ) : Dependency
$id integer
$type string
Результат Dependency

getRequiredBy() публичный Метод

public getRequiredBy ( ) : array
Результат array

getRequires() публичный Метод

public getRequires ( ) : array
Результат array

getSourceId() публичный Метод

public getSourceId ( ) : integer
Результат integer

getSourceType() публичный Метод

public getSourceType ( ) : string
Результат string

isRequired() публичный Метод

Check if the source object is required by an other object (an other object depends on this object)
public isRequired ( ) : void
Результат void

setRequiredBy() публичный Метод

public setRequiredBy ( array $requiredBy ) : void
$requiredBy array
Результат void

setRequires() публичный Метод

public setRequires ( array $requires )
$requires array

setSourceId() публичный Метод

public setSourceId ( integer $sourceId )
$sourceId integer

setSourceType() публичный Метод

public setSourceType ( string $sourceType ) : void
$sourceType string
Результат void

Описание свойств

$requiredBy публичное свойство

Contains the ID/type of objects that need the given source object (sourceId/sourceType)
public int $requiredBy
Результат integer

$requires публичное свойство

Contains the ID/type of objects which are required for the given source object (sourceId/sourceType)
public int $requires
Результат integer

$sourceId публичное свойство

The ID of the object to get dependencies for
public int $sourceId
Результат integer

$sourceType публичное свойство

The type of the object to get dependencies for
public string $sourceType
Результат string