includes/class/Status.class.php
Broker
- Package
- Broker
\Broker\Status
Package: Broker
Status
- Parent(s)
- \Broker\Database
- Inherited_from
- \Broker\Database
Properties
Methods
__construct(string $directory, object $configuration, \Broker\Cache $cache) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$directory | string | |
$configuration | object | |
$cache | \Broker\Cache |
__construct(string $directory, object $configuration, string $classname) : void
inherited
Constructor
Inherited from:Parameters
Name | Type | Description |
---|---|---|
$directory | string | |
$configuration | object | |
$classname | string |
create(string $brokerRequest, boolean $status = false) : array
Create status
Parameters
Returns
Name | Type | Description |
---|---|---|
$brokerRequest | string | |
$status | boolean |
Type | Description |
---|---|
array |
errorCheck(string $source, \PDOStatement $query, boolean $removeDatabase) : void
inherited
Check for errors
Inherited from:Parameters
Name | Type | Description |
---|---|---|
$source | string | |
$query | \PDOStatement | |
$removeDatabase | boolean |
generateKey(\Broker\number $length = 20) : string
Generate key
Parameters
Returns
Name | Type | Description |
---|---|---|
$length | \Broker\number |
Type | Description |
---|---|
string |
get(string $key) : array
Get status
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
array |
getCollection() : \Broker\Collection
Get (or create) collection
Returns
Type | Description |
---|---|
\Broker\Collection |
getList(integer $start, integer $number) : array
List
Parameters
Returns
Name | Type | Description |
---|---|---|
$start | integer | |
$number | integer |
Type | Description |
---|---|
array |