PHP Class Pop\Db\Record\AbstractRecord

Author: Nick Sagona, III ([email protected])
Show file Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Property Type Description
$auto boolean Property that determines whether or not the primary ID is auto-increment or not
$columns array Column names of the database table
$finder array Original query finder, if primary ID is not set.
$primaryId string Primary ID column name of the database table
$rows array Rows of multiple return results from a database query in an ArrayObject format.
$sql Pop\Db\Sql Sql abstraction object
$tableName string Table name of the database table

Public Methods

Method Description
getResult ( ) : array Get the result rows.
sql ( ) : Sql Get the SQL abtraction object.

Protected Methods

Method Description
getOrder ( string $order ) : array Get the order by values

Method Details

getOrder() protected method

Get the order by values
protected getOrder ( string $order ) : array
$order string
return array

getResult() public method

Get the result rows.
public getResult ( ) : array
return array

sql() public method

Get the SQL abtraction object.
public sql ( ) : Sql
return Pop\Db\Sql

Property Details

$auto protected property

Property that determines whether or not the primary ID is auto-increment or not
protected bool $auto
return boolean

$columns protected property

Column names of the database table
protected array $columns
return array

$finder protected property

Original query finder, if primary ID is not set.
protected array $finder
return array

$primaryId protected property

Primary ID column name of the database table
protected string $primaryId
return string

$rows protected property

Rows of multiple return results from a database query in an ArrayObject format.
protected array $rows
return array

$sql protected property

Sql abstraction object
protected Sql,Pop\Db $sql
return Pop\Db\Sql

$tableName protected property

Table name of the database table
protected string $tableName
return string