ezpContentFieldSet::__construct |
( |
| ) |
|
Initializes the fields set with a content object + language.
- Parameters
-
int | $contentObjectID | |
string | $locale | If not provided, uses the default one for the active siteaccess |
ezpContentFieldSet::__get |
( |
|
$name | ) |
|
Getter.
Used to get attributes values.
- Returns
- mixed
ezpContentFieldSet::__isset |
( |
|
$name | ) |
|
Used to check if an attribute has content: if ( isset( $content->fields->title ) ) <= no title
- See Also
- ezContentObjectAttribute->hasContent()
Setter.
Used to set attributes values.
ezpContentFieldSet::current |
( |
| ) |
|
static ezpContentFieldSet::fromContentObject |
( |
eZContentObject |
$contentObject | ) |
|
|
static |
static ezpContentFieldSet::fromDataMap |
( |
|
$dataMap | ) |
|
|
static |
ezpContentFieldSet::initIterator |
( |
| ) |
|
|
protected |
Initializes the iterator based on the current field / languages list.
Referenced by setActiveLanguage().
ezpContentFieldSet::key |
( |
| ) |
|
ezpContentFieldSet::next |
( |
| ) |
|
ezpContentFieldSet::offsetExists |
( |
|
$offset | ) |
|
Array exists handler.
Can be used to check for existence of a language
Again, this operation might not belong to the fields set (data map) but to the content itself
ezpContentFieldSet::offsetGet |
( |
|
$offset | ) |
|
Array get handler.
Will return the requested language's ezpFieldSet
- Returns
- ezpContentFieldSet
ezpContentFieldSet::offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
Array set hander.
Will set the requested language's ezpFieldSet. Is that any good ? Might be used to enable a language on a content item: $article->fields['fre-FR'] = true
Semantically speaking, this belongs to the content, not the fields. Maybe no need to implement that.
ezpContentFieldSet::offsetUnset |
( |
|
$offset | ) |
|
Unset array handler.
Should we allow a user to remove a language by using that syntax: unset( $content->fields['eng-GB'] );
ezpContentFieldSet::rewind |
( |
| ) |
|
ezpContentFieldSet::setActiveLanguage |
( |
|
$language | ) |
|
Sets the currently active language when reading attribute(/object/node) properties.
- Parameters
-
string | $language | Language locale (xxx-XX) |
- Returns
- void
ezpContentFieldSet::valid |
( |
| ) |
|
ezpContentFieldSet::$activeLanguage = false |
|
protected |
ezpContentFieldSet::$childrenFieldSets |
|
protected |
ezpContentFieldSet::$fields |
|
protected |
ezpContentFieldSet::$iteratorData = null |
|
protected |
ezpContentFieldSet::$iteratorPointer = null |
|
protected |
ezpContentFieldSet::$parentFieldSet |
|
protected |
The documentation for this class was generated from the following file: