public function Modernizr::__get in Modernizr 7.2
Implementation of the __get magic method.
If the feature is not detected, then ModernizrFeatureNotSupportedException will be thrown.
Parameters
string $name:
Return value
boolean
File
- ./
modernizr.inc, line 74
Class
- Modernizr
- Modernizr class.
Code
public function __get($name) {
if (isset($this->features[$name])) {
return $this->features[$name];
}
else {
throw new ModernizrFeatureNotSupportedException();
}
}