PHP Class Sulu\Component\Content\Mapper\Translation\TranslatedProperty

Inheritance: implements Sulu\Component\Content\Compat\PropertyInterface
Exibir arquivo Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\Content\Compat\PropertyInterface $property, $localization, $languageNamespace, $additionalPrefix = null ) Constructor.
getColspan ( ) : string returns column span.
getContentTypeName ( ) : string returns name of content type.
getDocument ( )
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.
getLocalization ( ) : string returns the localization of this property.
getMandatory ( ) : boolean returns field is mandatory.
getMaxOccurs ( ) : integer return max occurs.
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.
getProperty ( ) : Sulu\Component\Content\Document\Property\PropertyInterface
getStructure ( )
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.
isMandatory ( ) : boolean returns mandatory.
isMultilingual ( ) : boolean returns multilingual.
setLocalization ( string $localization ) sets the localization of this property.
setStructure ( $structure )
setValue ( $value ) sets the value from property.
toArray ( $depth = null )

Method Details

__construct() public method

Constructor.
public __construct ( Sulu\Component\Content\Compat\PropertyInterface $property, $localization, $languageNamespace, $additionalPrefix = null )
$property Sulu\Component\Content\Compat\PropertyInterface

getColspan() public method

returns column span.
public getColspan ( ) : string
return string

getContentTypeName() public method

returns name of content type.
public getContentTypeName ( ) : string
return string

getDocument() public method

public getDocument ( )

getInfoText() public method

returns infoText of property.
public getInfoText ( string $languageCode ) : string
$languageCode string
return string

getIsBlock() public method

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

getIsMultiple() public method

returns TRUE if property is multiple.
public getIsMultiple ( ) : boolean
return boolean

getLocalization() public method

returns the localization of this property.
public getLocalization ( ) : string
return string

getMandatory() public method

returns field is mandatory.
public getMandatory ( ) : boolean
return boolean

getMaxOccurs() public method

return max occurs.
public getMaxOccurs ( ) : integer
return integer

getMinOccurs() public method

return min occurs.
public getMinOccurs ( ) : integer
return integer

getMultilingual() public method

returns field is multilingual.
public getMultilingual ( ) : boolean
return boolean

getName() public method

returns name of template.
public getName ( ) : string
return string

getParams() public method

parameter of property.
public getParams ( ) : array
return array

getPlaceholder() public method

returns placeholder of property.
public getPlaceholder ( string $languageCode ) : string
$languageCode string
return string

getProperty() public method

public getProperty ( ) : Sulu\Component\Content\Document\Property\PropertyInterface
return Sulu\Component\Content\Document\Property\PropertyInterface

getStructure() public method

public getStructure ( )

getTag() public method

returns tag with given name.
public getTag ( string $tagName ) : PropertyTag
$tagName string
return Sulu\Component\Content\Compat\PropertyTag

getTags() public method

returns tags defined in xml.
public getTags ( ) : PropertyTag[]
return Sulu\Component\Content\Compat\PropertyTag[]

getTitle() public method

returns title of property.
public getTitle ( string $languageCode ) : string
$languageCode string
return string

getValue() public method

gets the value from property.
public getValue ( ) : mixed
return mixed

isMandatory() public method

returns mandatory.
public isMandatory ( ) : boolean
return boolean

isMultilingual() public method

returns multilingual.
public isMultilingual ( ) : boolean
return boolean

setLocalization() public method

sets the localization of this property.
public setLocalization ( string $localization )
$localization string

setStructure() public method

public setStructure ( $structure )

setValue() public method

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

toArray() public method

public toArray ( $depth = null )