/** * Standard singleton pattern. * @return \self Returns the current plugin instance. */ public static function GetInstance() { if (is_null(self::$_instance) || !self::$_instance instanceof self) { self::$_instance = new self(); } return self::$_instance; }