includes/class/Status.class.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Broker
Package
Broker  

\Broker\Status

Package: Broker
Status
Parent(s)
\Broker\Database
Inherited_from
\Broker\Database  

Properties

>VPropertyprivate\Broker\Cache $cache
Cache
Details
Type
\Broker\Cache
>VPropertyprivatestring $classname
Classname
Details
Type
string
>VPropertyprivate\Broker\Collection $collection
Collection
Details
Type
\Broker\Collection
>VPropertypublicobject $configuration
Configuration
Details
Type
object
>VPropertypublic\PDO $database
Database
Details
Type
\PDO
>VPropertypublicstring $filename
Filename
Details
Type
string
>VPropertyprivate\Broker\number $timeout = 10
Timeout
Default value10Details
Type
\Broker\number

Methods

methodpublic__construct(string $directory, object $configuration, \Broker\Cache $cache) : void

Constructor

Parameters
NameTypeDescription
$directorystring
$configurationobject
$cache\Broker\Cache
methodpublic__construct(string $directory, object $configuration, string $classname) : void
inherited

Constructor

Inherited from:
Parameters
NameTypeDescription
$directorystring
$configurationobject
$classnamestring
methodpublicclean() : void

Clean

methodpubliccreate(string $brokerRequest, boolean $status = false) : array

Create status

Parameters
NameTypeDescription
$brokerRequeststring
$statusboolean
Returns
TypeDescription
array
methodpublicdelete(string $key) : void

Delete

Parameters
NameTypeDescription
$keystring
methodpublicerrorCheck(string $source, \PDOStatement $query, boolean $removeDatabase) : void
inherited

Check for errors

Inherited from:
Parameters
NameTypeDescription
$sourcestring
$query\PDOStatement
$removeDatabaseboolean
methodprivategenerateKey(\Broker\number $length = 20) : string

Generate key

Parameters
NameTypeDescription
$length\Broker\number
Returns
TypeDescription
string
methodpublicget(string $key) : array

Get status

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
array
methodprivategetCache() : \Broker\Cache

Get (or create) cache

Returns
TypeDescription
\Broker\Cache
methodpublicgetCollection() : \Broker\Collection

Get (or create) collection

Returns
TypeDescription
\Broker\Collection
methodpublicgetList(integer $start, integer $number) : array

List

Parameters
NameTypeDescription
$startinteger
$numberinteger
Returns
TypeDescription
array
methodpublicinit() : void

Init

methodpublicinit() : void
abstractinherited

Init

Inherited from:
methodpublicnumber() : \Broker\number
inherited

Get number

Inherited from:
Returns
TypeDescription
\Broker\number
methodpublicreset() : void
inherited

Reset

Inherited from:
methodpublicstart(string $key) : array

Start

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
array
methodpublicupdate(string $key) : array

Update

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.8.5.