PHP Class Sulu\Component\Content\Compat\Structure\StructureBridge

Inheritance: implements Sulu\Component\Content\Compat\StructureInterface
显示文件 Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$document object
$inspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$locale string .
$structure Sulu\Component\Content\Metadata\StructureMetadata

Public Methods

Method Description
__construct ( StructureMetadata $structure, DocumentInspector $inspector, LegacyPropertyFactory $propertyFactory, object $document = null )
__get ( $name ) Magic getter.
copyFrom ( Sulu\Component\Content\Compat\StructureInterface $structure )
getChanged ( )
getChanger ( )
getChildren ( )
getConcreteLanguages ( )
getCreated ( )
getCreator ( )
getDocument ( ) : object Returns document.
getEnabledShadowLanguages ( )
getHasChildren ( )
getHasTranslation ( )
getInternal ( )
getIsShadow ( )
getKey ( )
getLanguageCode ( )
getLocalizedTitle ( $languageCode )
getNodeName ( )
getNodeState ( )
getNodeType ( )
getParent ( )
getPath ( )
getProperties ( $flatten = false )
getPropertiesByTagName ( $tagName )
getProperty ( $name )
getPropertyByTagName ( $tagName, $highest = true )
getPropertyNames ( )
getPropertyValue ( $name )
getPropertyValueByTagName ( $tagName )
getPublished ( )
getPublishedState ( )
getResourceLocator ( )
getShadowBaseLanguage ( )
getStructure ( ) : StructureMetadata Returns structure metadata.
getTitle ( )
getType ( )
getUrl ( )
getUuid ( )
getWebspaceKey ( )
hasProperty ( $name )
hasTag ( $tag )
jsonSerialize ( )
setChanged ( DateTime $changed )
setChanger ( $userId )
setChildren ( $children )
setCreated ( DateTime $created )
setCreator ( $userId )
setDocument ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document )
setHasChildren ( $hasChildren )
setHasTranslation ( $hasTranslation )
setLanguageCode ( $locale )
setPath ( $path )
setPublished ( $published )
setType ( $type )
setUuid ( $uuid )
setWebspaceKey ( $webspace )
toArray ( $complete = true )

Protected Methods

Method Description
documentToStructure ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document )
readOnlyException ( $method )

Private Methods

Method Description
createLegacyPropertyFromItem ( $item )
getWorkflowDocument ( $method )
normalizeData ( array $data = null )
normalizeValue ( $value )
notImplemented ( $method )

Method Details

__construct() public method

public __construct ( StructureMetadata $structure, DocumentInspector $inspector, LegacyPropertyFactory $propertyFactory, object $document = null )
$structure Sulu\Component\Content\Metadata\StructureMetadata
$inspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$propertyFactory LegacyPropertyFactory
$document object

__get() public method

Magic getter.
Deprecation: Do not use magic getters. Use ArrayAccess instead
public __get ( $name )

copyFrom() public method

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

documentToStructure() protected method

protected documentToStructure ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document )
$document Sulu\Component\Content\Document\Behavior\StructureBehavior The document to convert

getChanged() public method

public getChanged ( )

getChanger() public method

public getChanger ( )

getChildren() public method

public getChildren ( )

getConcreteLanguages() public method

getCreated() public method

public getCreated ( )

getCreator() public method

public getCreator ( )

getDocument() public method

Returns document.
public getDocument ( ) : object
return object

getEnabledShadowLanguages() public method

getHasChildren() public method

public getHasChildren ( )

getHasTranslation() public method

public getHasTranslation ( )

getInternal() public method

public getInternal ( )

getIsShadow() public method

public getIsShadow ( )

getKey() public method

public getKey ( )

getLanguageCode() public method

public getLanguageCode ( )

getLocalizedTitle() public method

public getLocalizedTitle ( $languageCode )

getNodeName() public method

public getNodeName ( )

getNodeState() public method

public getNodeState ( )

getNodeType() public method

public getNodeType ( )

getParent() public method

public getParent ( )

getPath() public method

public getPath ( )

getProperties() public method

public getProperties ( $flatten = false )

getPropertiesByTagName() public method

public getPropertiesByTagName ( $tagName )

getProperty() public method

public getProperty ( $name )

getPropertyByTagName() public method

public getPropertyByTagName ( $tagName, $highest = true )

getPropertyNames() public method

public getPropertyNames ( )

getPropertyValue() public method

public getPropertyValue ( $name )

getPropertyValueByTagName() public method

public getPropertyValueByTagName ( $tagName )

getPublished() public method

public getPublished ( )

getPublishedState() public method

public getPublishedState ( )

getResourceLocator() public method

public getResourceLocator ( )

getShadowBaseLanguage() public method

getStructure() public method

Returns structure metadata.
public getStructure ( ) : StructureMetadata
return Sulu\Component\Content\Metadata\StructureMetadata

getTitle() public method

public getTitle ( )

getType() public method

public getType ( )

getUrl() public method

public getUrl ( )

getUuid() public method

public getUuid ( )

getWebspaceKey() public method

public getWebspaceKey ( )

hasProperty() public method

public hasProperty ( $name )

hasTag() public method

public hasTag ( $tag )

jsonSerialize() public method

public jsonSerialize ( )

readOnlyException() protected method

protected readOnlyException ( $method )

setChanged() public method

public setChanged ( DateTime $changed )
$changed DateTime

setChanger() public method

public setChanger ( $userId )

setChildren() public method

public setChildren ( $children )

setCreated() public method

public setCreated ( DateTime $created )
$created DateTime

setCreator() public method

public setCreator ( $userId )

setDocument() public method

public setDocument ( Sulu\Component\Content\Document\Behavior\StructureBehavior $document )
$document Sulu\Component\Content\Document\Behavior\StructureBehavior

setHasChildren() public method

public setHasChildren ( $hasChildren )

setHasTranslation() public method

public setHasTranslation ( $hasTranslation )

setLanguageCode() public method

public setLanguageCode ( $locale )

setPath() public method

public setPath ( $path )

setPublished() public method

public setPublished ( $published )

setType() public method

public setType ( $type )

setUuid() public method

public setUuid ( $uuid )

setWebspaceKey() public method

public setWebspaceKey ( $webspace )

toArray() public method

public toArray ( $complete = true )

Property Details

$document protected_oe property

protected object $document
return object

$inspector protected_oe property

protected DocumentInspector,Sulu\Bundle\DocumentManagerBundle\Bridge $inspector
return Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector

$locale protected_oe property

.
protected string $locale
return string

$structure protected_oe property

protected StructureMetadata,Sulu\Component\Content\Metadata $structure
return Sulu\Component\Content\Metadata\StructureMetadata