base\ArrayableTrait extraFields()

extraFields() public method Returns the list of fields that can be expanded further and returned by toArray(). This method is similar to fields() except that the list of fields returned by this method are not returned by default by toArray(). Only when field names to be expanded are explicitly specified when calling toArray(), will their values be exported. The default implementation returns an empty array. You may override this method to return a list of expandable fields based on some con

base\Arrayable toArray()

toArray() public abstract method Converts the object into an array. public abstract array toArray ( array $fields = [], array $expand = [], $recursive = true )$fields array The fields that the output array should contain. Fields not specified in fields() will be ignored. If this parameter is empty, all fields as specified in fields() will be returned. $expand array The additional fields that the output array should contain. Fields not specified in extraFields() will be ignored. If this

base\Arrayable fields()

fields() public abstract method Returns the list of fields that should be returned by default by toArray() when no specific fields are specified. A field is a named element in the returned array by toArray(). This method should return an array of field names or field definitions. If the former, the field name will be treated as an object property name whose value will be used as the field value. If the latter, the array key should be the field name while the array value should be the corres

base\Application __construct()

__construct() public method Constructor. public void __construct ( $config = [] )$config array Name-value pairs that will be used to initialize the object properties. Note that the configuration must contain both $id and $basePath. throws yii\base\InvalidConfigException if either $id or $basePath configuration is missing.

base\Application setVendorPath()

setVendorPath() public method Sets the directory that stores vendor files. public void setVendorPath ( $path )$path string The directory that stores vendor files.

base\Arrayable extraFields()

extraFields() public abstract method Returns the list of additional fields that can be returned by toArray() in addition to those listed in fields(). This method is similar to fields() except that the list of fields declared by this method are not returned by default by toArray(). Only when a field in the list is explicitly requested, will it be included in the result of toArray(). See also: toArray() fields() public abstract array extraFields ( )return array The list of expandable field

base\Application setRuntimePath()

setRuntimePath() public method Sets the directory that stores runtime files. public void setRuntimePath ( $path )$path string The directory that stores runtime files.

base\Application setBasePath()

setBasePath() public method Sets the root directory of the application and the @app alias. This method can only be invoked at the beginning of the constructor. public void setBasePath ( $path )$path string The root directory of the application. throws yii\base\InvalidParamException if the directory does not exist.

base\Application setTimeZone()

setTimeZone() public method Sets the time zone used by this application. This is a simple wrapper of PHP function date_default_timezone_set(). Refer to the php manual for available timezones. See also http://php.net/manual/en/function.date-default-timezone-set.php. public void setTimeZone ( $value )$value string The time zone used by this application.

base\Application registerErrorHandler()

registerErrorHandler() protected method Registers the errorHandler component as a PHP error handler. protected void registerErrorHandler ( &$config )$config array Application config