Trait yii\base\StaticInstanceTrait
Implemented by | kartik\dynagrid\models\DynaGridConfig, kartik\dynagrid\models\DynaGridSettings, kartik\ipinfo\IpInfoModel, kartik\tree\models\Tree, yii\base\DynamicModel, yii\base\Model, yii\data\ActiveDataFilter, yii\data\DataFilter, yii\db\ActiveRecord, yii\db\BaseActiveRecord, yii\debug\models\Router, yii\debug\models\UserSwitch, yii\debug\models\router\ActionRoutes, yii\debug\models\router\CurrentRoute, yii\debug\models\router\RouterRules, yii\debug\models\search\Base, yii\debug\models\search\Db, yii\debug\models\search\Debug, yii\debug\models\search\Event, yii\debug\models\search\Log, yii\debug\models\search\Mail, yii\debug\models\search\Profile, yii\debug\models\search\User, yii\debug\models\timeline\Search, yii\gii\Generator, yii\gii\generators\controller\Generator, yii\gii\generators\crud\Generator, yii\gii\generators\extension\Generator, yii\gii\generators\form\Generator, yii\gii\generators\model\Generator, yii\gii\generators\module\Generator, yii\httpclient\debug\SearchModel, yii\queue\gii\Generator |
Available since version | 2.0.13 |
Source Code |
https://github.com/yiisoft/yii2/blob/master/framework/base/StaticInstanceTrait.php |
Method Details
Returns static class instance, which can be used to obtain meta information.
public static static instance ( $refresh = false ) |
$refresh |
boolean |
Whether to re-create static instance even, if it is already cached.
|
return |
static |
Class instance.
|