XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsConfigItemHandler Class Reference
Inheritance diagram for XoopsConfigItemHandler:
XoopsObjectHandler

Public Member Functions

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

Additional Inherited Members

- Data Fields 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 283 of file configitem.php.

Member Function Documentation

◆ create()

& 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 293 of file configitem.php.

◆ delete()

delete ( & $config)

Delete a config from the database

Parameters
object&$configConfig to delete
Returns
bool Successful?

Reimplemented from XoopsObjectHandler.

Definition at line 381 of file configitem.php.

◆ get()

& get ( $id)

Load a config from the database

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

Reimplemented from XoopsObjectHandler.

Definition at line 308 of file configitem.php.

◆ getCount()

getCount ( $criteria = null)

Count configs

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

Definition at line 435 of file configitem.php.

◆ getObjects()

& 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 400 of file configitem.php.

◆ insert()

insert ( & $config)

Write a config to the database

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

Reimplemented from XoopsObjectHandler.

Definition at line 334 of file configitem.php.


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