PHP Class Controller_Data_SQL, atk4

Inheritance: extends Controller_Data
显示文件 Open project: atk4/atk4 Class Usage Examples

Public Properties

Property Type Description
$auto_track_element
$supportConditions
$supportExpressions
$supportLimit
$supportOperators
$supportOrder
$supportRef

Public Methods

Method Description
count ( $model, string $alias = null ) : DSQL Returns dynamic query selecting number of entries in the database.
delete ( $model, $id )
deleteAll ( $model )
dsql ( $model )
load ( $model, $dsql )
loadByConditions ( $model )
loadById ( $model, $id )
loadCurrent ( $model ) Provided that rewind was called before, load next data entry
prefetchAll ( $model )
save ( $model, $id, $data )
setSource ( $model, $data )
updateConditions ( $model, $dsql )
updateQuery ( $model, $field, $select )

Protected Methods

Method Description
getDsqlForSelect ( $model, $dsql = null )

Private Methods

Method Description
getDsqlForSave ( $model, $dsql = null )
getDsqlFromModel ( $model, $dsql = null )

Method Details

count() public method

Returns dynamic query selecting number of entries in the database.
public count ( $model, string $alias = null ) : DSQL
$alias string Optional alias of count expression
return DSQL

delete() public method

public delete ( $model, $id )

deleteAll() public method

public deleteAll ( $model )

dsql() public method

public dsql ( $model )

getDsqlForSelect() protected method

protected getDsqlForSelect ( $model, $dsql = null )

load() public method

public load ( $model, $dsql )

loadByConditions() public method

public loadByConditions ( $model )

loadById() public method

public loadById ( $model, $id )

loadCurrent() public method

Provided that rewind was called before, load next data entry
public loadCurrent ( $model )

prefetchAll() public method

public prefetchAll ( $model )

save() public method

public save ( $model, $id, $data )

setSource() public method

public setSource ( $model, $data )

updateConditions() public method

public updateConditions ( $model, $dsql )

updateQuery() public method

public updateQuery ( $model, $field, $select )

Property Details

$auto_track_element public_oe property

public $auto_track_element

$supportConditions public_oe property

public $supportConditions

$supportExpressions public_oe property

public $supportExpressions

$supportLimit public_oe property

public $supportLimit

$supportOperators public_oe property

public $supportOperators

$supportOrder public_oe property

public $supportOrder

$supportRef public_oe property

public $supportRef