Class \Scrivo\PropertySet
A property set provides property access to the page properties of a page or list item properties of a list item.
When constructing pages or list items their list items will be added to the property sets that belong to these pages or list items.
The property set also deals with the late binding of application properties.
Implements
Defined in:
PropertySet.php.
Attr. | Name / Description |
---|---|
public |
Construct an empty property set. |
Attr. | Type | Name | Description |
---|---|---|---|
protected | array | $properties | An array to hold the properties. |
Attr. | Type | Name / Description |
---|---|---|
public | \..\PageProperty |
__get($name) Retrieve a property from the property set. |
public |
__set($name, $property) Add a property to the property set. |
|
public |
current() Get the current property when iterating. |
|
public |
key() Get the key of the current property when iterating. |
|
public |
next() Get the next property when iterating. |
|
public |
rewind() Rewind the properties array so iterating will start at the beginning again. |
|
public |
valid() Check if the current key is valid. |
Constructor
- public PropertySet()
-
Construct an empty property set.
View source: PropertySet.php line 60.
Members
- protected array $properties
-
An array to hold the properties.
View source: PropertySet.php line 55.
Methods
- public \Scrivo\PageProperty __get(string $name)
-
Retrieve a property from the property set.
Parameters:
Type Name Def. Description string $name The name of the property.
Returns:
\Scrivo\PageProperty Retrieve a property from the property set.
View source: PropertySet.php line 72.
- public __set(string $name, \Scrivo\PageProperty $property)
-
Add a property to the property set.
Parameters:
Type Name Def. Description string $name The name of the property .
\Scrivo\PageProperty $property The property to add.
View source: PropertySet.php line 87.
- public current()
-
Get the current property when iterating.
View source: PropertySet.php line 107.
- public key()
-
Get the key of the current property when iterating.
View source: PropertySet.php line 114.
- public next()
-
Get the next property when iterating.
View source: PropertySet.php line 121.
- public rewind()
-
Rewind the properties array so iterating will start at the beginning again.
View source: PropertySet.php line 100.
- public valid()
-
Check if the current key is valid.
View source: PropertySet.php line 128.
Documentation generated by phpDocumentor 2.0.0a12 and ScrivoDocumentor on August 29, 2013