PHP 클래스 System\Database\connector

파일 보기 프로젝트 열기: anchorcms/anchor-cms

공개 메소드들

메소드 설명
__callStatic ( $method, $arguments ) : mixed Magic method for calling methods on PDO instance
ask ( $sql, $binds = [] ) : array A simple database query wrapper
instance ( ) All connectors will implement a function to return the pdo instance
profile ( ) : array Return the profile array
showQuery ( $query, $params ) showQuery method from issue #695 by apmuthu

메소드 상세

__callStatic() 공개 정적인 메소드

Magic method for calling methods on PDO instance
public static __callStatic ( $method, $arguments ) : mixed
리턴 mixed

ask() 공개 메소드

A simple database query wrapper
public ask ( $sql, $binds = [] ) : array
리턴 array

instance() 추상적인 공개 메소드

All connectors will implement a function to return the pdo instance
abstract public instance ( )

profile() 공개 메소드

Return the profile array
public profile ( ) : array
리턴 array

showQuery() 공개 메소드

Show a formatted query given some parameters
public showQuery ( $query, $params )