/** * Set or get a coreylib configuration setting. * @param mixed $option Can be either a string or an array of key/value configuration settings * @param mixed $value The value to assign * @return mixed If $value is null, then return the value stored by $option; otherwise, null. */ static function setting($option, $value = null) { if (!is_null($value) || is_array($option)) { if (is_array($option)) { self::$options = array_merge(self::$options, $option); } else { self::$options[$option] = $value; } } else { return @self::$options[$option]; } }