PHP 클래스 Sulu\Component\Content\Compat\Block\BlockProperty

상속: extends Sulu\Component\Content\Compat\Property, implements Sulu\Component\Content\Compat\Block\BlockPropertyInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( )
__construct ( $name, $metadata, $defaultTypeName, $mandatory = false, $multilingual = false, $maxOccurs = 1, $minOccurs = 1, $params = [], $tags = [], $col = null )
addType ( BlockPropertyType $type ) adds a type.
clearProperties ( ) clears all initialized properties.
doSetValue ( $value ) Sub properties need to be referenced to the PropertyValue so that the "real" property is updated.
getChildProperties ( string $typeName ) : Sulu\Component\Content\Compat\PropertyInterface[] returns child properties of given Type.
getDefaultTypeName ( ) : string return default type name.
getIsBlock ( ) : boolean returns TRUE if property is a block.
getLength ( ) : integer Returns sizeof block.
getProperties ( integer $index ) : BlockPropertyType returns properties for given index.
getType ( string $name ) : BlockPropertyType returns type with given name.
getTypes ( ) : BlockPropertyType[] returns a list of properties managed by this block.
getValue ( ) : array | mixed get value of sub properties.
initProperties ( integer $index, string $typeName ) : BlockPropertyType initiate new child with given type name.
setPropertyValue ( PropertyValue $value )
setValue ( mixed $value ) set value of child properties.

메소드 상세

__clone() 공개 메소드

public __clone ( )

__construct() 공개 메소드

public __construct ( $name, $metadata, $defaultTypeName, $mandatory = false, $multilingual = false, $maxOccurs = 1, $minOccurs = 1, $params = [], $tags = [], $col = null )

addType() 공개 메소드

adds a type.
public addType ( BlockPropertyType $type )
$type BlockPropertyType

clearProperties() 공개 메소드

clears all initialized properties.
public clearProperties ( )

doSetValue() 공개 메소드

TODO: This is very tedious code. It is important to factor this out.
public doSetValue ( $value )

getChildProperties() 공개 메소드

returns child properties of given Type.
public getChildProperties ( string $typeName ) : Sulu\Component\Content\Compat\PropertyInterface[]
$typeName string
리턴 Sulu\Component\Content\Compat\PropertyInterface[]

getDefaultTypeName() 공개 메소드

return default type name.
public getDefaultTypeName ( ) : string
리턴 string

getIsBlock() 공개 메소드

returns TRUE if property is a block.
public getIsBlock ( ) : boolean
리턴 boolean

getLength() 공개 메소드

Returns sizeof block.
public getLength ( ) : integer
리턴 integer

getProperties() 공개 메소드

returns properties for given index.
public getProperties ( integer $index ) : BlockPropertyType
$index integer
리턴 BlockPropertyType

getType() 공개 메소드

returns type with given name.
public getType ( string $name ) : BlockPropertyType
$name string of property
리턴 BlockPropertyType

getTypes() 공개 메소드

returns a list of properties managed by this block.
public getTypes ( ) : BlockPropertyType[]
리턴 BlockPropertyType[]

getValue() 공개 메소드

get value of sub properties.
public getValue ( ) : array | mixed
리턴 array | mixed

initProperties() 공개 메소드

initiate new child with given type name.
public initProperties ( integer $index, string $typeName ) : BlockPropertyType
$index integer
$typeName string
리턴 BlockPropertyType

setPropertyValue() 공개 메소드

public setPropertyValue ( PropertyValue $value )
$value Sulu\Component\Content\Document\Structure\PropertyValue

setValue() 공개 메소드

set value of child properties.
public setValue ( mixed $value )
$value mixed