PHP Interface Sulu\Component\Content\Compat\StructureInterface

Inheritance: extends JsonSerializable
Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode Description
copyFrom ( Sulu\Component\Content\Compat\StructureInterface $structure ) Copy static values from another structure.
getChanged ( ) : DateTime returns changed DateTime.
getChanger ( ) : integer returns user id of changer.
getChildren ( ) : Sulu\Component\Content\Compat\StructureInterface[] returns children array.
getCreated ( ) : DateTime return created datetime.
getCreator ( ) : integer gets user id of creator.
getHasChildren ( ) : boolean returns true if node has children.
getHasTranslation ( ) : boolean return true if structure translation is valid.
getKey ( ) : string key of template definition.
getLanguageCode ( ) : string returns language of node.
getLocalizedTitle ( string $languageCode ) : string returns title of property.
getNodeName ( ) : string returns node name addicted to the type.
getNodeState ( ) : integer return the published status of the node.
getNodeType ( ) : integer
getPath ( ) : string return the node path.
getProperties ( boolean $flatten = false ) : Sulu\Component\Content\Compat\PropertyInterface[] returns an array of properties.
getPropertiesByTagName ( string $tagName ) : Sulu\Component\Content\Compat\PropertyInterface[] returns properties with given tag name sorted by priority.
getProperty ( $name ) : Sulu\Component\Content\Compat\PropertyInterface returns a property instance with given name.
getPropertyByTagName ( string $tagName, $highest = true ) : Sulu\Component\Content\Compat\PropertyInterface returns a property instance with given tag name.
getPropertyNames ( ) : array returns all property names.
getPropertyValue ( $name ) : mixed return value of property with given name.
getPropertyValueByTagName ( string $tagName ) : mixed returns value of property with given tag name.
getPublished ( ) : DateTime returns first published date.
getPublishedState ( ) : boolean returns true if state of site is "published".
getType ( ) : StructureType Return type of structure.
getUuid ( ) : integer id of node.
getWebspaceKey ( ) : string returns webspace of node.
hasProperty ( string $name ) : boolean checks if a property exists.
hasTag ( string $tag ) : boolean indicates tag exists.
setChanged ( DateTime $changed ) sets changed datetime.
setChanger ( $userId ) sets user id of changer.
setChildren ( Sulu\Component\Content\Compat\StructureInterface[] $children )
setCreated ( DateTime $created ) sets created datetime.
setCreator ( $userId ) sets user id of creator.
setHasChildren ( boolean $hasChildren )
setHasTranslation ( boolean $hasTranslation )
setLanguageCode ( string $language )
setPath ( string $path )
setPublished ( DateTime $published )
setType ( StructureType $type )
setUuid ( $uuid ) sets id of node.
setWebspaceKey ( string $webspace )
toArray ( boolean $complete = true ) : array returns an array of property value pairs.

Method Details

copyFrom() public méthode

Copy static values from another structure.
public copyFrom ( Sulu\Component\Content\Compat\StructureInterface $structure )
$structure Sulu\Component\Content\Compat\StructureInterface

getChanged() public méthode

returns changed DateTime.
public getChanged ( ) : DateTime
Résultat DateTime

getChanger() public méthode

returns user id of changer.
public getChanger ( ) : integer
Résultat integer

getChildren() public méthode

returns children array.
public getChildren ( ) : Sulu\Component\Content\Compat\StructureInterface[]
Résultat Sulu\Component\Content\Compat\StructureInterface[]

getCreated() public méthode

return created datetime.
public getCreated ( ) : DateTime
Résultat DateTime

getCreator() public méthode

gets user id of creator.
public getCreator ( ) : integer
Résultat integer

getHasChildren() public méthode

returns true if node has children.
public getHasChildren ( ) : boolean
Résultat boolean

getHasTranslation() public méthode

return true if structure translation is valid.
public getHasTranslation ( ) : boolean
Résultat boolean

getKey() public méthode

key of template definition.
public getKey ( ) : string
Résultat string

getLanguageCode() public méthode

returns language of node.
public getLanguageCode ( ) : string
Résultat string

getLocalizedTitle() public méthode

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

getNodeName() public méthode

returns node name addicted to the type.
public getNodeName ( ) : string
Résultat string

getNodeState() public méthode

return the published status of the node.
public getNodeState ( ) : integer
Résultat integer

getNodeType() public méthode

public getNodeType ( ) : integer
Résultat integer

getPath() public méthode

return the node path.
public getPath ( ) : string
Résultat string

getProperties() public méthode

returns an array of properties.
public getProperties ( boolean $flatten = false ) : Sulu\Component\Content\Compat\PropertyInterface[]
$flatten boolean
Résultat Sulu\Component\Content\Compat\PropertyInterface[]

getPropertiesByTagName() public méthode

returns properties with given tag name sorted by priority.
public getPropertiesByTagName ( string $tagName ) : Sulu\Component\Content\Compat\PropertyInterface[]
$tagName string
Résultat Sulu\Component\Content\Compat\PropertyInterface[]

getProperty() public méthode

returns a property instance with given name.
public getProperty ( $name ) : Sulu\Component\Content\Compat\PropertyInterface
$name string name of property
Résultat Sulu\Component\Content\Compat\PropertyInterface

getPropertyByTagName() public méthode

returns a property instance with given tag name.
public getPropertyByTagName ( string $tagName, $highest = true ) : Sulu\Component\Content\Compat\PropertyInterface
$tagName string
$highest
Résultat Sulu\Component\Content\Compat\PropertyInterface

getPropertyNames() public méthode

returns all property names.
public getPropertyNames ( ) : array
Résultat array

getPropertyValue() public méthode

return value of property with given name.
public getPropertyValue ( $name ) : mixed
$name string name of property
Résultat mixed

getPropertyValueByTagName() public méthode

returns value of property with given tag name.
public getPropertyValueByTagName ( string $tagName ) : mixed
$tagName string
Résultat mixed

getPublished() public méthode

returns first published date.
public getPublished ( ) : DateTime
Résultat DateTime

getPublishedState() public méthode

returns true if state of site is "published".
public getPublishedState ( ) : boolean
Résultat boolean

getType() public méthode

Return type of structure.
public getType ( ) : StructureType
Résultat StructureType

getUuid() public méthode

id of node.
public getUuid ( ) : integer
Résultat integer

getWebspaceKey() public méthode

returns webspace of node.
public getWebspaceKey ( ) : string
Résultat string

hasProperty() public méthode

checks if a property exists.
public hasProperty ( string $name ) : boolean
$name string
Résultat boolean

hasTag() public méthode

indicates tag exists.
public hasTag ( string $tag ) : boolean
$tag string
Résultat boolean

setChanged() public méthode

sets changed datetime.
public setChanged ( DateTime $changed )
$changed DateTime

setChanger() public méthode

sets user id of changer.
public setChanger ( $userId )
$userId int id of changer

setChildren() public méthode

public setChildren ( Sulu\Component\Content\Compat\StructureInterface[] $children )
$children Sulu\Component\Content\Compat\StructureInterface[]

setCreated() public méthode

sets created datetime.
public setCreated ( DateTime $created )
$created DateTime

setCreator() public méthode

sets user id of creator.
public setCreator ( $userId )
$userId int id of creator

setHasChildren() public méthode

public setHasChildren ( boolean $hasChildren )
$hasChildren boolean

setHasTranslation() public méthode

public setHasTranslation ( boolean $hasTranslation )
$hasTranslation boolean

setLanguageCode() public méthode

public setLanguageCode ( string $language )
$language string

setPath() public méthode

public setPath ( string $path )
$path string

setPublished() public méthode

public setPublished ( DateTime $published )
$published DateTime

setType() public méthode

public setType ( StructureType $type )
$type StructureType

setUuid() public méthode

sets id of node.
public setUuid ( $uuid )
$uuid

setWebspaceKey() public méthode

public setWebspaceKey ( string $webspace )
$webspace string

toArray() public méthode

returns an array of property value pairs.
Deprecation: Use the serializer instead
public toArray ( boolean $complete = true ) : array
$complete boolean True if result should be representation of full node
Résultat array