Class JInstallerHelper

Description

Installer helper class

Located in /installer/installer.php (line 1044)


	
			
Method Summary
 boolean cleanupInstall (string $p_file, string $resultdir)
 mixed detectType (string $p_dir)
 mixed downloadPackage (string $url, [string $target = false])
 mixed getFilenameFromURL (string $url)
 array splitSql (string $sql)
 boolean unpack (string $p_filename)
Methods
cleanupInstall (line 1304)

Clean up temporary uploaded package and unpacked extension

  • return: True on success
  • since: 1.1
  • static:
boolean cleanupInstall (string $p_file, string $resultdir)
  • string $p_file: Path to the uploaded package file
  • string $resultdir: Path to the unpacked extension
detectType (line 1241)

Method to detect the extension type from a package directory

  • return: Extension type string or boolean false on fail
  • since: 1.1
  • static:
mixed detectType (string $p_dir)
  • string $p_dir: Path to package directory
downloadPackage (line 1055)

Downloads a package

  • return: Path to downloaded package or boolean false on failure
  • since: 1.1
  • static:
mixed downloadPackage (string $url, [string $target = false])
  • string $url: URL of file to download
  • string $target: Download target filename [optional]
getFilenameFromURL (line 1287)

Gets a file name out of a url

  • return: String filename or boolean false if failed
  • since: 1.1
  • static:
mixed getFilenameFromURL (string $url)
  • string $url: URL to get name from
splitSql (line 1332)

Splits contents of a sql file into array of discreet queries

queries need to be delimited with end of statement marker ';'

array splitSql (string $sql)
  • string $sql
unpack (line 1116)

Unpacks a file and verifies it as a Joomla element package

  • return: True on success, False on error
  • since: 1.1
  • static:
boolean unpack (string $p_filename)
  • string $p_filename: The uploaded package filename or install directory

Documentation generated on Sat, 4 Feb 2006 14:24:05 +0100 by phpDocumentor 1.3.0RC4