Property | Type | Description | |
---|---|---|---|
$needs_serialization | List of Request keys that need to be serialized before they can be stored in database | ||
$pdo | PDO instance | ||
$table | Name of the table with Clockwork requests metadata |
Method | Description | |
---|---|---|
__construct ( $dsn, $table = 'clockwork', $username = null, $password = null ) | Return a new storage, takes PDO object or DSN and optionally a table name and database credentials as arguments | |
initialize ( ) | Create the Clockwork metadata table if it doesn't exist | |
retrieve ( $id = null, $last = null ) | Retrieve a request specified by id argument, if second argument is specified, array of requests from id to last will be returned | |
store ( |
Store the request in the database |
Method | Description | |
---|---|---|
createRequestFromData ( $data ) |
public __construct ( $dsn, $table = 'clockwork', $username = null, $password = null ) |
public initialize ( ) |
public retrieve ( $id = null, $last = null ) |
public store ( |
||
$request |
protected $needs_serialization |