/** * Static function to get the Instance of the Class Object * @param <String> $media Layout/Media * @return Vtiger_Viewer instance */ static function getInstance($media = '') { if (self::$instance) { return self::$instance; } $instance = new self($media); self::$instance = $instance; return $instance; }