BaseYii getObjectVars()

getObjectVars() public static method Returns the public member variables of an object. This method is provided such that we can get the public member variables of an object. It is different from "get_object_vars()" because the latter will return private and protected variables if it is called within the object itself. public static array getObjectVars ( $object )$object object The object to be handled return array The public member variables of the object

BaseYii getLogger()

getLogger() public static method public static yii\log\Logger getLogger ( )return yii\log\Logger Message logger

BaseYii getAlias()

getAlias() public static method Translates a path alias into an actual path. The translation is done according to the following procedure: If the given alias does not start with '@', it is returned back without change; Otherwise, look for the longest registered alias that matches the beginning part of the given alias. If it exists, replace the matching part of the given alias with the corresponding registered path. Throw an exception or return false, depending on the $throwException paramet

BaseYii error()

error() public static method Logs an error message. An error message is typically logged when an unrecoverable error occurs during the execution of an application. public static void error ( $message, $category = 'application' )$message string The message to be logged. $category string The category of the message.

BaseYii endProfile()

endProfile() public static method Marks the end of a code block for profiling. This has to be matched with a previous call to beginProfile() with the same category name. See also beginProfile(). public static void endProfile ( $token, $category = 'application' )$token string Token for the code block $category string The category of this log message

BaseYii createObject()

createObject() public static method Creates a new object using the given configuration. You may view this method as an enhanced version of the new operator. The method supports creating an object based on a class name, a configuration array or an anonymous function. Below are some usage examples: // create an object using a class name $object = Yii::createObject('yii\db\Connection'); // create an object using a configuration array $object = Yii::createObject([ 'class' => 'yii\db\Con

BaseYii configure()

configure() public static method Configures an object with the initial property values. public static object configure ( $object, $properties )$object object The object to be configured $properties array The property initial values given in terms of name-value pairs. return object The object itself

BaseYii beginProfile()

beginProfile() public static method Marks the beginning of a code block for profiling. This has to be matched with a call to endProfile() with the same category name. The begin- and end- calls must also be properly nested. For example, \Yii::beginProfile('block1'); // some code to be profiled \Yii::beginProfile('block2'); // some other code to be profiled \Yii::endProfile('block2'); \Yii::endProfile('block1'); See also endProfile(). public static void beginProfile ( $token, $

BaseYii autoload()

autoload() public static method Class autoload loader. This method is invoked automatically when PHP sees an unknown class. The method will attempt to include the class file according to the following procedure: Search in $classMap; If the class is namespaced (e.g. yii\base\Component), it will attempt to include the file associated with the corresponding path alias (e.g. @yii/base/Component.php); This autoloader allows loading classes that follow the PSR-4 standard and have its top-level na

BaseYii $container

$container public static property The dependency injection (DI) container used by createObject(). You may use yii\di\Container::set() to set up the needed dependencies of classes and their initial property values. See also: createObject() yii\di\Container public static yii\di\Container $container = null