PHP Class DeleteQuery, fluentpdo

Inheritance: extends Query
Mostra file Open project: fpdo/fluentpdo Class Usage Examples

Public Methods

Method Description
__construct ( FluentPDO $fpdo, string $table ) DeleteQuery constructor.
execute ( ) : boolean Execute DELETE query
ignore ( ) : DeleteQuery Forces delete operation to fail silently

Protected Methods

Method Description
buildQuery ( ) : string
getClauseDelete ( ) : string
getClauseDeleteFrom ( ) : string

Method Details

__construct() public method

DeleteQuery constructor.
public __construct ( FluentPDO $fpdo, string $table )
$fpdo FluentPDO
$table string

buildQuery() protected method

protected buildQuery ( ) : string
return string

execute() public method

Execute DELETE query
public execute ( ) : boolean
return boolean

getClauseDelete() protected method

protected getClauseDelete ( ) : string
return string

getClauseDeleteFrom() protected method

protected getClauseDeleteFrom ( ) : string
return string

ignore() public method

Forces delete operation to fail silently
public ignore ( ) : DeleteQuery
return DeleteQuery