Class JInstallerHelper

Description

Installer helper class

  • abstract:
  • since: 11.1

Located in /libraries/joomla/installer/helper.php (line 24)


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

Clean up temporary uploaded package and unpacked extension

  • return: True on success
  • since: 11.1
  • access: public
static boolean cleanupInstall (string $package, string $resultdir)
  • string $package: Path to the uploaded package file
  • string $resultdir: Path to the unpacked extension
static method detectType (line 190)

Method to detect the extension type from a package directory

  • return: Extension type string or boolean false on fail
  • since: 11.1
  • access: public
static mixed detectType (string $p_dir)
  • string $p_dir: Path to package directory
static method downloadPackage (line 36)

Downloads a package

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

Gets a file name out of a url

  • return: String filename or boolean false if failed
  • since: 11.1
  • access: public
static mixed getFilenameFromURL (string $url)
  • string $url: URL to get name from
static method splitSql (line 287)

Splits contents of a sql file into array of discreet queries.

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

  • return: Array of queries
  • since: 11.1
  • access: public
static array splitSql (string $sql)
  • string $sql: The SQL statement.
static method unpack (line 117)

Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip

  • return: Two elements: extractdir and packagefile
  • since: 11.1
  • access: public
static array unpack (string $p_filename)
  • string $p_filename: The uploaded package filename or install directory

Documentation generated on Mon, 25 Jun 2012 13:55:24 -0500 by phpDocumentor 1.4.4