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

Public Member Functions

create ($isNew=true)
 
 delete (&$config)
 
get ($id)
 
 getCount ($criteria=null)
 
 getObjects ($criteria=null, $id_as_key=false)
 
 insert (&$config)
 
- 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

XOOPS configuration handler class.

This class is responsible for providing data access mechanisms to the data source of XOOPS configuration class objects.

Author
Kazumi Ono onoka.nosp@m.zu@x.nosp@m.oops..nosp@m.org

Definition at line 253 of file configitem.php.

Member Function Documentation

& XoopsConfigItemHandler::create (   $isNew = true)

Create a new XoopsConfigItem

See Also
XoopsConfigItem
Parameters
bool$isNewFlag the config as "new"?
Returns
object reference to the new config

Definition at line 262 of file configitem.php.

References $config.

XoopsConfigItemHandler::delete ( $config)

Delete a config from the database

Parameters
object&$configConfig to delete
Returns
bool Successful?

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

Definition at line 341 of file configitem.php.

References $config, $result, and $sql.

& XoopsConfigItemHandler::get (   $id)

Load a config from the database

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

Definition at line 277 of file configitem.php.

References $config, $result, and $sql.

XoopsConfigItemHandler::getCount (   $criteria = null)

Count configs

Parameters
object$criteriaCriteriaElement
Returns
int Count of configs matching $criteria

Definition at line 397 of file configitem.php.

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

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

Get configs from the database

Parameters
object$criteriaCriteriaElement
bool$id_as_keyreturn the config's id as key?
Returns
array Array of XoopsConfigItem objects

Definition at line 363 of file configitem.php.

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

XoopsConfigItemHandler::insert ( $config)

Write a config to the database

Parameters
object&$configXoopsConfigItem object
Returns
mixed FALSE on fail.

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

Definition at line 302 of file configitem.php.

References $config, $result, and $sql.


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