getInstance() публичный статический метод

If the module class is not currently requested, null will be returned. This method is provided so that you access the module instance from anywhere within the module.
public static getInstance ( ) : static | null
Результат static | null the currently requested instance of this module class, or `null` if the module class is not requested.
Пример #1
0
 /**
  * @return Module
  */
 public static function getInstance()
 {
     return parent::getInstance();
 }