PHP Class UpdateQuery, fluentpdo

Author: JunYoungK
Inheritance: extends BaseQuery
Exibir arquivo Open project: fpdo/fluentpdo Class Usage Examples

Public Methods

Method Description
__construct ( FluentPDO $fpdo, $table ) UpdateQuery constructor.
execute ( boolean $getResultAsPdoStatement = false ) : integer | boolean | PDOStatement Execute update query
set ( string | array $fieldOrArray, boolean | string $value = false )

Protected Methods

Method Description
getClauseSet ( ) : string
getClauseUpdate ( ) : string

Method Details

__construct() public method

UpdateQuery constructor.
public __construct ( FluentPDO $fpdo, $table )
$fpdo FluentPDO
$table

execute() public method

Execute update query
public execute ( boolean $getResultAsPdoStatement = false ) : integer | boolean | PDOStatement
$getResultAsPdoStatement boolean true to return the pdo statement instead of row count
return integer | boolean | PDOStatement

getClauseSet() protected method

protected getClauseSet ( ) : string
return string

getClauseUpdate() protected method

protected getClauseUpdate ( ) : string
return string

set() public method

public set ( string | array $fieldOrArray, boolean | string $value = false )
$fieldOrArray string | array
$value boolean | string