PHP Class System\Database\connector

Show file Open project: anchorcms/anchor-cms

Public Methods

Method Description
__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

Method Details

__callStatic() public static method

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

ask() public method

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

instance() abstract public method

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

profile() public method

Return the profile array
public profile ( ) : array
return array

showQuery() public method

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