XOOPS Docs - kernel
[ class tree: kernel ] [ index: kernel ] [ all elements ]

Class: XoopsConfigItemHandler

Source Location: /kernel/configitem.php

Class Overview

XoopsObjectHandler
   |
   --XoopsConfigItemHandler

XOOPS configuration handler class.


Author(s):

Copyright:

  • copyright (c) 2000-2003 XOOPS.org

Methods


Inherited Variables

Inherited Methods

Class: XoopsObjectHandler

XoopsObjectHandler::XoopsObjectHandler()
called from child classes only
XoopsObjectHandler::create()
creates a new object
XoopsObjectHandler::delete()
delete obejct from database
XoopsObjectHandler::get()
gets a value object
XoopsObjectHandler::insert()
insert/update object

Class Details

[line 178]
XOOPS configuration handler class.

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




Tags:

author:  Kazumi Ono <onokazu@xoops.org>
copyright:  copyright (c) 2000-2003 XOOPS.org


[ Top ]


Class Methods


method create [line 188]

object reference &create( [bool $isNew = true])

Create a new XoopsConfigItem



Tags:

return:  to the new config
see:  XoopsConfigItem


Overrides XoopsObjectHandler::create() (creates a new object)

Parameters:

bool   $isNew   Flag the config as "new"?

[ Top ]

method delete [line 264]

bool delete( object &$config)

Delete a config from the database



Tags:

return:  Successful?


Overrides XoopsObjectHandler::delete() (delete obejct from database)

Parameters:

object   &$config   Config to delete

[ Top ]

method get [line 203]

object reference &get( int $id)

Load a config from the database



Tags:

return:  to the config, FALSE on fail


Overrides XoopsObjectHandler::get() (gets a value object)

Parameters:

int   $id   ID of the config

[ Top ]

method getCount [line 317]

int getCount( [object $criteria = null])

Count configs



Tags:

return:  Count of configs matching $criteria


Parameters:

object   $criteria   CriteriaElement

[ Top ]

method getObjects [line 283]

array getObjects( [object $criteria = null], [bool $id_as_key = false])

Get configs from the database



Tags:

return:  Array of XoopsConfigItem objects


Parameters:

object   $criteria   CriteriaElement
bool   $id_as_key   return the config's id as key?

[ Top ]

method insert [line 228]

mixed insert( object &$config)

Write a config to the database



Tags:

return:  FALSE on fail.


Overrides XoopsObjectHandler::insert() (insert/update object)

Parameters:

object   &$config   XoopsConfigItem object

[ Top ]


XOOPS Docs generated by phpDocumentor