getInstance() public static method

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
return static | null the currently requested instance of this module class, or `null` if the module class is not requested.
Beispiel #1
0
 /**
  * @return Module
  */
 public static function getInstance()
 {
     return parent::getInstance();
 }