OTS_HousesList __construct(
string
$path
)
|
|
Loads houses information.
Loads houses information.
Parameters:
|
string |
$path: |
Houses file. |
API Tags:
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.1.0 |
Returns amount of houses.
Returns amount of houses.
API Tags:
| Return: | Count of houses. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Since: | 0.1.0 |
Implementation of:
- Countable::count
Returns house information.
Returns house information.
Parameters:
API Tags:
| Return: | House information wrapper. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Throws: | OutOfBoundsException If house was not found. |
| Since: | 0.1.0 |
int getHouseId(
string
$name
)
|
|
Returns ID of house with given name.
Returns ID of house with given name.
Parameters:
|
string |
$name: |
House name. |
API Tags:
| Return: | House ID. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Throws: | OutOfBoundsException False if not found. |
| Since: | 0.1.0 |
ArrayIterator getIterator(
)
|
|
Returns iterator handle for loops.
Returns iterator handle for loops.
API Tags:
| Return: | Houses list iterator. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Since: | 0.1.0 |
Implementation of:
- IteratorAggregate::getIterator
bool hasHouse(
string
$name
)
|
|
Checks if given house exists on list.
Checks if given house exists on list.
Parameters:
API Tags:
| Return: | If house is set then true. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Since: | 0.1.0 |
| Since: | 0.1.3 |
bool hasHouseId(
int
$id
)
|
|
Checks if given house ID exists on list.
Checks if given house ID exists on list.
Parameters:
API Tags:
| Return: | If house is set then true. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Since: | 0.1.0 |
| Since: | 0.1.3 |
bool offsetExists(
string|int
$offset
)
|
|
Checks if given element exists.
Checks if given element exists.
Parameters:
|
string|int |
$offset: |
Array key. |
API Tags:
| Return: | True if it's set. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Since: | 0.1.0 |
Implementation of:
- ArrayAccess::offsetExists
OTS_House|int offsetGet(
string|int
$offset
)
|
|
Returns item from given position.
Returns item from given position.
Parameters:
|
string|int |
$offset: |
Array key. |
API Tags:
| Return: | If key is an integer (type-sensitive!) then returns house instance. If it's a string then return associated ID found by house name. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Since: | 0.1.0 |
Implementation of:
- ArrayAccess::offsetGet
void offsetSet(
string|int
$offset, mixed
$value
)
|
|
This method is implemented for ArrayAccess interface.
This method is implemented for ArrayAccess interface. In fact you can't write/append to houses list. Any call to this method will cause E_OTS_ReadOnly raise.
Parameters:
|
string|int |
$offset: |
Array key. |
|
mixed |
$value: |
Field value. |
API Tags:
Information Tags:
| Version: | 0.1.0 |
| Throws: | E_OTS_ReadOnly Always - this class is read-only. |
| Since: | 0.1.0 |
Implementation of:
- ArrayAccess::offsetSet
void offsetUnset(
string|int
$offset
)
|
|
This method is implemented for ArrayAccess interface.
This method is implemented for ArrayAccess interface. In fact you can't write/append to houses list. Any call to this method will cause E_OTS_ReadOnly raise.
Parameters:
|
string|int |
$offset: |
Array key. |
API Tags:
Information Tags:
| Version: | 0.1.0 |
| Throws: | E_OTS_ReadOnly Always - this class is read-only. |
| Since: | 0.1.0 |
Implementation of:
- ArrayAccess::offsetUnset
void __set_state(
array
$properties
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Allows object importing from var_export().
Parameters:
|
array |
$properties: |
List of object properties. |
API Tags:
Information Tags:
| Version: | 0.1.0 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.1.0 |
Returns string representation of object.
Returns string representation of object.
If any display driver is currently loaded then it uses it's method.
API Tags:
| Return: | String representation of object. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.1.0 |
| Since: | 0.1.0 |
| Since: | 0.1.3 |