Public Member Functions | |
getSessionVars ($sessionContext) | |
setSessionVars ($sessionContext) | |
getErrorMessage () | |
getErrorFields () | |
getField ($fieldName) | |
getProperty ($propertyName) | |
getFieldNameByColumn ($column) | |
getFieldValue ($fieldName) | |
setActiveRecord ($currentRecord) | |
getActiveRecord () | |
getRecordId () | |
setActiveRecordId ($recordId) | |
fetch () | |
directFetch ($searchRule="", $count=-1, $offset=0, $sortRule="") | |
fetchById ($id) | |
fetchByName ($nameVal) | |
fetchOne ($searchRule, $sortRule="") | |
fetchRecords ($searchRule, &$resultRecords, $count=-1, $offset=0, $clearSearchRule=true, $noAssociation=false) | |
find () | |
count () | |
validateInput () | |
newRecord () | |
insertRecord ($recArr) | |
updateRecord ($recArr, $oldRec=null) | |
deleteRecord ($recArr) | |
Protected Member Functions | |
getSQLHelper () | |
_run_search ($limit=null) | |
_fetch_record (&$resultSet) | |
Protected Attributes | |
$m_RecordId = null | |
$m_CurrentRecord = null | |
$m_ErrorMessage = "" | |
$m_ErrorFields = array() | |
$_fetch4countQuery = null |
Definition at line 32 of file BizDataObj_Lite.php.
_fetch_record | ( | &$ | resultSet ) | [protected] |
Get record from result setand move the cursor to next row
Definition at line 555 of file BizDataObj_Lite.php.
_run_search | ( | $ | limit = null ) |
[protected] |
Run query with current search rule and returns PDO statement
array | $limit | - if limit is not null, do the limit search |
Definition at line 433 of file BizDataObj_Lite.php.
count | ( | ) |
Count the number of record according to the search results set before. It ignores limit setting
Reimplemented from BizDataObj_Abstract.
Definition at line 415 of file BizDataObj_Lite.php.
deleteRecord | ( | $ | recArr ) |
Delete current record or delete the given input record
array | $recArr | - associated array whose keys are field names of this BizDataObj |
Reimplemented from BizDataObj_Abstract.
Reimplemented in BizDataObj.
Definition at line 623 of file BizDataObj_Lite.php.
directFetch | ( | $ | searchRule = "" , |
$ | count = -1 , |
||
$ | offset = 0 , |
||
$ | sortRule = "" |
||
) |
Fetches SQL result rows as a sequential array without using query rules set before.
string | $searchRule | the search rule string |
int | $count | number of records to return |
int | $offset | the starting point of the return records |
Definition at line 274 of file BizDataObj_Lite.php.
fetch | ( | ) |
Fetches SQL result rows as a sequential array according the query rules set before.
Reimplemented from BizDataObj_Abstract.
Definition at line 247 of file BizDataObj_Lite.php.
fetchById | ( | $ | id ) |
fetchRecords | ( | $ | searchRule, |
&$ | resultRecords, | ||
$ | count = -1 , |
||
$ | offset = 0 , |
||
$ | clearSearchRule = true , |
||
$ | noAssociation = false |
||
) |
Run query and get the query results without affecting DataObject internal state by default it gets number of records starting from the first row. if pageNum > 0, it gets number of records starting from the first row of the page
$searchRule | search rule applied on the query |
$resultRecord | returned result record array |
$recNum | number of records to be returned. if -1, all query results returned |
$clearSearchRule | indicates if search rule need to be cleared before query |
$noAssociation | indicates if current association condition is not used in query |
Definition at line 353 of file BizDataObj_Lite.php.
find | ( | ) |
Do the search query and return results set as PDOStatement
Reimplemented from BizDataObj_Abstract.
Definition at line 394 of file BizDataObj_Lite.php.
getActiveRecord | ( | ) |
Get the active record
Definition at line 204 of file BizDataObj_Lite.php.
getErrorFields | ( | ) |
getErrorMessage | ( | ) |
Get the error message caused by data action
Definition at line 109 of file BizDataObj_Lite.php.
getField | ( | $ | fieldName ) |
Get the BizField object
string | $fieldName | field name |
Definition at line 130 of file BizDataObj_Lite.php.
getFieldNameByColumn | ( | $ | column ) |
Get field name by column
string | $column | column name |
Definition at line 167 of file BizDataObj_Lite.php.
getFieldValue | ( | $ | fieldName ) |
Get the BizField value
string | $fieldName | field name |
Definition at line 180 of file BizDataObj_Lite.php.
getProperty | ( | $ | propertyName ) |
Get object property
string | $propertyName |
Reimplemented from BizDataObj_Abstract.
Definition at line 141 of file BizDataObj_Lite.php.
getSessionVars | ( | $ | sessionContext ) |
Get session variables data of this object
SessionContext | $sessionContext |
Reimplemented from BizDataObj_Abstract.
Definition at line 70 of file BizDataObj_Lite.php.
getSQLHelper | ( | ) | [protected] |
Get SQL helper
Definition at line 404 of file BizDataObj_Lite.php.
insertRecord | ( | $ | recArr ) |
Insert record using given input record array
array | $recArr | - associated array whose keys are field names of this BizDataObj |
Reimplemented from BizDataObj_Abstract.
Reimplemented in BizDataObj.
Definition at line 600 of file BizDataObj_Lite.php.
newRecord | ( | ) |
Create an empty new record
Reimplemented from BizDataObj_Abstract.
Reimplemented in BizDataObj.
Definition at line 589 of file BizDataObj_Lite.php.
setActiveRecord | ( | $ | currentRecord ) |
Set the current working record values
array | $currentRecord | record array |
Definition at line 192 of file BizDataObj_Lite.php.
setActiveRecordId | ( | $ | recordId ) |
Set the active record according to the record id
mixed | $recordId | record id |
Definition at line 233 of file BizDataObj_Lite.php.
setSessionVars | ( | $ | sessionContext ) |
Save Session variables/data of this object
SessionContext | $sessionContext |
Reimplemented from BizDataObj_Abstract.
Definition at line 91 of file BizDataObj_Lite.php.
updateRecord | ( | $ | recArr, |
$ | oldRec = null |
||
) |
Update record using given input record array
array | $recArr | - associated array whose keys are field names of this BizDataObj |
array | $oldRec | - associated array who is the old record field name / value pairs |
Reimplemented from BizDataObj_Abstract.
Reimplemented in BizDataObj.
Definition at line 612 of file BizDataObj_Lite.php.
validateInput | ( | ) |
Validate user input data and trigger error message and adjust BizField if invalid.
Reimplemented in BizDataObj.
Definition at line 579 of file BizDataObj_Lite.php.