Метод | Описание | |
---|---|---|
__construct ( $key, $metaData ) | ||
__get ( $property ) : mixed | magic getter. | |
__isset ( $property ) : boolean | magic isset. | |
__set ( $property, $value ) : mixed | magic setter. | |
addStructureTag ( |
Add a tag to this structure. | |
copyFrom ( Sulu\Component\Content\Compat\StructureInterface $structure ) | ||
getChanged ( ) : DateTime | returns changed DateTime. | |
getChanger ( ) : integer | returns user id of changer. | |
getChildren ( ) : null | Sulu\Component\Content\Compat\StructureInterface[] | ||
getConcreteLanguages ( ) : array | Return the available concrete languages (i.e. | |
getCreated ( ) : DateTime | return created datetime. | |
getCreator ( ) : integer | returns id of creator. | |
getEnabledShadowLanguages ( ) : array | return available shadow languages on this structure (determined at runtime). | |
getHasChildren ( ) : boolean | ||
getHasTranslation ( ) : boolean | return true if structure translation is valid. | |
getInternal ( ) : boolean | ||
getIsShadow ( ) : boolean | set if this structure should act like a shadow. | |
getKey ( ) : string | key of template definition. | |
getLanguageCode ( ) : string | returns language of node. | |
getLocalizedTitle ( $languageCode ) | ||
getNodeName ( ) | ||
getNodeState ( ) | ||
getNodeType ( ) : integer | ||
getPath ( ) : string | returns absolute path of node. | |
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, boolean $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". | |
getShadowBaseLanguage ( ) : string | return the shadow base language. | |
getStructureTag ( string $name ) : |
Return the tag with the given name. | |
getType ( ) : |
||
getUuid ( ) : string | returns uuid of node. | |
getWebspaceKey ( ) : string | returns webspace of node. | |
hasProperty ( string $name ) : boolean | checks if a property exists. | |
hasStructureTag ( $name ) : boolean | Return true if this structure has the given tag. | |
hasTag ( $tag ) | ||
jsonSerialize ( ) : mixed |
(PHP 5 >= 5.4.0) Specify data which should be serialized to JSON. |
|
setChanged ( DateTime $changed ) | sets changed datetime. | |
setChanger ( $userId ) | sets user id of changer. | |
setChildren ( Sulu\Component\Content\Compat\StructureInterface[] $children ) | ||
setConcreteLanguages ( array $concreteLanguages ) | Set the available concrete languages (note this should only be done internally). | |
setCreated ( DateTime $created ) : DateTime | sets created datetime. | |
setCreator ( $userId ) | sets user id of creator. | |
setEnabledShadowLanguages ( $enabledShadowLanguages ) | set the available enabled shadow languages. | |
setHasChildren ( boolean $hasChildren ) | ||
setHasTranslation ( boolean $hasTranslation ) | ||
setInternal ( boolean $internal ) | ||
setIsShadow ( $isShadow ) | set if this node should act like a shadow. | |
setLanguageCode ( string $language ) | ||
setNodeType ( integer $nodeType ) | ||
setPath ( string $path ) | ||
setPublished ( DateTime $published ) | ||
setShadowBaseLanguage ( string $shadowBaseLanguage ) | set the shadow base language. | |
setType ( |
||
setUuid ( $uuid ) | sets uuid of node. | |
setWebspaceKey ( string $webspace ) | ||
toArray ( boolean $complete = true ) : array | returns an array of property value pairs. |
Метод | Описание | |
---|---|---|
addChild ( Sulu\Component\Content\Compat\PropertyInterface $property ) | adds a property to structure. | |
addPropertyTags ( Sulu\Component\Content\Compat\PropertyInterface $property ) | add tags of properties. |
Метод | Описание | |
---|---|---|
appendProperties ( $properties, &$array ) | ||
findProperty ( string $name ) : null | Sulu\Component\Content\Compat\PropertyInterface | find property in flatten properties. |
protected addChild ( Sulu\Component\Content\Compat\PropertyInterface $property ) | ||
$property | Sulu\Component\Content\Compat\PropertyInterface |
protected addPropertyTags ( Sulu\Component\Content\Compat\PropertyInterface $property ) | ||
$property | Sulu\Component\Content\Compat\PropertyInterface |
public addStructureTag ( |
||
$structureTag |
public copyFrom ( Sulu\Component\Content\Compat\StructureInterface $structure ) | ||
$structure | Sulu\Component\Content\Compat\StructureInterface |
public getChanged ( ) : DateTime | ||
Результат | DateTime |
public getChanger ( ) : integer | ||
Результат | integer |
public getChildren ( ) : null | Sulu\Component\Content\Compat\StructureInterface[] | ||
Результат | null | Sulu\Component\Content\Compat\StructureInterface[] |
public getConcreteLanguages ( ) : array | ||
Результат | array |
public getCreated ( ) : DateTime | ||
Результат | DateTime |
public getCreator ( ) : integer | ||
Результат | integer |
public getEnabledShadowLanguages ( ) : array | ||
Результат | array |
public getHasTranslation ( ) : boolean | ||
Результат | boolean |
public getIsShadow ( ) : boolean | ||
Результат | boolean |
public getLanguageCode ( ) : string | ||
Результат | string |
public getProperties ( boolean $flatten = false ) : Sulu\Component\Content\Compat\PropertyInterface[] | ||
$flatten | boolean | |
Результат | Sulu\Component\Content\Compat\PropertyInterface[] |
public getPropertiesByTagName ( string $tagName ) : Sulu\Component\Content\Compat\PropertyInterface | ||
$tagName | string | |
Результат | Sulu\Component\Content\Compat\PropertyInterface |
public getProperty ( $name ) : Sulu\Component\Content\Compat\PropertyInterface | ||
$name | string name of property | |
Результат | Sulu\Component\Content\Compat\PropertyInterface |
public getPropertyByTagName ( string $tagName, boolean $highest = true ) : Sulu\Component\Content\Compat\PropertyInterface | ||
$tagName | string | |
$highest | boolean | |
Результат | Sulu\Component\Content\Compat\PropertyInterface |
public getPropertyNames ( ) : array | ||
Результат | array |
public getPropertyValue ( $name ) : mixed | ||
$name | string name of property | |
Результат | mixed |
public getPropertyValueByTagName ( string $tagName ) : mixed | ||
$tagName | string | |
Результат | mixed |
public getPublished ( ) : DateTime | ||
Результат | DateTime |
public getPublishedState ( ) : boolean | ||
Результат | boolean |
public getShadowBaseLanguage ( ) : string | ||
Результат | string |
public getStructureTag ( string $name ) : |
||
$name | string | |
Результат |
public getWebspaceKey ( ) : string | ||
Результат | string |
public hasProperty ( string $name ) : boolean | ||
$name | string | |
Результат | boolean |
public hasStructureTag ( $name ) : boolean | ||
Результат | boolean |
public jsonSerialize ( ) : mixed | ||
Результат | mixed | data which can be serialized by json_encode, which is a value of any type other than a resource |
public setChanged ( DateTime $changed ) | ||
$changed | DateTime |
public setChanger ( $userId ) | ||
$userId | int id of changer |
public setChildren ( Sulu\Component\Content\Compat\StructureInterface[] $children ) | ||
$children | Sulu\Component\Content\Compat\StructureInterface[] |
public setConcreteLanguages ( array $concreteLanguages ) | ||
$concreteLanguages | array |
public setCreated ( DateTime $created ) : DateTime | ||
$created | DateTime | |
Результат | DateTime |
public setCreator ( $userId ) | ||
$userId | int id of creator |
public setEnabledShadowLanguages ( $enabledShadowLanguages ) |
public setHasChildren ( boolean $hasChildren ) | ||
$hasChildren | boolean |
public setHasTranslation ( boolean $hasTranslation ) | ||
$hasTranslation | boolean |
public setIsShadow ( $isShadow ) |
public setShadowBaseLanguage ( string $shadowBaseLanguage ) | ||
$shadowBaseLanguage | string |