PHP Interface Newscoop\Doctrine\AdoDbInterface

Datei anzeigen Open project: sourcefabric/newscoop

Public Methods

Method Description
Affected_Rows ( ) : integer Get affected rows number
Insert_ID ( ) : integer Get last generated id
escape ( string $string ) : string Escape string
execute ( string $sql, array $data = null ) : mixed Execute sql statement
getAll ( string $query ) : array Get all rows for a given query
getCol ( ) : array Get col
getOne ( string $query ) : mixed Get one row for a given query
getRow ( string $query ) : array Get single row
isConnected ( ) : boolean Test if adapter is connected to db

Method Details

Affected_Rows() public method

Get affected rows number
public Affected_Rows ( ) : integer
return integer

Insert_ID() public method

Get last generated id
public Insert_ID ( ) : integer
return integer

escape() public method

Escape string
public escape ( string $string ) : string
$string string
return string

execute() public method

Execute sql statement
public execute ( string $sql, array $data = null ) : mixed
$sql string
$data array
return mixed

getAll() public method

Get all rows for a given query
public getAll ( string $query ) : array
$query string
return array

getCol() public method

Get col
public getCol ( ) : array
return array

getOne() public method

Get one row for a given query
public getOne ( string $query ) : mixed
$query string
return mixed

getRow() public method

Get single row
public getRow ( string $query ) : array
$query string
return array

isConnected() public method

Test if adapter is connected to db
public isConnected ( ) : boolean
return boolean