PHP Класс Sulu\Component\Content\Metadata\ItemMetadata

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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