add some phpdoc

This commit is contained in:
Manuel Raynaud
2014-03-17 14:55:26 +01:00
parent 0d6354debc
commit 99eb5c01f4
10 changed files with 74 additions and 10 deletions

View File

@@ -18,6 +18,16 @@ class ConfigQuery extends BaseConfigQuery
{
protected static $cache = array();
/**
*
* Find a config variable and return the value or default value if not founded.
*
* Use this method for better performance, a cache is created for each variable already searched
*
* @param $search
* @param null $default
* @return mixed
*/
public static function read($search, $default = null)
{
if (array_key_exists($search, self::$cache)) {