Base: ezcBaseOptions
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcBaseOptions
|
Base options class for all eZ components. [
source]
Implemented Interfaces
- ArrayAccess (internal interface)
Descendents
Member Variables
|
protected array(string=>mixed) |
$properties
Container to hold the properties |
Method Summary
|
public ezcBaseOptions |
__construct(
[$options = array()] )
Construct a new options object. |
|
public void |
merge(
$newOptions )
Merge an array into the actual options object. |
|
public bool |
offsetExists(
$propertyName )
Returns if an option exists. |
|
public mixed |
offsetGet(
$propertyName )
Returns an option value. |
|
public void |
offsetSet(
$propertyName, $propertyValue )
Set an option. |
|
public void |
offsetUnset(
$propertyName )
Unset an option. |
Methods
__construct
ezcBaseOptions __construct(
[
$options = array()] )
Construct a new options object.
Options are constructed from an option array by default. The constructor automatically passes the given options to the __set() method to set them in the class.
Parameters
| Name |
Type |
Description |
$options |
array(string=>mixed) |
The initial options to set. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If trying to access a non existent property. |
ezcBaseValueException |
If the value for a property is out of range. |
Redefined in descendants as
merge
void merge(
$newOptions )
Merge an array into the actual options object.
This method merges an array of new options into the actual options object.
Parameters
| Name |
Type |
Description |
$newOptions |
array(string=>mixed) |
The new options. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If trying to access a non existent property. |
ezcBaseValueException |
If the value for a property is out of range. |
offsetExists
bool offsetExists(
string
$propertyName )
Returns if an option exists.
Allows isset() using ArrayAccess.
Parameters
| Name |
Type |
Description |
$propertyName |
string |
The name of the option to get. |
offsetGet
mixed offsetGet(
string
$propertyName )
Returns an option value.
Get an option value by ArrayAccess.
Parameters
| Name |
Type |
Description |
$propertyName |
string |
The name of the option to get. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If $propertyName is not a key in the $properties array. |
offsetSet
void offsetSet(
string
$propertyName, mixed
$propertyValue )
Set an option.
Sets an option using ArrayAccess.
Parameters
| Name |
Type |
Description |
$propertyName |
string |
The name of the option to set. |
$propertyValue |
mixed |
The value for the option. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If $propertyName is not a key in the $properties array. |
ezcBaseValueException |
If the value for a property is out of range. |
offsetUnset
void offsetUnset(
string
$propertyName )
Unset an option.
Unsets an option using ArrayAccess.
Parameters
| Name |
Type |
Description |
$propertyName |
string |
The name of the option to unset. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If $propertyName is not a key in the $properties array. |
ezcBaseValueException |
If a the value for a property is out of range. |
Last updated: Wed, 28 Nov 2007