BaseYii createObject()

createObject() public static method Creates a new object using the given configuration. You may view this method as an enhanced version of the new operator. The method supports creating an object based on a class name, a configuration array or an anonymous function. Below are some usage examples: // create an object using a class name $object = Yii::createObject('yii\db\Connection'); // create an object using a configuration array $object = Yii::createObject([ 'class' => 'yii\db\Con

data\DataProviderInterface getKeys()

getKeys() public abstract method Returns the key values associated with the data models. public abstract array getKeys ( )return array The list of key values corresponding to models. Each data model in models is uniquely identified by the corresponding key value in this array.

console\controllers\CacheController actionFlushSchema()

actionFlushSchema() public method (available since version 2.0.1) Clears DB schema cache for a given connection component. # clears cache schema specified by component id: "db" yii cache/flush-schema db public integer actionFlushSchema ( $db = 'db' )$db string Id connection component return integer Exit code throws yii\console\Exception throws yii\base\InvalidConfigException

caching\ExpressionDependency generateDependencyData()

generateDependencyData() protected method Generates the data needed to determine if dependency has been changed. This method returns the result of the PHP expression. protected mixed generateDependencyData ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return mixed The data needed to determine if dependency has been changed.

web\User checkRedirectAcceptable()

checkRedirectAcceptable() protected method (available since version 2.0.8) Checks if the Accept header contains a content type that allows redirection to the login page. The login page is assumed to serve text/html or application/xhtml+xml by default. You can change acceptable content types by modifying $acceptableRedirectTypes property. See also $acceptableRedirectTypes. protected boolean checkRedirectAcceptable ( )return boolean Whether this request may be redirected to the login page.

elasticsearch\ActiveDataProvider prepareTotalCount()

prepareTotalCount() protected method Returns a value indicating the total number of data models in this data provider. protected integer prepareTotalCount ( )return integer Total number of data models in this data provider.

authclient\signature\RsaSha1 $privateCertificateFile

$privateCertificateFile public property Path to the file, which holds private key certificate. public string $privateCertificateFile = ''

base\Application $bootstrap

$bootstrap public property List of components that should be run during the application bootstrapping process. Each component may be specified in one of the following formats: an application component ID as specified via $components. a module ID as specified via $modules. a class name. a configuration array. During the bootstrapping process, each component will be instantiated. If the component class implements yii\base\BootstrapInterface, its bootstrap() method will be also be called. pub

widgets\BaseListView $emptyTextOptions

$emptyTextOptions public property The HTML attributes for the emptyText of the list view. The "tag" element specifies the tag name of the emptyText element and defaults to "div". See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $emptyTextOptions = ['class' => 'empty']

web\Session offsetExists()

offsetExists() public method This method is required by the interface ArrayAccess. public boolean offsetExists ( $offset )$offset mixed The offset to check on