mongodb\gii\model\Generator generate()

generate() public method Generates the code based on the current user input and the specified code template files. This is the main method that child classes should implement. Please refer to yii\gii\generators\controller\Generator::generate() as an example on how to implement this method. public yii\gii\CodeFile[] generate ( )return yii\gii\CodeFile[] A list of code files to be created.

web\Application setHomeUrl()

setHomeUrl() public method public void setHomeUrl ( $value )$value string The homepage URL

db\pgsql\Schema findUniqueIndexes()

findUniqueIndexes() public method Returns all unique indexes for the given table. Each array element is of the following structure: [ 'IndexName1' => ['col1' [, ...]], 'IndexName2' => ['col2' [, ...]], ] public array findUniqueIndexes ( $table )$table yii\db\TableSchema The table metadata return array All unique indexes for the given table.

web\User setReturnUrl()

setReturnUrl() public method Remembers the URL in the session so that it can be retrieved back later by getReturnUrl(). public void setReturnUrl ( $url )$url string|array The URL that the user should be redirected to after login. If an array is given, yii\web\UrlManager::createUrl() will be called to create the corresponding URL. The first element of the array should be the route, and the rest of the name-value pairs are GET parameters used to construct the URL. For example, ['admin/in

validators\RequiredValidator $strict

$strict public property Whether the comparison between the attribute value and $requiredValue is strict. When this is true, both the values and types must match. Defaults to false, meaning only the values need to match. Note that when $requiredValue is null, if this property is true, the validator will check if the attribute value is null; If this property is false, the validator will call isEmpty() to check if the attribute value is empty. public boolean $strict = false

web\User getIdentity()

getIdentity() public method Returns the identity object associated with the currently logged-in user. When $enableSession is true, this method may attempt to read the user's authentication data stored in session and reconstruct the corresponding identity object, if it has not done so before. See also: login() logout() public yii\web\IdentityInterface|null getIdentity ( $autoRenew = true )$autoRenew boolean Whether to automatically renew authentication status if it has not been done so be

widgets\Menu $activateItems

$activateItems public property Whether to automatically activate items according to whether their route setting matches the currently requested route. See also isItemActive(). public boolean $activateItems = true

db\Schema getRawTableName()

getRawTableName() public method Returns the actual name of a given table name. This method will strip off curly brackets from the given table name and replace the percentage character '%' with yii\db\Connection::$tablePrefix. public string getRawTableName ( $name )$name string The table name to be converted return string The real name of the given table name

db\Schema createSavepoint()

createSavepoint() public method Creates a new savepoint. public void createSavepoint ( $name )$name string The savepoint name

db\pgsql\QueryBuilder resetSequence()

resetSequence() public method Creates a SQL statement for resetting the sequence value of a table's primary key. The sequence will be reset such that the primary key of the next new row inserted will have the specified value or 1. public string resetSequence ( $tableName, $value = null )$tableName string The name of the table whose primary key sequence will be reset $value mixed The value for the primary key of the next new row inserted. If this is not set, the next new row's primary k