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

파일 보기 프로젝트 열기: sulu/sulu

공개 프로퍼티들

프로퍼티 타입 설명
$children Item[] Children of this item, f.e. properties, sections or structures.
$description array Description of this property|structure e.g. [["de": "Liste von Artikeln", "en": "List of articles"]].
$name string Name of this item.
$parameters array array( 'placeholder' => 'Enter some text', )
$tags array array( array('name' => 'sulu_search.field', 'type' => 'string') )
$title array The title of this property|structure e.g. [["de": "Artikles", "en": "Articles"]].

공개 메소드들

메소드 설명
__construct ( mixed $name = null )
__set ( $field, $value ) Magic setter to catch bad property calls.
addChild ( ItemMetadata $child ) Adds a child item.
getChild ( string $name ) : ItemMetadata Return the named property.
getChildren ( ) : ItemMetadata[] Return the children of this item.
getDescription ( string $locale ) : string Return the description of this property.
getName ( ) : string Return the name of this item.
getParameter ( string $name ) : mixed Return the paramter with the given name.
getParameters ( ) : array Return the parameters for this property.
getTag ( string $tagName ) : array Return the named tag.
getTags ( ) : array Return the tags of this item.
getTitle ( string $locale ) : string Return the localized name of this ItemMetadata or default to the name.
hasChild ( string $name ) : boolean Return true if this structure has the named property, false if it does not.
hasTag ( string $name ) : boolean Return true if this item has the named tag.

메소드 상세

__construct() 공개 메소드

public __construct ( mixed $name = null )
$name mixed

__set() 공개 메소드

Magic setter to catch bad property calls.
public __set ( $field, $value )

addChild() 공개 메소드

Adds a child item.
public addChild ( ItemMetadata $child )
$child ItemMetadata

getChild() 공개 메소드

Return the named property.
public getChild ( string $name ) : ItemMetadata
$name string
리턴 ItemMetadata

getChildren() 공개 메소드

Return the children of this item.
public getChildren ( ) : ItemMetadata[]
리턴 ItemMetadata[]

getDescription() 공개 메소드

Return the description of this property.
public getDescription ( string $locale ) : string
$locale string
리턴 string

getName() 공개 메소드

Return the name of this item.
public getName ( ) : string
리턴 string

getParameter() 공개 메소드

Return the paramter with the given name.
public getParameter ( string $name ) : mixed
$name string
리턴 mixed

getParameters() 공개 메소드

Return the parameters for this property.
public getParameters ( ) : array
리턴 array

getTag() 공개 메소드

Return the named tag.
public getTag ( string $tagName ) : array
$tagName string
리턴 array

getTags() 공개 메소드

Return the tags of this item.
public getTags ( ) : array
리턴 array

getTitle() 공개 메소드

Return the localized name of this ItemMetadata or default to the name.
public getTitle ( string $locale ) : string
$locale string Localization
리턴 string

hasChild() 공개 메소드

Return true if this structure has the named property, false if it does not.
public hasChild ( string $name ) : boolean
$name string
리턴 boolean

hasTag() 공개 메소드

Return true if this item has the named tag.
public hasTag ( string $name ) : boolean
$name string
리턴 boolean

프로퍼티 상세

$children 공개적으로 프로퍼티

Children of this item, f.e. properties, sections or structures.
public Item[] $children
리턴 Item[]

$description 공개적으로 프로퍼티

Description of this property|structure e.g. [["de": "Liste von Artikeln", "en": "List of articles"]].
public array $description
리턴 array

$name 공개적으로 프로퍼티

Name of this item.
public string $name
리턴 string

$parameters 공개적으로 프로퍼티

array( 'placeholder' => 'Enter some text', )
public array $parameters
리턴 array

$tags 공개적으로 프로퍼티

array( array('name' => 'sulu_search.field', 'type' => 'string') )
public array $tags
리턴 array

$title 공개적으로 프로퍼티

The title of this property|structure e.g. [["de": "Artikles", "en": "Articles"]].
public array $title
리턴 array