OTS_Item __construct(
int
$id
)
|
|
Creates item of given ID.
Creates item of given ID.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
Count value for current item.
Count value for current item.
API Tags:
| Return: | Count of item. |
| Access: | public |
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
Implementation of:
- Countable::count
Redefined in descendants as:
Returns item custom attributes.
Returns item custom attributes.
API Tags:
| Return: | Attributes. |
| Access: | public |
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
Returns count of item.
Returns count of item.
API Tags:
| Return: | Count of item. |
| Access: | public |
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
Returns item type.
Returns item type.
API Tags:
| Return: | Item ID. |
| Access: | public |
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
Returns type of item.
Returns type of item.
API Tags:
| Return: | Returns item type of item (null if not exists). |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.3 |
| Throws: | E_OTS_NotLoaded If global items list wasn't loaded. |
| Since: | 0.1.0 |
| Since: | 0.0.3 |
void setAttributes(
string
$attributes
)
|
|
Sets item attributes.
Sets item attributes.
Parameters:
|
string |
$attributes: |
Item Attributes. |
API Tags:
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
void setCount(
int
$count
)
|
|
Sets count of item.
Sets count of item.
Parameters:
API Tags:
Information Tags:
| Version: | 0.0.3 |
| Since: | 0.0.3 |
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.3 |
| Throws: | E_OTS_NotLoaded If global items list wasn't loaded. |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.0.3 |
| Since: | 0.1.0 |
void __set(
string
$name, mixed
$value
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:
|
string |
$name: |
Property name. |
|
mixed |
$value: |
Property value. |
API Tags:
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.3 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.1.0 |
| Since: | 0.0.3 |