add some phpdoc
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user