Class: Quinoa_Entity
Source Location: /Quinoa/Entity.php
Quinoa_Data
|
--Quinoa_Entity
Quinoa Entity class.
Author(s):
Version:
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
constructor __construct [line 85]
Quinoa_Entity __construct(
)
|
|
Constructs a Quinoa_Entity object Calls the defineAttributes method which is mandatory in for the classes inheriting it. Constructs a Quinoa_Entity object Calls the defineAttributes method which is mandatory in for the classes inheriting it.
Tags:
Overrides Quinoa_Data::__construct() (Constructs a Quinoa_Data object.)
method addAttribute [line 480]
void addAttribute(
unknown_type
$attribute)
|
|
Adda an attribute to the data class Adda an attribute to the data class
Tags:
Parameters:
method create [line 336]
void create(
Quinoa_Record
$record)
|
|
High level insertion. High level insertion. Receives a Quinoa_Record and creates an record in the database
Tags:
Parameters:
method createOrUpdate [line 353]
void createOrUpdate(
Quinoa_Record
$record, [mixed
$id = null], [boolean
$primaryEditable = false])
|
|
High level insertion or update. High level insertion or update. Receives a Quinoa_Record and creates if id given is null or updates an record in the database if id is given
Tags:
Parameters:
method defineAttributes [line 296]
Mandatory definition of entity attributes Mandatory definition of entity attributes
Tags:
method deleteMany [line 439]
void deleteMany(
[mixed
$condition = ""])
|
|
High level deletion upon condition High level deletion upon condition
Tags:
Parameters:
method deleteOne [line 397]
void deleteOne(
integer
$id)
|
|
High level deletion based on the id given High level deletion based on the id given Only works for entities with a single primary key
Tags:
Parameters:
method getAttribute [line 217]
Gets an attribute given its name Gets an attribute given its name
Tags:
Parameters:
method getAttributes [line 190]
Quinoa_Attribute[] getAttributes(
)
|
|
get the array of Quinoa_Attribute of the entity get the array of Quinoa_Attribute of the entity
Tags:
method getConditions [line 142]
get the conditions based on the entity relationships get the conditions based on the entity relationships
Tags:
method getFields [line 114]
get the fields defined in the attributes property get the fields defined in the attributes property
Tags:
method getForeignType [line 168]
string getForeignType(
string
$type)
|
|
get the type defined in the external attribute get the type defined in the external attribute
Tags:
Parameters:
method getLabels [line 303]
Gets an array with all the labels of the data class for display purposes Gets an array with all the labels of the data class for display purposes
Tags:
method getNames [line 319]
Gets an array with all the names of the data class Gets an array with all the names of the data class
Tags:
method getPrimaryKey [line 180]
return the primary key defined for the entity return the primary key defined for the entity
Tags:
method getSQLParams [line 247]
array getSQLParams(
[string
$operation = "SELECT"])
|
|
get the pieces of the SQL in an associative array get the pieces of the SQL in an associative array
Tags:
Parameters:
method getTables [line 96]
get the tables defined in the inheriting data class get the tables defined in the inheriting data class
Tags:
method hasSet [line 200]
Checks whether the data class defines a set as an attribute Checks whether the data class defines a set as an attribute
Tags:
method removeAttribute [line 490]
void removeAttribute(
string
$name)
|
|
Removes an attribute of a data class given its name Removes an attribute of a data class given its name
Tags:
Parameters:
method retrieveAll [line 455]
Quinoa_Recordlist retrieveAll(
[integer
$maxRecords = ""], [integer
$start = 0], [boolean
$getCount = false])
|
|
High level retrieving all records of a entity High level retrieving all records of a entity
Tags:
Parameters:
method retrieveMany [line 495]
void retrieveMany(
[mixed
$conditions = ""], [mixed
$maxRecords = ""], [mixed
$start = 0], [mixed
$getCount = false])
|
|
Tags:
method retrieveOne [line 413]
High level retrieving based on the id given High level retrieving based on the id given Also works with composed primary keys
Tags:
Parameters:
method setTable [line 470]
void setTable(
string
$table, [integer
$i = 0])
|
|
tables set accessor tables set accessor
Tags:
Parameters:
|
|