XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsConfigOptionHandler Class Reference
Inheritance diagram for XoopsConfigOptionHandler:
Inheritance graph

Public Member Functions

create ($isNew=true)
 
 delete (&$confoption)
 
get ($id)
 
 getObjects ($criteria=null, $id_as_key=false)
 
 insert (&$confoption)
 
- Public Member Functions inherited from XoopsObjectHandler
create ()
 
 delete (&$object)
 
get ($int_id)
 
 insert (&$object)
 
 XoopsObjectHandler (&$db)
 

Additional Inherited Members

- Public Attributes inherited from XoopsObjectHandler
 $db
 

Detailed Description

Definition at line 96 of file configoption.php.

Member Function Documentation

& XoopsConfigOptionHandler::create (   $isNew = true)

Create a new option

Parameters
bool$isNewFlag the option as "new"?
Returns
object XoopsConfigOption

Definition at line 105 of file configoption.php.

XoopsConfigOptionHandler::delete ( $confoption)

Delete an option

Parameters
object&$confoptionreference to a XoopsConfigOption
Returns
bool TRUE if successful

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 184 of file configoption.php.

References $result, and $sql.

& XoopsConfigOptionHandler::get (   $id)

Get an option from the database

Parameters
int$idID of the option
Returns
object reference to the XoopsConfigOption, FALSE on fail

Definition at line 121 of file configoption.php.

References $result, and $sql.

XoopsConfigOptionHandler::getObjects (   $criteria = null,
  $id_as_key = false 
)

Get some XoopsConfigOptions

Parameters
object$criteriaCriteriaElement
bool$id_as_keyUse the IDs as array-keys?
Returns
array Array of XoopsConfigOptions

Definition at line 207 of file configoption.php.

References $criteria, $limit, $result, $ret, $sql, and $start.

XoopsConfigOptionHandler::insert ( $confoption)

Insert a new option in the database

Parameters
object&$confoptionreference to a XoopsConfigOption
Returns
bool TRUE if successfull.

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 145 of file configoption.php.

References $result, and $sql.


The documentation for this class was generated from the following file: