API Documentation for Yii 2.0
Trait yii\base\StaticInstanceTrait Method Detailsinstance()
public static methodReturns static class instance, which can be used to obtain meta information.
public static static instance ( $refresh = false ) $refresh booleanWhether to re-create static instance even, if it is already cached.
return staticClass instance.
public static function instance($refresh = false)
{
$className = get_called_class();
if ($refresh || !isset(self::$_instances[$className])) {
self::$_instances[$className] = Yii::createObject($className);
}
return self::$_instances[$className];
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4