PHP 클래스 Pimcore\Model\Dependency

상속: extends AbstractModel
파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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