/** * @return Singleton instance of the filehandler */ public static function getInstance() { if (self::$singleton == null) { self::$singleton = new self(); } return self::$singleton; }