Class: bBlogConfig

Source Location: /bblog/inc/bBlogConfig.class.php ( Revision Log )

Class bBlogConfig

Class Overview

bBlog.Config.class.php - manages the config table

Located in /bblog/inc/bBlogConfig.class.php [line 13]



		
				Author(s):
		
		
		
Information Tags:
License:  GNU General Public License
Copyright:  2005 Kenneth Power <kenneth.power@gmail.com>
Version:  $Id: $

Methods

[ Top ]
Method Summary
bBlogConfig   bBlogConfig()  
void   getPossibleValues()  
void   inputSelect()   Prepares a HTML input tag for display
void   inputText()   Create a text input tag for form display
void   loadConfiguration()   Fetch configuration from database and create cosntants
void   loadModifierValues()  
void   loadTemplateValues()  
void   saveConfiguration()   Save configuration to database
array   showConfigForm()   Retrieve configuration from database in form suitable for display in the admin form

[ Top ]
Methods
Constructor bBlogConfig  [line 14]

  bBlogConfig bBlogConfig( )



[ Top ]
getPossibleValues  [line 119]

  void getPossibleValues( mixed $values, mixed &$db  )



[ Top ]
inputSelect  [line 90]

  void inputSelect( string $name, array $values, [string $default = null]  )

Prepares a HTML input tag for display

Parameters:
string   $name:  Used to form the name attribute of the input tag
array   $values:  Current list of possible values
string   $default:  The default value


[ Top ]
inputText  [line 116]

  void inputText( mixed $name, [mixed $value = null]  )

Create a text input tag for form display



[ Top ]
loadConfiguration  [line 21]

  void loadConfiguration( object &$db  )

Fetch configuration from database and create cosntants

Parameters:
object   $db:  Instance of ezSQL, passed by reference


[ Top ]
loadModifierValues  [line 131]

  void loadModifierValues( mixed &$db  )



[ Top ]
loadTemplateValues  [line 141]

  void loadTemplateValues( )



[ Top ]
saveConfiguration  [line 37]

  void saveConfiguration( object $db  )

Save configuration to database

Parameters:
object   $db:  Instance of ezSQL, passed by reference


[ Top ]
showConfigForm  [line 62]

  array showConfigForm( object &$db  )

Retrieve configuration from database in form suitable for display in the admin form

Returned data format: index : pair left = Label displayed on form right = HTML Input tag already prepared for display

Parameters:
object   $db:  Instance of ezSQL, passed by reference

API Tags:
Return:  Indexed array of pairs


[ Top ]