PHP Class Sulu\Component\Content\Compat\Property

Inheritance: implements Sulu\Component\Content\Compat\PropertyInterface, implements JsonSerializable
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Protected Properties

Свойство Type Description
$propertyValue Sulu\Component\Content\Document\Structure\PropertyValue Constructor.

Méthodes publiques

Méthode Description
__clone ( )
__construct ( $name, $metaData, $contentTypeName, $mandatory = false, $multilingual = true, $maxOccurs = 1, $minOccurs = 1, $params = [], $tags = [], $col = null )
__get ( $property ) magic getter for twig templates.
addTag ( PropertyTag $tag ) : PropertyTag add a property tag.
getColspan ( ) : string returns column span.
getContentTypeName ( ) : string returns name of content type.
getInfoText ( string $languageCode ) : string returns infoText of property.
getIsBlock ( ) : boolean returns TRUE if property is a block.
getIsMultiple ( ) : boolean returns TRUE if property is multiple.
getMandatory ( ) : boolean returns field is mandatory.
getMaxOccurs ( ) : integer return max occurs.
getMetadata ( ) : Metadata
getMinOccurs ( ) : integer return min occurs.
getMultilingual ( ) : boolean returns field is multilingual.
getName ( ) : string returns name of template.
getParams ( ) : array parameter of property.
getPlaceholder ( string $languageCode ) : string returns placeholder of property.
getStructure ( ) : Sulu\Component\Content\Compat\StructureInterface returns structure.
getTag ( string $tagName ) : PropertyTag returns tag with given name.
getTags ( ) : PropertyTag[] returns tags defined in xml.
getTitle ( string $languageCode ) : string returns title of property.
getValue ( ) : mixed gets the value from property.
hasTag ( $tagName ) : boolean return true if a tag with the given name exists.
isMandatory ( ) : boolean returns mandatory.
isMultilingual ( ) : boolean returns multilingual.
jsonSerialize ( )
setPropertyValue ( PropertyValue $propertyValue )
setStructure ( Sulu\Component\Content\Compat\StructureInterface $structure )
setValue ( mixed $value ) sets the value from property.
setValueByReference ( &$value )
toArray ( $depth = null )

Method Details

__clone() public méthode

public __clone ( )

__construct() public méthode

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

__get() public méthode

magic getter for twig templates.
public __get ( $property )
$property

addTag() public méthode

add a property tag.
public addTag ( PropertyTag $tag ) : PropertyTag
$tag PropertyTag
Résultat PropertyTag

getColspan() public méthode

returns column span.
public getColspan ( ) : string
Résultat string

getContentTypeName() public méthode

returns name of content type.
public getContentTypeName ( ) : string
Résultat string

getInfoText() public méthode

returns infoText of property.
public getInfoText ( string $languageCode ) : string
$languageCode string
Résultat string

getIsBlock() public méthode

returns TRUE if property is a block.
public getIsBlock ( ) : boolean
Résultat boolean

getIsMultiple() public méthode

returns TRUE if property is multiple.
public getIsMultiple ( ) : boolean
Résultat boolean

getMandatory() public méthode

returns field is mandatory.
public getMandatory ( ) : boolean
Résultat boolean

getMaxOccurs() public méthode

return max occurs.
public getMaxOccurs ( ) : integer
Résultat integer

getMetadata() public méthode

public getMetadata ( ) : Metadata
Résultat Metadata

getMinOccurs() public méthode

return min occurs.
public getMinOccurs ( ) : integer
Résultat integer

getMultilingual() public méthode

returns field is multilingual.
public getMultilingual ( ) : boolean
Résultat boolean

getName() public méthode

returns name of template.
public getName ( ) : string
Résultat string

getParams() public méthode

parameter of property.
public getParams ( ) : array
Résultat array

getPlaceholder() public méthode

returns placeholder of property.
public getPlaceholder ( string $languageCode ) : string
$languageCode string
Résultat string

getStructure() public méthode

returns structure.
public getStructure ( ) : Sulu\Component\Content\Compat\StructureInterface
Résultat Sulu\Component\Content\Compat\StructureInterface

getTag() public méthode

returns tag with given name.
public getTag ( string $tagName ) : PropertyTag
$tagName string
Résultat PropertyTag

getTags() public méthode

returns tags defined in xml.
public getTags ( ) : PropertyTag[]
Résultat PropertyTag[]

getTitle() public méthode

returns title of property.
public getTitle ( string $languageCode ) : string
$languageCode string
Résultat string

getValue() public méthode

gets the value from property.
public getValue ( ) : mixed
Résultat mixed

hasTag() public méthode

return true if a tag with the given name exists.
public hasTag ( $tagName ) : boolean
Résultat boolean

isMandatory() public méthode

returns mandatory.
public isMandatory ( ) : boolean
Résultat boolean

isMultilingual() public méthode

returns multilingual.
public isMultilingual ( ) : boolean
Résultat boolean

jsonSerialize() public méthode

public jsonSerialize ( )

setPropertyValue() public méthode

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

setStructure() public méthode

public setStructure ( Sulu\Component\Content\Compat\StructureInterface $structure )
$structure Sulu\Component\Content\Compat\StructureInterface

setValue() public méthode

sets the value from property.
public setValue ( mixed $value )
$value mixed

setValueByReference() public méthode

public setValueByReference ( &$value )

toArray() public méthode

public toArray ( $depth = null )

Property Details

$propertyValue protected_oe property

Constructor.
protected PropertyValue,Sulu\Component\Content\Document\Structure $propertyValue
Résultat Sulu\Component\Content\Document\Structure\PropertyValue