PHP 인터페이스 Sulu\Component\Content\Compat\StructureInterface

상속: extends JsonSerializable
파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

copyFrom() 공개 메소드

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

getChanged() 공개 메소드

returns changed DateTime.
public getChanged ( ) : DateTime
리턴 DateTime

getChanger() 공개 메소드

returns user id of changer.
public getChanger ( ) : integer
리턴 integer

getChildren() 공개 메소드

returns children array.
public getChildren ( ) : Sulu\Component\Content\Compat\StructureInterface[]
리턴 Sulu\Component\Content\Compat\StructureInterface[]

getCreated() 공개 메소드

return created datetime.
public getCreated ( ) : DateTime
리턴 DateTime

getCreator() 공개 메소드

gets user id of creator.
public getCreator ( ) : integer
리턴 integer

getHasChildren() 공개 메소드

returns true if node has children.
public getHasChildren ( ) : boolean
리턴 boolean

getHasTranslation() 공개 메소드

return true if structure translation is valid.
public getHasTranslation ( ) : boolean
리턴 boolean

getKey() 공개 메소드

key of template definition.
public getKey ( ) : string
리턴 string

getLanguageCode() 공개 메소드

returns language of node.
public getLanguageCode ( ) : string
리턴 string

getLocalizedTitle() 공개 메소드

returns title of property.
public getLocalizedTitle ( string $languageCode ) : string
$languageCode string
리턴 string

getNodeName() 공개 메소드

returns node name addicted to the type.
public getNodeName ( ) : string
리턴 string

getNodeState() 공개 메소드

return the published status of the node.
public getNodeState ( ) : integer
리턴 integer

getNodeType() 공개 메소드

public getNodeType ( ) : integer
리턴 integer

getPath() 공개 메소드

return the node path.
public getPath ( ) : string
리턴 string

getProperties() 공개 메소드

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

getPropertiesByTagName() 공개 메소드

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

getProperty() 공개 메소드

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

getPropertyByTagName() 공개 메소드

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

getPropertyNames() 공개 메소드

returns all property names.
public getPropertyNames ( ) : array
리턴 array

getPropertyValue() 공개 메소드

return value of property with given name.
public getPropertyValue ( $name ) : mixed
$name string name of property
리턴 mixed

getPropertyValueByTagName() 공개 메소드

returns value of property with given tag name.
public getPropertyValueByTagName ( string $tagName ) : mixed
$tagName string
리턴 mixed

getPublished() 공개 메소드

returns first published date.
public getPublished ( ) : DateTime
리턴 DateTime

getPublishedState() 공개 메소드

returns true if state of site is "published".
public getPublishedState ( ) : boolean
리턴 boolean

getType() 공개 메소드

Return type of structure.
public getType ( ) : StructureType
리턴 StructureType

getUuid() 공개 메소드

id of node.
public getUuid ( ) : integer
리턴 integer

getWebspaceKey() 공개 메소드

returns webspace of node.
public getWebspaceKey ( ) : string
리턴 string

hasProperty() 공개 메소드

checks if a property exists.
public hasProperty ( string $name ) : boolean
$name string
리턴 boolean

hasTag() 공개 메소드

indicates tag exists.
public hasTag ( string $tag ) : boolean
$tag string
리턴 boolean

setChanged() 공개 메소드

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

setChanger() 공개 메소드

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

setChildren() 공개 메소드

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

setCreated() 공개 메소드

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

setCreator() 공개 메소드

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

setHasChildren() 공개 메소드

public setHasChildren ( boolean $hasChildren )
$hasChildren boolean

setHasTranslation() 공개 메소드

public setHasTranslation ( boolean $hasTranslation )
$hasTranslation boolean

setLanguageCode() 공개 메소드

public setLanguageCode ( string $language )
$language string

setPath() 공개 메소드

public setPath ( string $path )
$path string

setPublished() 공개 메소드

public setPublished ( DateTime $published )
$published DateTime

setType() 공개 메소드

public setType ( StructureType $type )
$type StructureType

setUuid() 공개 메소드

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

setWebspaceKey() 공개 메소드

public setWebspaceKey ( string $webspace )
$webspace string

toArray() 공개 메소드

returns an array of property value pairs.
사용 중단: Use the serializer instead
public toArray ( boolean $complete = true ) : array
$complete boolean True if result should be representation of full node
리턴 array