PHP 클래스 Pop\Db\Db

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapter mixed Default database adapter object
$isPdo boolean Flag for a PDO adapter

공개 메소드들

메소드 설명
__construct ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db Constructor
adapter ( ) : mixed Get the database adapter.
factory ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db Determine whether or not an instance of the DB object exists already, and instantiate the object if it doesn't exist.
getAdapterType ( ) : string Get the database adapter type.
isPdo ( ) : boolean Get the PDO flag

메소드 상세

__construct() 공개 메소드

Instantiate the database connection object.
public __construct ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db
$type string
$options array
$prefix string
리턴 Db

adapter() 공개 메소드

Get the database adapter.
public adapter ( ) : mixed
리턴 mixed

factory() 공개 정적인 메소드

Determine whether or not an instance of the DB object exists already, and instantiate the object if it doesn't exist.
public static factory ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db
$type string
$options array
$prefix string
리턴 Db

getAdapterType() 공개 메소드

Get the database adapter type.
public getAdapterType ( ) : string
리턴 string

isPdo() 공개 메소드

Get the PDO flag
public isPdo ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Default database adapter object
protected mixed $adapter
리턴 mixed

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

Flag for a PDO adapter
protected bool $isPdo
리턴 boolean