[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/kernel/ -> configitem.php (sommaire)

(pas de description)

Author: Kazumi Ono <onokazu@xoops.org>
Copyright: copyright (c) 2000-2003 XOOPS.org
Poids: 334 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

XoopsConfigItem:: (5 méthodes):
  XoopsConfigItem()
  getConfValueForOutput()
  setConfValueForInput()
  setConfOptions()
  getConfOptions()

XoopsConfigItemHandler:: (6 méthodes):
  create()
  get()
  insert()
  delete()
  getObjects()
  getCount()


Classe: XoopsConfigItem  - X-Ref


XoopsConfigItem()   X-Ref
Constructor


getConfValueForOutput()   X-Ref
Get a config value in a format ready for output

return: string

setConfValueForInput(&$value, $force_slash = false)   X-Ref
Set a config value

param: mixed   &$value Value
param: bool    $force_slash

setConfOptions($option)   X-Ref
Assign one or more {@link XoopsConfigItemOption}s

param: mixed   $option either a {@link XoopsConfigItemOption} object or an array of them

getConfOptions()   X-Ref
Get the {@link XoopsConfigItemOption}s of this Config

return: array   array of {@link XoopsConfigItemOption}

Classe: XoopsConfigItemHandler  - X-Ref

XOOPS configuration handler class.

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

create($isNew = true)   X-Ref
Create a new {@link XoopsConfigItem}

param: bool    $isNew  Flag the config as "new"?
return: object  reference to the new config

get($id)   X-Ref
Load a config from the database

param: int $id ID of the config
return: object  reference to the config, FALSE on fail

insert(&$config)   X-Ref
Write a config to the database

param: object  &$config    {@link XoopsConfigItem} object
return: mixed   FALSE on fail.

delete(&$config)   X-Ref
Delete a config from the database

param: object  &$config    Config to delete
return: bool    Successful?

getObjects($criteria = null, $id_as_key = false)   X-Ref
Get configs from the database

param: object  $criteria   {@link CriteriaElement}
param: bool    $id_as_key  return the config's id as key?
return: array   Array of {@link XoopsConfigItem} objects

getCount($criteria = null)   X-Ref
Count configs

param: object  $criteria   {@link CriteriaElement}
return: int     Count of configs matching $criteria



Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics