Class to store the collection for formating classes.
This class stores objects of ezcConsoleOutputFormat, which represents a format option set for ezcConsoleOutput.
Source for this file: /ConsoleTools/src/structs/output_formats.php
Version: | //autogen// |
protected array(ezcConsoleOutputFormat) |
$formats
= array()
Array of ezcConsoleOutputFormat. |
public ezcConsoleOutputFormats |
__construct(
)
Create a new ezcConsoleOutputFormats object. |
public void |
count(
)
Returns the number of registered formats. |
public ezcConsoleOutputFormat |
current(
)
Returns the current Iterator value. |
public string |
key(
)
Returns the current Iterator key. |
public ezcConsoleOutputFormat|bool |
next(
)
Advances the Iterator to the next element. |
public ezcConsoleOutputFormat |
rewind(
)
Resets the Iterator to the first element. |
public bool |
valid(
)
Checks if the current Iterator position is still valid. |
public ezcConsoleOutputFormat |
__get(
$formatName
)
Read access to the formats. |
public bool |
__isset(
$formatName
)
Property isset access. |
public void |
__set(
$formatName
, $val
)
Write access to the formats. |
Create a new ezcConsoleOutputFormats object.
Creates a new, empty object of this class. It also adds a default format.
Returns the number of registered formats.
Implementation of Countable::count().
Method | Description |
---|---|
Countable::count |
Returns the current Iterator value.
Implementation of Iterator::current().
Method | Description |
---|---|
Iterator::current |
Returns the current Iterator key.
Implementation of Iterator::key().
Method | Description |
---|---|
Iterator::key |
Advances the Iterator to the next element.
Implementation of Iterator::next().
Method | Description |
---|---|
Iterator::next |
Resets the Iterator to the first element.
Implementation of Iterator::rewind().
Method | Description |
---|---|
Iterator::rewind |
Checks if the current Iterator position is still valid.
Implementation of Iterator::valid().
Method | Description |
---|---|
Iterator::valid |
Read access to the formats.
Formats are accessed directly like properties of this object. If a format does not exist, it is created on the fly (using default values),
Name | Type | Description |
---|---|---|
$formatName |
string |
Property isset access.
Name | Type | Description |
---|---|---|
$formatName |
string | Name of the property. |
Write access to the formats.
Formats are accessed directly like properties of this object. If a format does not exist, it is created on the fly (using default values),
Name | Type | Description |
---|---|---|
$formatName |
string | |
$val |
ezcConsoleOutputFormat | The format defintion. |