PHP 클래스 Sulu\Component\Content\Metadata\StructureMetadata

TODO: resource, cacheLifetime and view should be removed. They should instead be options.
상속: extends ItemMetadata
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cacheLifetime array
$controller string
$internal boolean
$properties array Same as ItemMetadata::$children but without Sections.
$resource string The resource from which this structure was loaded (useful for debugging).
$view string

공개 메소드들

메소드 설명
burnProperties ( ) Populate the $properties property with only those propertires which are not related to the UI (i.e. the sections).
getProperties ( ) : PropertyMetadata[] Return all model properties.
getPropertiesByTagName ( string $tagName ) : PropertyMetadata[] Return all properties with the given tag name.
getProperty ( string $name ) : PropertyMetadata Return a model property.
getPropertyByTagName ( string $tagName, $highest = true ) : PropertyMetadata Return true if the structure contains a property with the given tag name.
getResource ( ) : string Return the resource from which this structure was loaded.
hasProperty ( $name ) : boolean Return true if a property with the given name exists.
hasPropertyWithTagName ( string $tagName ) : boolean Return true if the structure contains a property with the given tag name.
isInternal ( ) : boolean Return if this is an internal structure.

메소드 상세

burnProperties() 공개 메소드

The data is therefore duplicated, but this does not matter as we only create this data once. This should be called once after creating the structure and (therefore before writing to the cache).
public burnProperties ( )

getProperties() 공개 메소드

The "model" set of properties does not include UI elements such as sections.
public getProperties ( ) : PropertyMetadata[]
리턴 PropertyMetadata[]

getPropertiesByTagName() 공개 메소드

Return all properties with the given tag name.
public getPropertiesByTagName ( string $tagName ) : PropertyMetadata[]
$tagName string
리턴 PropertyMetadata[]

getProperty() 공개 메소드

Return a model property.
또한 보기: StructureMetadata::getProperties()
public getProperty ( string $name ) : PropertyMetadata
$name string
리턴 PropertyMetadata

getPropertyByTagName() 공개 메소드

Return true if the structure contains a property with the given tag name.
public getPropertyByTagName ( string $tagName, $highest = true ) : PropertyMetadata
$tagName string
리턴 PropertyMetadata

getResource() 공개 메소드

Return the resource from which this structure was loaded.
public getResource ( ) : string
리턴 string

hasProperty() 공개 메소드

Return true if a property with the given name exists.
public hasProperty ( $name ) : boolean
리턴 boolean

hasPropertyWithTagName() 공개 메소드

Return true if the structure contains a property with the given tag name.
public hasPropertyWithTagName ( string $tagName ) : boolean
$tagName string
리턴 boolean

isInternal() 공개 메소드

TODO: Refactor this: https://github.com/sulu-io/sulu/issues/1220
public isInternal ( ) : boolean
리턴 boolean

프로퍼티 상세

$cacheLifetime 공개적으로 프로퍼티

public array $cacheLifetime
리턴 array

$controller 공개적으로 프로퍼티

public string $controller
리턴 string

$internal 공개적으로 프로퍼티

public bool $internal
리턴 boolean

$properties 공개적으로 프로퍼티

Same as ItemMetadata::$children but without Sections.
또한 보기: StructureMetadata::burnProperties()
public array $properties
리턴 array

$resource 공개적으로 프로퍼티

The resource from which this structure was loaded (useful for debugging).
public string $resource
리턴 string

$view 공개적으로 프로퍼티

public string $view
리턴 string