XBS_MODGEN
[ class tree: XBS_MODGEN ] [ index: XBS_MODGEN ] [ all elements ]

Class: Xbs_ModgenXBS_MODGENConfigHandler

Source Location: /class/XBS_MODGENConfig.php

Class Overview

CDMBaseHandler
   |
   --Xbs_ModgenXBS_MODGENConfigHandler

Object handler for XBS_MODGENConfig


Methods



Class Details

[line 71]
Object handler for XBS_MODGENConfig



[ Top ]


Class Methods


constructor Xbs_ModgenXBS_MODGENConfigHandler [line 78]

Xbs_ModgenXBS_MODGENConfigHandler Xbs_ModgenXBS_MODGENConfigHandler( xoopsDB &$db)

Constructor



Parameters:

xoopsDB   &$db   Handle to xoopsDb object

[ Top ]

method countConfigs [line 184]

int countConfigs( int $modid)

Function: Count the number of Modules



Tags:

return:  number of modules
version:  1


Parameters:

int   $modid   id of parent module

[ Top ]

method delete [line 171]

bool delete( xbs_modgen_Config &$obj)

Delete config item from the database

OVERIDE ancestor




Tags:

return:  TRUE on success else False


Parameters:

xbs_modgen_Config   $obj   Handle to config object

[ Top ]

method getAllConfigs [line 214]

array getAllConfigs( int $modid)

Return all config item objects for a module



Tags:

return:  Config objects


Parameters:

int   $modid   Module internal identifier

[ Top ]

method getKey [line 119]

int getKey( string $modname, string $configname)

Get internal identifier (primary key) based on user visible code



Tags:

return:  Internal identifier of module else false on failure


Parameters:

string   $modname   Name of module
string   $configname   Name of config item

[ Top ]

method getSelectList [line 198]

array getSelectList( int $modid)

return an array of Id, configName pairs for use in a select box



Parameters:

int   $modid   id of parent module

[ Top ]

method _get [line 106]

string &_get( int $id, string $row_flag, string $lang)

Returns sql code to get a config data record

OVERIDE ancestor




Tags:

return:  SQL string to get data


Parameters:

int   $id   internal id of the object. Internal code is a unique int value.
string   $row_flag   default null (get all), Option(CDM_RSTAT_ACT, CDM_RSTAT_DEF, CDM_RSTAT_SUS)
string   $lang   default null (get all), Valid LANGUAGE code. Will only return object of that language set

[ Top ]

method _ins_insert [line 142]

string _ins_insert( array $cleanVars)

Function: return sql to insert module to database

OVERIDE ancestor




Tags:

return:  SQL insert string
version:  1


Parameters:

array   $cleanVars   module parameters array

[ Top ]

method _ins_update [line 157]

string _ins_update( array $cleanVars)

Function: return sql to update module to database

OVERIDE ancestor




Tags:

return:  SQL insert string
version:  1


Parameters:

array   $cleanVars   module parameters array

[ Top ]


Documentation generated on Sun, 16 Jul 2006 11:02:47 +0100 by phpDocumentor 1.3.0RC3