Source for file Settings.class.php
Documentation is available at Settings.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* A Settings Class can hold any number of Setting objects. Each Setting will be
* required to have a key associated with it. This will allow the program
* to access particular Setting Objects thru a key reference.
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Settings Interface
* Adds a setting, overwriting the original setting if exists
* @postcondition remove all non alpha-numeric (except underscores) characters from $key
* @param Gumbo_Interface_Setting $setting
* @param string $key reference key
public function addSetting (Gumbo_Interface_Setting $setting, $key);
* @postcondition clears all settings
* Returns the list of all Settings
* @return Gumbo_Interface_Setting[]
* Returns a single Setting object based on the key
* @return Gumbo_Interface_Setting
* Returns if a Setting exists