API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsConfigItemHandler Class Reference
Inheritance diagram for XoopsConfigItemHandler:
Collaboration diagram for XoopsConfigItemHandler:

Public Member Functions

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

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

Member Function Documentation

◆ create()

create (   $isNew = true)

Create a new XoopsConfigItem

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

◆ delete()

delete ( XoopsObject  $config)

Delete a config from the database

Parameters
XoopsObject | XoopsConfigItem$configa XoopsConfigCategory object
Returns
bool true on success, otherwise false

Reimplemented from XoopsObjectHandler.

◆ get()

get (   $id)

Load a config from the database

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

Reimplemented from XoopsObjectHandler.

◆ getCount()

getCount ( CriteriaElement  $criteria = null)

Count configs

Parameters
CriteriaElement | CriteriaCompo$criteriaCriteriaElement
Returns
int Count of configs matching $criteria

◆ getObjects()

getObjects ( CriteriaElement  $criteria = null,
  $id_as_key = false 
)

Get configs from the database

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

◆ insert()

insert ( XoopsObject  $config)

Write a config to the database

Parameters
XoopsObject | XoopsConfigItem$configa XoopsConfigCategory object
Returns
bool true on success, otherwise false

Reimplemented from XoopsObjectHandler.


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