db\MigrationInterface down()

down() public abstract method This method contains the logic to be executed when removing this migration. The default implementation throws an exception indicating the migration cannot be removed. public abstract boolean down ( )return boolean Return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.

console\Controller getActionHelpSummary()

getActionHelpSummary() public method Returns a one-line short summary describing the specified action. public string getActionHelpSummary ( $action )$action yii\base\Action Action to get summary for return string A one-line short summary describing the specified action.

console\Controller $passedOptions

$passedOptions public read-only property The names of the options passed during execution public array getPassedOptions ( )

console\Controller select()

select() public method Gives the user an option to choose from. Giving '?' as an input will show a list of options to choose from and their explanations. public string select ( $prompt, $options = [] )$prompt string The prompt message $options array Key-value array of options to choose from return string An option character the user chose

BaseYii $app

$app public static property The application instance public static yii\console\Application|yii\web\Application $app = null

debug\Module $panels

$panels public property List of debug panels. The array keys are the panel IDs, and values are the corresponding panel class names or configuration arrays. This will be merged with corePanels(). You may reconfigure a core panel via this property by using the same panel ID. You may also disable a core panel by setting it to be false in this property. public array|yii\debug\Panel[] $panels = []

console\controllers\MessageController extractMessages()

extractMessages() protected method Extracts messages from a file protected array extractMessages ( $fileName, $translator, $ignoreCategories = [] )$fileName string Name of the file to extract messages from $translator string Name of the function used to translate messages $ignoreCategories array Message categories to ignore. This parameter is available since version 2.0.4.

console\controllers\MigrateController $generatorTemplateFiles

$generatorTemplateFiles public property (available since version 2.0.7) A set of template paths for generating migration code automatically. The key is the template type, the value is a path or the alias. Supported types are: create_table: table creating template drop_table: table dropping template add_column: adding new column template drop_column: dropping column template create_junction: create junction template public array $generatorTemplateFiles = ['create_table' => '@yii/vie

caching\ArrayCache addValue()

addValue() protected method Stores a value identified by a key into cache if the cache does not contain this key. This method should be implemented by child classes to store the data in specific cache storage. protected boolean addValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value mixed The value to be cached. Most often it's a string. If you have disabled $serializer, it could be something else. $duration integer The number of seconds in w

console\controllers\AssetController saveTargets()

saveTargets() protected method Saves new asset bundles configuration. protected void saveTargets ( $targets, $bundleFile )$targets yii\web\AssetBundle[] List of asset bundles to be saved. $bundleFile string Output file name. throws yii\console\Exception on failure.