PHP Class Sulu\Component\Content\Metadata\ItemMetadata

Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Свойство Type Description
$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"]].

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

__set() public méthode

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

addChild() public méthode

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

getChild() public méthode

Return the named property.
public getChild ( string $name ) : ItemMetadata
$name string
Résultat ItemMetadata

getChildren() public méthode

Return the children of this item.
public getChildren ( ) : ItemMetadata[]
Résultat ItemMetadata[]

getDescription() public méthode

Return the description of this property.
public getDescription ( string $locale ) : string
$locale string
Résultat string

getName() public méthode

Return the name of this item.
public getName ( ) : string
Résultat string

getParameter() public méthode

Return the paramter with the given name.
public getParameter ( string $name ) : mixed
$name string
Résultat mixed

getParameters() public méthode

Return the parameters for this property.
public getParameters ( ) : array
Résultat array

getTag() public méthode

Return the named tag.
public getTag ( string $tagName ) : array
$tagName string
Résultat array

getTags() public méthode

Return the tags of this item.
public getTags ( ) : array
Résultat array

getTitle() public méthode

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

hasChild() public méthode

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

hasTag() public méthode

Return true if this item has the named tag.
public hasTag ( string $name ) : boolean
$name string
Résultat boolean

Property Details

$children public_oe property

Children of this item, f.e. properties, sections or structures.
public Item[] $children
Résultat Item[]

$description public_oe property

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

$name public_oe property

Name of this item.
public string $name
Résultat string

$parameters public_oe property

array( 'placeholder' => 'Enter some text', )
public array $parameters
Résultat array

$tags public_oe property

array( array('name' => 'sulu_search.field', 'type' => 'string') )
public array $tags
Résultat array

$title public_oe property

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