PHP 클래스 Clockwork\Storage\SqlStorage

상속: extends Storage
파일 보기 프로젝트 열기: itsgoingd/clockwork 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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 ( Request $request ) Store the request in the database

보호된 메소드들

메소드 설명
createRequestFromData ( $data )

메소드 상세

__construct() 공개 메소드

Return a new storage, takes PDO object or DSN and optionally a table name and database credentials as arguments
public __construct ( $dsn, $table = 'clockwork', $username = null, $password = null )

createRequestFromData() 보호된 메소드

protected createRequestFromData ( $data )

initialize() 공개 메소드

Create the Clockwork metadata table if it doesn't exist
public initialize ( )

retrieve() 공개 메소드

Retrieve a request specified by id argument, if second argument is specified, array of requests from id to last will be returned
public retrieve ( $id = null, $last = null )

store() 공개 메소드

Store the request in the database
public store ( Request $request )
$request Clockwork\Request\Request

프로퍼티 상세

$needs_serialization 보호되어 있는 프로퍼티

List of Request keys that need to be serialized before they can be stored in database
protected $needs_serialization

$pdo 보호되어 있는 프로퍼티

PDO instance
protected $pdo

$table 보호되어 있는 프로퍼티

Name of the table with Clockwork requests metadata
protected $table