Returns amount of items loaded.
Returns amount of items loaded.
API Tags:
| Return: | Count of types. |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
Implementation of:
- Countable::count
API Tags:
| Return: | Item name. |
| Deprecated: | 0.1.0 Use getIterator(). |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
Returns build version.
Returns build version.
API Tags:
| Return: | Build version. |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
Returns client version.
Returns client version.
API Tags:
| Return: | Client version. |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
Returns given item type.
Returns given item type.
Parameters:
|
int |
$id: |
Item type (server) ID. |
API Tags:
| Return: | Returns item type of given ID. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Throws: | OutOfBoundsException If not exists. |
| Since: | 0.0.8 |
int getItemTypeId(
string
$name
)
|
|
Finds item type by it's name.
Finds item type by it's name.
Note: If there are more then one items with same name this function will return first found server ID. It doesn't also mean that it will be the lowest ID - item types are ordered in order that they were loaded from items.xml file.
Parameters:
|
string |
$name: |
Item type name. |
API Tags:
| Return: | Returns item type (server) ID. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Throws: | OutOfBoundsException If not found. |
| Since: | 0.0.8 |
array getItemTypesList(
)
|
|
API Tags:
| Return: | List of item types. |
| Deprecated: | 0.1.0 Use this class object as array for iterations, counting and methods for field fetching. |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
ArrayIterator getIterator(
)
|
|
Returns iterator handle for loops.
Returns iterator handle for loops.
API Tags:
| Return: | Items list iterator. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.0 |
Implementation of:
- IteratorAggregate::getIterator
Returns OTB file version.
Returns OTB file version.
API Tags:
| Return: | OTB format version. |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
bool hasItemType(
string
$name
)
|
|
Checks if given item type exists on list.
Checks if given item type exists on list.
Parameters:
API Tags:
| Return: | If item type is set then true. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.3 |
bool hasItemTypeId(
int
$id
)
|
|
Checks if given type ID exists on list.
Checks if given type ID exists on list.
Parameters:
API Tags:
| Return: | If item type is set then true. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.3 |
API Tags:
| Return: | Current position key. |
| Deprecated: | 0.1.0 Use getIterator(). |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
void loadItems(
string
$path
)
|
|
Loads items.
Loads items.xml and items.otb files.
This method loads both items.xml and items.otb files. Both of them has to be in given directory.
Parameters:
|
string |
$path: |
Path to data/items directory. |
API Tags:
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Throws: | E_OTS_FileLoaderError When error occurs during file operation. |
| Since: | 0.0.8 |
| Throws: | DOMException On DOM operation error. |
API Tags:
| Deprecated: | 0.1.0 Use getIterator(). |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
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 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.0 |
Implementation of:
- ArrayAccess::offsetExists
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 item type instance. If it's a string then return associated ID found by type name. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| 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 items 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 |
| Version: | 0.0.8 |
| Throws: | E_OTS_ReadOnly Always - this class is read-only. |
| Since: | 0.1.0 |
| Since: | 0.0.8 |
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 items 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 |
| Version: | 0.0.8 |
| Throws: | E_OTS_ReadOnly Always - this class is read-only. |
| Since: | 0.1.0 |
| Since: | 0.0.8 |
Implementation of:
- ArrayAccess::offsetUnset
API Tags:
| Deprecated: | 0.1.0 Use getIterator(). |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
API Tags:
| Return: | If iterator has anything more. |
| Deprecated: | 0.1.0 Use getIterator(). |
| Access: | public |
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |
mixed __get(
string
$name
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:
|
string |
$name: |
Property name. |
API Tags:
| Return: | Property value. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.8 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.1.0 |
| Since: | 0.0.8 |
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.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.3 |
Magic PHP5 method.
Magic PHP5 method.
Allows object unserialisation.
API Tags:
Information Tags:
| Version: | 0.0.8 |
| Since: | 0.0.8 |