base\Object __construct()

__construct() public method Constructor. The default implementation does two things: Initializes the object with the given configuration $config. Call init(). If this method is overridden in a child class, it is recommended that the last parameter of the constructor is a configuration array, like $config here. call the parent implementation at the end of the constructor. public void __construct ( $config = [] )$config array Name-value pairs that will be used to initialize the object prop

base\Object __call()

__call() public method Calls the named method which is not a class method. Do not call this method directly as it is a PHP magic method that will be implicitly called when an unknown method is being invoked. public mixed __call ( $name, $params )$name string The method name $params array Method parameters return mixed The method return value throws yii\base\UnknownMethodException when calling unknown method

base\Object className()

className() public static method Returns the fully qualified name of this class. public static string className ( )return string The fully qualified name of this class.

base\Object hasMethod()

hasMethod() public method Returns a value indicating whether a method is defined. The default implementation is a call to php function method_exists(). You may override this method when you implemented the php magic method __call(). public boolean hasMethod ( $name )$name string The method name return boolean Whether the method is defined

base\Object hasProperty()

hasProperty() public method Returns a value indicating whether a property is defined. A property is defined if: the class has a getter or setter method associated with the specified name (in this case, property name is case-insensitive); the class has a member variable with the specified name (when $checkVars is true); See also: canGetProperty() canSetProperty() public boolean hasProperty ( $name, $checkVars = true )$name string The property name $checkVars boolean Whether to treat mem

base\Object canSetProperty()

canSetProperty() public method Returns a value indicating whether a property can be set. A property is writable if: the class has a setter method associated with the specified name (in this case, property name is case-insensitive); the class has a member variable with the specified name (when $checkVars is true); See also canGetProperty(). public boolean canSetProperty ( $name, $checkVars = true )$name string The property name $checkVars boolean Whether to treat member variables as pro

base\Object canGetProperty()

canGetProperty() public method Returns a value indicating whether a property can be read. A property is readable if: the class has a getter method associated with the specified name (in this case, property name is case-insensitive); the class has a member variable with the specified name (when $checkVars is true); See also canSetProperty(). public boolean canGetProperty ( $name, $checkVars = true )$name string The property name $checkVars boolean Whether to treat member variables as pr

base\NotSupportedException getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

base\Module setVersion()

setVersion() public method (available since version 2.0.11) Sets current module version. public void setVersion ( $version )$version string|callable The version of this module. Version can be specified as a PHP callback, which can accept module instance as an argument and should return the actual version. For example: function (Module $module) { //return string }

base\Module __construct()

__construct() public method Constructor. public void __construct ( $id, $parent = null, $config = [] )$id string The ID of this module. $parent yii\base\Module The parent module (if any). $config array Name-value pairs that will be used to initialize the object properties.