Class \Scrivo\ListItemProperty

The ListItemProperty class is the base class for all list item properties.

Page properties are a part of the list item.

Defined in: ListItemProperty.php.


Constructor summary

Attr. Name / Description
protected

ListItemProperty($rd)

Create an empty list item property object or select a list item property from the database.

Member summary

Attr. Type Name Description
protected \..\String $data The property data.
private int $definitionId Id of the property defintion.
private int $listItemId The id of the list item where this property belongs to.
private int $pageId The id of the page where this property belongs to.
protected \..\String $phpSelector An textual identification/key for this property.

Method summary

Attr. Type Name / Description
public mixed

__get($name)

Implementation of the readable properties using the PHP magic method __get().

public

__set($name, $value)

Implementation of the writable properties using the PHP magic method __set().

public static

create($rd)

Factory method for creating a list item property.

protected

setData($data)

Set The property data.

 


Constructor

protected ListItemProperty(array $rd)

Create an empty list item property object or select a list item property from the database.

Parameters:

Type Name Def. Description
array $rd

An array (result set row) containing inital data.


Members


				
protected \Scrivo\String $data

The property data.


				
private int $definitionId

Id of the property defintion.


				
private int $listItemId

The id of the list item where this property belongs to.


				
private int $pageId

The id of the page where this property belongs to.


				
protected \Scrivo\String $phpSelector

An textual identification/key for this property.


Methods

public mixed __get(string $name)

Implementation of the readable properties using the PHP magic method __get().

Parameters:

Type Name Def. Description
string $name

The name of the property to get.

Returns:

mixed Implementation of the readable properties using the PHP magic method __get().

public __set(string $name, mixed $value)

Implementation of the writable properties using the PHP magic method __set().

Parameters:

Type Name Def. Description
string $name

The name of the property to set.

mixed $value

The value of the property to set.

public static create(array $rd)

Factory method for creating a list item property.

This method will return a list item property of the proper specialized type.

Parameters:

Type Name Def. Description
array $rd

An array (result set row) containing inital data.

protected setData(\Scrivo\String $data)

Set The property data.

Parameters:

Type Name Def. Description
\Scrivo\String $data

The property data.


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