PHP 클래스 Clockwork\DataSource\DoctrineDataSource

상속: extends DataSource, implements Doctrine\DBAL\Logging\SQLLogger
파일 보기 프로젝트 열기: itsgoingd/clockwork

공개 프로퍼티들

프로퍼티 타입 설명
$query Current recorded query
$start For timing queries:

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Doctrine\DBAL\Connection Doctrine connection
$enm Doctrine entity manager
$queries Internal array where queries are stored

공개 메소드들

메소드 설명
__construct ( EntityManager $enm )
registerQuery ( $query, $bindings, $time, $connection ) : array Log the query into the internal store
resolve ( Request $request ) Adds ran database queries to the request
startQuery ( string $sql, array $params = null, array $types = null ) From SQLLogger Doctrine Interface
stopQuery ( ) From SQLLogger Doctrine Interface

보호된 메소드들

메소드 설명
convertParam ( $param )
formatQuery ( $sql )
getDatabaseQueries ( ) Returns an array of runnable queries and their durations from the internal array
replaceParams ( $sql, $params )

메소드 상세

__construct() 공개 메소드

public __construct ( EntityManager $enm )
$enm Doctrine\ORM\EntityManager

convertParam() 보호된 메소드

protected convertParam ( $param )

formatQuery() 보호된 메소드

protected formatQuery ( $sql )

getDatabaseQueries() 보호된 메소드

Returns an array of runnable queries and their durations from the internal array
protected getDatabaseQueries ( )

registerQuery() 공개 메소드

Log the query into the internal store
public registerQuery ( $query, $bindings, $time, $connection ) : array
리턴 array

replaceParams() 보호된 메소드

protected replaceParams ( $sql, $params )

resolve() 공개 메소드

Adds ran database queries to the request
public resolve ( Request $request )
$request Clockwork\Request\Request

startQuery() 공개 메소드

From SQLLogger Doctrine Interface
public startQuery ( string $sql, array $params = null, array $types = null )
$sql string
$params array
$types array

stopQuery() 공개 메소드

From SQLLogger Doctrine Interface
public stopQuery ( )

프로퍼티 상세

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

Doctrine connection
protected Connection,Doctrine\DBAL $connection
리턴 Doctrine\DBAL\Connection

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

Doctrine entity manager
protected $enm

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

Internal array where queries are stored
protected $queries

$query 공개적으로 프로퍼티

Current recorded query
public $query

$start 공개적으로 프로퍼티

For timing queries:
public $start