diff options
author | momo-i <webmaster@momo-i.org> | 2011-02-03 14:03:16 +0900 |
---|---|---|
committer | momo-i <webmaster@momo-i.org> | 2011-02-03 14:03:16 +0900 |
commit | 9ce63661d1ce941dee468cec6fe197534a636f40 (patch) | |
tree | 2c89d117befdad5dfab8948979897a39d667db48 /lib/class/config.class.php | |
parent | 7ef24e84c6986a07be5144df4b67186f78f99d61 (diff) | |
download | ampache-9ce63661d1ce941dee468cec6fe197534a636f40.tar.gz ampache-9ce63661d1ce941dee468cec6fe197534a636f40.tar.bz2 ampache-9ce63661d1ce941dee468cec6fe197534a636f40.zip |
Fixed indent and add translation words
Diffstat (limited to 'lib/class/config.class.php')
-rw-r--r-- | lib/class/config.class.php | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/class/config.class.php b/lib/class/config.class.php index d05d9125..9111416d 100644 --- a/lib/class/config.class.php +++ b/lib/class/config.class.php @@ -54,10 +54,18 @@ */ class Config { - // These are the settings for this specific class + /** + * These are the settings for this specific class + * + * @var array + */ private $_local = array(); - // These are the global settings they go where it goes + /** + * These are the global settings they go where it goes + * + * @var array + */ private static $_global = array(); /** @@ -74,6 +82,9 @@ class Config { * get * This checks to see if this is an instance or procedure * call, procedure == global, instance == local + * + * @param string $name + * @return mixed array or null */ public static function get($name) { @@ -85,6 +96,8 @@ class Config { /** * get_all * This returns all of the current config variables as an array + * + * @return array */ public static function get_all() { @@ -96,6 +109,11 @@ class Config { * set * This checks to see if this is an instance or procedure calls * and then sets the correct variable based on that + * + * @param string $name Key name + * @param string $value Value name + * @param integer $clobber Clobber flag 0 or 1 + * @return void */ public static function set($name, $value, $clobber = 0) { @@ -112,6 +130,9 @@ class Config { /** * set_by_array * This is the same as the set function except it takes an array as input + * + * @param array $array Array + * @param integer $clobber Clobber flag 0 or 1 */ public static function set_by_array($array, $clobber = 0) { |