Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JInstallerHelper

Description

Installer helper class

Located in /joomla/installer/installer.php (line 1198)

Class JInstallerHelper   (Subpackage Installer)
Method Summary
Static method static boolean cleanupInstall ( $package, string $resultdir, string $p_file)
Static method static mixed detectType (string $p_dir)
Static method static mixed downloadPackage (string $url, [string $target = false])
Static method static mixed getFilenameFromURL (string $url)
Static method static boolean unpack (string $p_filename)
Method array splitSql (string $sql)
Methods
cleanupInstall (line 1414)

Clean up temporary uploaded package and unpacked extension

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

Method to detect the extension type from a package directory

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

Downloads a package

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

Gets a file name out of a url

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

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 1274)

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

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

Documentation generated on Mon, 05 Mar 2007 21:08:42 +0000 by phpDocumentor 1.3.1