PHP Class Gpf_Data_RecordSet

Inheritance: extends Gpf_Object, implements IteratorAggregate, implements Gpf_Rpc_Serializable
ファイルを表示 Open project: fubralimited/php-oara Class Usage Examples

Protected Properties

Property Type Description
$_array

Public Methods

Method Description
__construct ( )
add ( array $record ) Adds new row to RecordSet
addColumn ( $id, $defaultValue = "" )
addRecord ( Gpf_Data_Record $record )
clear ( )
createRecord ( ) : Gpf_Data_Record
get ( $i ) : Gpf_Data_Record
getHeader ( ) : Gpf_Data_RecordHeader
getIterator ( ) : ArrayIterator
getRecord ( $keyValue = null )
getSize ( ) : integer Return number of rows in recordset
load ( Gpf_SqlBuilder_SelectBuilder $select )
loadFromArray ( $rows )
loadFromObject ( $array )
removeRecord ( $i )
setHeader ( $header )
sort ( $column, $sortType = 'ASC' )
toArray ( )
toObject ( )
toShalowRecordSet ( ) : Gpf_Data_RecordSet Creates shalow copy of recordset containing only headers
toText ( )

Protected Methods

Method Description
loadRecordFromObject ( Gpf_Data_Record $record )

Private Methods

Method Description
getRecordObject ( array/Gpf_Data_Record $record ) : Gpf_Data_Record
init ( )

Method Details

__construct() public method

public __construct ( )

add() public method

Adds new row to RecordSet
public add ( array $record )
$record array array of data for all columns in record

addColumn() public method

public addColumn ( $id, $defaultValue = "" )

addRecord() public method

public addRecord ( Gpf_Data_Record $record )
$record Gpf_Data_Record

clear() public method

public clear ( )

createRecord() public method

public createRecord ( ) : Gpf_Data_Record
return Gpf_Data_Record

get() public method

public get ( $i ) : Gpf_Data_Record
return Gpf_Data_Record

getHeader() public method

public getHeader ( ) : Gpf_Data_RecordHeader
return Gpf_Data_RecordHeader

getIterator() public method

getRecord() public method

public getRecord ( $keyValue = null )

getSize() public method

Return number of rows in recordset
public getSize ( ) : integer
return integer

load() public method

public load ( Gpf_SqlBuilder_SelectBuilder $select )
$select Gpf_SqlBuilder_SelectBuilder

loadFromArray() public method

public loadFromArray ( $rows )

loadFromObject() public method

public loadFromObject ( $array )

loadRecordFromObject() protected method

protected loadRecordFromObject ( Gpf_Data_Record $record )
$record Gpf_Data_Record

removeRecord() public method

public removeRecord ( $i )

setHeader() public method

public setHeader ( $header )

sort() public method

public sort ( $column, $sortType = 'ASC' )

toArray() public method

public toArray ( )

toObject() public method

public toObject ( )

toShalowRecordSet() public method

Creates shalow copy of recordset containing only headers
public toShalowRecordSet ( ) : Gpf_Data_RecordSet
return Gpf_Data_RecordSet

toText() public method

public toText ( )

Property Details

$_array protected_oe property

protected $_array