Clean up temporary uploaded package and unpacked extension
	
	
	
		static boolean
		
			cleanupInstall
		
					(string $package, string $resultdir)
			
	
			
					- 
				string
				$package: Path to the uploaded package file			
 
					- 
				string
				$resultdir: Path to the unpacked extension			
 
				
		
			
	 
	
	 
	
	
Method to detect the extension type from a package directory
	
	
	
		static mixed
		
			detectType
		
					(string $p_dir)
			
	
			
					- 
				string
				$p_dir: Path to package directory			
 
				
		
			
	 
	
	 
	
	
Downloads a package
	
	
	
		static mixed
		
			downloadPackage
		
					(string $url, [string $target = false])
			
	
			
					- 
				string
				$url: URL of file to download			
 
					- 
				string
				$target: Download target filename [optional]			
 
				
		
			
	 
	
	 
	
	
Gets a file name out of a url
	
	
	
		static mixed
		
			getFilenameFromURL
		
					(string $url)
			
	
			
					- 
				string
				$url: URL to get name from			
 
				
		
			
	 
	
	 
	
	
Splits contents of a sql file into array of discreet queries.
Queries need to be delimited with end of statement marker ';'
	
	
	
		static array
		
			splitSql
		
					(string $query)
			
	
			
					- 
				string
				$query: The SQL statement.			
 
				
		
			
	 
	
	 
	
	
Unpacks a file and verifies it as a Joomla element package  Supports .gz .tar .tar.gz and .zip
	
	
	
		static mixed
		
			unpack
		
					(string $p_filename, [boolean $alwaysReturnArray = false])
			
	
			
					- 
				string
				$p_filename: The uploaded package filename or install directory			
 
					- 
				boolean
				$alwaysReturnArray: If should return false (and leave garbage behind) or return $retval['type']=false