PHP Interface Sulu\Component\Content\Compat\Block\BlockPropertyInterface

Inheritance: extends Sulu\Component\Content\Compat\PropertyInterface
Show file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
addType ( BlockPropertyType $type ) adds a type.
clearProperties ( ) clears all initialized properties.
getDefaultTypeName ( ) : string return default type name.
getLength ( ) : integer Returns sizeof block.
getProperties ( integer $index ) : BlockPropertyType returns properties for given index.
getType ( string $name ) : BlockPropertyType returns property with given name.
getTypes ( ) : BlockPropertyType[] returns a list of properties managed by this block.
initProperties ( integer $index, string $typeName ) : BlockPropertyType initiate new child with given type name.

Method Details

addType() public method

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

clearProperties() public method

clears all initialized properties.
public clearProperties ( )

getDefaultTypeName() public method

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

getLength() public method

Returns sizeof block.
public getLength ( ) : integer
return integer

getProperties() public method

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

getType() public method

returns property with given name.
public getType ( string $name ) : BlockPropertyType
$name string of property
return BlockPropertyType

getTypes() public method

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

initProperties() public method

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