Exemplo n.º 1
0
 /**
  * reads data from settings
  *
  * @code
  * self::read('foo.bar')
  * @endcode
  *
  * @param string $name the name of the variable to read
  * @return mixed  the content of the requested variable or false if the variable does not exist
  */
 public static function read($name)
 {
     $settingsObj = self::getInstance();
     $value = ArrayUtils::getValue($settingsObj->data, $name);
     return is_null($value) ? false : $value;
 }