* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ class Settings { private static $instance = null; private $settings = array("debug" => false); protected function __construct() { } protected function __clone() { } public static function getInstance() { if(self::$instance == null) { self::$instance = new Settings(); } return self::$instance; } public function get($setting) { return $this->settings[$setting]; } } ?>