PHP Class Prado\Web\UI\WebControls\TDataSourceView

Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TComponent
显示文件 Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( Prado\Web\UI\WebControls\IDataSource $owner, $viewName )
delete ( $keys ) : integer Deletes DB row(s) with the specified keys.
getCanDelete ( )
getCanGetRowCount ( )
getCanInsert ( )
getCanPage ( )
getCanSort ( )
getCanUpdate ( )
getDataSource ( )
getName ( )
insertAt ( $values ) : integer Inserts a DB record.
onDataSourceViewChanged ( $param )
select ( $parameters ) : Traversable Performs DB selection based on specified parameters.
update ( $keys, $values ) : integer Updates DB record(s) with the specified keys and new values

Method Details

__construct() public method

public __construct ( Prado\Web\UI\WebControls\IDataSource $owner, $viewName )
$owner Prado\Web\UI\WebControls\IDataSource

delete() public method

Deletes DB row(s) with the specified keys.
public delete ( $keys ) : integer
return integer affected rows

getCanDelete() public method

public getCanDelete ( )

getCanGetRowCount() public method

public getCanGetRowCount ( )

getCanInsert() public method

public getCanInsert ( )

getCanPage() public method

public getCanPage ( )

getCanSort() public method

public getCanSort ( )

getCanUpdate() public method

public getCanUpdate ( )

getDataSource() public method

public getDataSource ( )

getName() public method

public getName ( )

insertAt() public method

Inserts a DB record.
public insertAt ( $values ) : integer
return integer affected rows

onDataSourceViewChanged() public method

public onDataSourceViewChanged ( $param )

select() abstract public method

Performs DB selection based on specified parameters.
abstract public select ( $parameters ) : Traversable
return Traversable

update() public method

Updates DB record(s) with the specified keys and new values
public update ( $keys, $values ) : integer
return integer affected rows