Class: PNObjectArray
Source Location: /includes/pnobjlib/PNObjectArray.class.php
PNObject
|
--PNObjectArray
PNObjectArrayUtil
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Methods
constructor PNObjectArray [line 28]
PNObjectArray PNObjectArray(
[init
$init = null], [where
$where = ''])
|
|
Constructur, init everything to sane defaults and handle parameters
Parameters:
method clean [line 369]
The clean(
[objArray
$objArray = null])
|
|
Clean the acquired input
Tags:
Parameters:
method delete [line 324]
method deleteWhere [line 348]
The deleteWhere(
[where
$where = null])
|
|
Delete with a where-clause
Tags:
Parameters:
method genFilter [line 137]
The genFilter(
[filter
$filter = array()])
|
|
Generate a filter for the array view. Default implementation which can be overridden by subclasses.
Tags:
Overridden in child classes as:
- PNLogEventArray::genFilter()
Parameters:
method get [line 181]
The get(
[where
$where = ''], [sort
$sort = ''], [limitOffset
$limitOffset = -1], [limitNumRows
$limitNumRows = -1], [assocKey
$assocKey = null], [force
$force = false], [distinct
$distinct = false])
|
|
Return the current object data. Maps to $this->getWhere().
Tags:
Overrides PNObject::get() (Return the current object data. If $key and $field are supplied, the object is fetched again from the database.)
Parameters:
method getCount [line 119]
The getCount(
[where
$where = ''], [doJoin
$doJoin = false])
|
|
Return the record count for the given object set
Tags:
Parameters:
method getData [line 192]
Return the currently set object data
Tags:
Overrides PNObject::getData() (Return the currently set object data)
method getDataField [line 246]
The getDataField(
$offset,
$key, [
$default = null])
|
|
Generic function to retrieve
Tags:
Overrides PNObject::getDataField() (Generic function to retrieve)
Parameters:
method getHash [line 459]
void getHash(
[
$includeStandardFields = true], [
$objArray = null])
|
|
Get the hashcode for this object data array
Overrides PNObject::getHash() (Get the hashcode for this object data)
Parameters:
method getSelector [line 404]
The getSelector(
name
$name, [selected
$selected = -1234], [defaultValue
$defaultValue = 0], [defaultText
$defaultText = ''], [allValue
$allValue = 0], [allText
$allText = ''], [idField
$idField = 'id'], [nameField
$nameField = 'title'], [submit
$submit = false], [ignoreList
$ignoreList = null])
|
|
Get a selector for the object array
Tags:
Parameters:
method getWhere [line 156]
The getWhere(
[where
$where = ''], [sort
$sort = ''], [limitOffset
$limitOffset = -1], [limitNumRows
$limitNumRows = -1], [assocKey
$assocKey = null], [force
$force = false], [distinct
$distinct = false])
|
|
Return/Select the object using the given where clause.
Tags:
Overrides PNObject::getWhere() (Return/Select the object using the given where clause.)
Parameters:
method insert [line 280]
Generic insert handler for an object (ID is inserted into the object data)
Tags:
Overrides PNObject::insert() (Generic insert handler for an object (ID is inserted into the object data))
method save [line 262]
Save an object - if it has an ID update it, otherwise insert it
Tags:
Overrides PNObject::save() (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)
method select [line 210]
The select(
[where
$where = ''], [orderBy
$orderBy = ''], [limitOffset
$limitOffset = -1], [limitNumRows
$limitNumRows = -1], [assocKey
$assocKey = false], [distinct
$distinct = false])
|
|
Generic select handler for an object. Select (and set) the specified object array
Tags:
Overrides PNObject::select() (Select the object from the database using the specified key (and field))
Parameters:
method selectPostProcess [line 236]
method setData [line 100]
void setData(
data
$data)
|
|
Set (and return) the object data. Since we dont' have a definitive key, we don't cache
Overrides PNObject::setData() (Set (and return) the object data.)
Parameters:
method update [line 302]
Generic upate handler for an object
Tags:
Overrides PNObject::update() (Generic upate handler for an object)
method validate [line 441]
Constructur, init everything to sane defaults and handle parameters
Tags:
Overrides PNObject::validate() (Generic function to validate an object)
method _init [line 56]
void _init(
[init
$init = null], [where
$where = ''], [orderBy
$orderBy = ''], [assocKey
$assocKey = null])
|
|
Internal intialization routine
Overrides PNObject::_init() (Internal intialization routine)
Parameters:
|
|