helpers\BaseUrl home()

home() public static method Returns the home URL. public static string home ( $scheme = false )$scheme boolean|string The URI scheme to use for the returned URL: false (default): returning a relative URL. true: returning an absolute base URL whose scheme is the same as that in yii\web\UrlManager::$hostInfo. string: returning an absolute URL with the specified scheme (either http or https). return string Home URL

validators\StringValidator validateValue()

validateValue() protected method Validates a value. A validator class can implement this method to support data validation out of the context of a data model. protected array|null validateValue ( $value )$value mixed The data value to be validated. return array|null The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid. throws yii\base\NotSupportedException if the validator does not supporting data validation withou

filters\PageCache $cacheCookies

$cacheCookies public property (available since version 2.0.4) A boolean value indicating whether to cache all cookies, or an array of cookie names indicating which cookies can be cached. Be very careful with caching cookies, because it may leak sensitive or private data stored in cookies to unwanted users. public boolean|array $cacheCookies = false

console\controllers\HelpController getScriptName()

getScriptName() protected method protected string getScriptName ( )return string The name of the cli script currently running.

db\QueryBuilder hasLimit()

hasLimit() protected method Checks to see if the given limit is effective. protected boolean hasLimit ( $limit )$limit mixed The given limit return boolean Whether the limit is effective

mail\MessageInterface attachContent()

attachContent() public abstract method Attach specified content as file for the email message. public abstract $this attachContent ( $content, array $options = [] )$content string Attachment file content. $options array Options for embed file. Valid options are: fileName: name, which should be used to attach file. contentType: attached file MIME type. return $this Self reference.

db\Connection $tablePrefix

$tablePrefix public property The common prefix or suffix for table names. If a table name is given as {{%TableName}}, then the percentage character % will be replaced with this property value. For example, {{%post}} becomes {{tbl_post}}. public string $tablePrefix = ''

web\Request getUserHost()

getUserHost() public method Returns the user host name. public string|null getUserHost ( )return string|null User host name, null if not available

helpers\BaseFileHelper getExtensionsByMimeType()

getExtensionsByMimeType() public static method Determines the extensions by given MIME type. This method will use a local map between extension names and MIME types. public static array getExtensionsByMimeType ( $mimeType, $magicFile = null )$mimeType string File MIME type. $magicFile string The path (or alias) of the file that contains all available MIME type information. If this is not set, the file specified by $mimeMagicFile will be used. return array The extensions corresponding

mongodb\Collection createIndex()

createIndex() public method Creates an index on the collection and the specified fields. public boolean createIndex ( $columns, $options = [] )$columns array|string Column name or list of column names. If array is given, each element in the array has as key the field name, and as value either 1 for ascending sort, or -1 for descending sort. You can specify field using native numeric key with the field name as a value, in this case ascending sort will be used. For example: [ 'name',