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.


Constructor summary

Attr. Name / Description
public

PropertySet()

Construct an empty property set.

Member summary

Attr. Type Name Description
protected array $properties An array to hold the properties.

Method summary

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.


Members


				
protected array $properties

An array to hold the properties.


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.

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.

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.


Documentation generated by phpDocumentor 2.0.0a12 and ScrivoDocumentor on August 29, 2013