PHP Class System\Database\connector

Afficher le fichier Open project: anchorcms/anchor-cms

Méthodes publiques

Méthode 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 méthode

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

ask() public méthode

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

instance() abstract public méthode

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

profile() public méthode

Return the profile array
public profile ( ) : array
Résultat array

showQuery() public méthode

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