Class: PNObject
Source Location: /pnobjlib/PNObject.class.phpChild classes:
- PNObjectArray
- PNObjectArrayUtil
Inherited Variables
Inherited Methods
Class Details
Class Variables
$_columns =
[line 39]
$_GET_FROM_DB = 'D'
[line 42]
$_GET_FROM_GET = 'G'
[line 43]
$_GET_FROM_POST = 'P'
[line 44]
$_GET_FROM_REQUEST = 'R'
[line 45]
$_GET_FROM_SESSION = 'S'
[line 46]
$_GET_FROM_VALIDATION_FAILED = 'V'
[line 47]
$_objColumnArray =
[line 35]
$_objData =
[line 29]
$_objField =
[line 30]
$_objJoin =
[line 25]
$_objKey =
[line 31]
$_objPath =
[line 32]
$_objPermissionFilter =
[line 34]
$_objSessionPath =
[line 33]
$_objType =
[line 24]
$_objValidation =
[line 26]
$_table =
[line 38]
Class Methods
constructor PNObject [line 57]
|
Constructur, init everything to sane defaults and handle parameters
Parameters:
method clearFailedValidationData [line 700]
method clearSessionCache [line 709]
method clearValidationErrors [line 691]
method delete [line 597]
|
Generic delete handler for an object
Tags:
Overridden in child classes as:
- PNObjectArray::delete()
- Generic delete handler for an object
method deletePostProcess [line 624]
|
Post-Process the data after a delete. Subclasses can define appropriate implementations.
Parameters:
method deletePreProcess [line 615]
|
Pre-Process the data prior a delete. Subclasses can define appropriate implementations.
Parameters:
method generateEmptyObject [line 137]
method get [line 186]
|
Return the current object data. If $key and $field are supplied, the object is fetched again from the database.
Tags:
Overridden in child classes as:
- PNObjectArray::get()
- Return the current object data. Maps to $this->getWhere().
Parameters:
method getData [line 201]
|
Return the currently set object data
Tags:
Overridden in child classes as:
- PNObjectArray::getData()
- Return the currently set object data
method getDataField [line 476]
|
Generic function to retrieve
Tags:
Overridden in child classes as:
- PNObjectArray::getDataField()
- Generic function to retrieve
Parameters:
method getDataFromInput [line 346]
|
Get the data from the various input streams provided.
Tags:
Parameters:
method getDataFromInputPostProcess [line 423]
|
Post-Process the data after getting it from Input. Subclasses can define appropriate implementations.
Parameters:
method getDataFromSession [line 373]
|
Get the data from the various input streams provided.
Tags:
Parameters:
method getDataFromSessionPostProcess [line 431]
|
Post-Process the data after getting it from Session. Subclasses can define appropriate implementations.
Parameters:
method getDataFromSource [line 454]
|
Generic access function to retrieve data from the specified source
Tags:
Parameters:
method getFailedValidationData [line 251]
method getHash [line 673]
|
Get the hashcode for this object data
Overridden in child classes as:
- PNObjectArray::getHash()
- Get the hashcode for this object data array
Parameters:
method getID [line 223]
method getIDField [line 212]
method getValidation [line 630]
method getWhere [line 240]
|
Return/Select the object using the given where clause.
Tags:
Overridden in child classes as:
- PNObjectArray::getWhere()
- Return/Select the object using the given where clause.
Parameters:
method hasID [line 264]
method insert [line 527]
|
Generic insert handler for an object (ID is inserted into the object data)
Tags:
Overridden in child classes as:
- PNObjectArray::insert()
- Generic insert handler for an object (ID is inserted into the object data)
method insertPostProcess [line 551]
|
Post-Process the data after an insert. Subclasses can define appropriate implementations.
Parameters:
method insertPreProcess [line 543]
|
Pre-Process the data prior to an insert. Subclasses can define appropriate implementations.
Parameters:
method prayer [line 718]
method prayerData [line 727]
method save [line 510]
|
Generic insert handler for an object (ID is inserted into the object data). If the object contains a valid ID, it is updated, otherwise it it inserted
Tags:
Overridden in child classes as:
- PNObjectArray::save()
- Save an object - if it has an ID update it, otherwise insert it
method select [line 279]
|
Select the object from the database using the specified key (and field)
Tags:
Overridden in child classes as:
- PNObjectArray::select()
- Generic select handler for an object. Select (and set) the specified object array
Parameters:
method selectPostProcess [line 332]
|
Post-Process the newly selected object. Subclasses can define appropriate implementations.
Tags:
Overridden in child classes as:
- PNObjectArray::selectPostProcess()
- Iterate over the object data and post-process it
Parameters:
method setData [line 161]
|
Set (and return) the object data.
Overridden in child classes as:
- PNObjectArray::setData()
- Set (and return) the object data. Since we dont' have a definitive key, we don't cache
Parameters:
method setDataField [line 495]
method setDataToSession [line 401]
|
Set the current object data into session
Tags:
Parameters:
method setDataToSessionPreProcess [line 439]
|
Pre-Process the data before writing it to Session. Subclasses can define appropriate implementations.
Parameters:
method update [line 561]
|
Generic upate handler for an object
Tags:
Overridden in child classes as:
- PNObjectArray::update()
- Generic upate handler for an object
method updatePostProcess [line 586]
|
Post-Process the data after an update. Subclasses can define appropriate implementations.
Parameters:
method updatePreProcess [line 577]
|
Pre-Process the data prior to an update. Subclasses can define appropriate implementations.
Parameters:
method validate [line 641]
|
Generic function to validate an object
Tags:
Overridden in child classes as:
- PNObjectArray::validate()
- Constructur, init everything to sane defaults and handle parameters
method validatePostProcess [line 663]
|
Post-Process the basic object validation with class specific logic.
Subclasses can define appropriate implementations.
Parameters:
method _init [line 85]
|
Internal intialization routine
Overridden in child classes as:
- PNObjectArray::_init()
- Internal intialization routine
