[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/administrator/components/com_installer/ -> installer.class.php (sommaire)

(pas de description)

Copyright: Copyright (C) 2005 Open Source Matters. All rights reserved.
License: http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
Version: $Id: installer.class.php 5035 2006-09-14 01:22:50Z pasamio $
Poids: 505 lignes (15 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 5 fichiers
 administrator/includes/pcl/pcltrace.lib.php
 administrator/includes/pcl/pcltar.lib.php
 includes/Archive/Tar.php
 administrator/includes/pcl/pclzip.lib.php
 administrator/includes/pcl/pclerror.lib.php

Définit 1 class

mosInstaller:: (32 méthodes):
  mosInstaller()
  upload()
  extractArchive()
  findInstallFile()
  isPackageFile()
  readInstallFile()
  install()
  uninstall()
  returnTo()
  preInstallCheck()
  parseFiles()
  copyFiles()
  copySetupFile()
  setError()
  getError()
  setVar()
  installFilename()
  installType()
  error()
  xmlDoc()
  installArchive()
  installDir()
  unpackDir()
  isWindows()
  errno()
  hasInstallfile()
  installfile()
  elementDir()
  elementName()
  elementSpecial()
  cleanupInstall()
  deldir()


Classe: mosInstaller  - X-Ref

Installer class

mosInstaller()   X-Ref
Constructor


upload($p_filename = null, $p_unpack = true)   X-Ref
Uploads and unpacks a file

param: string The uploaded package filename or install directory
param: boolean True if the file is an archive file
return: boolean True on success, False on error

extractArchive()   X-Ref
Extracts the package archive file

return: boolean True on success, False on error

findInstallFile()   X-Ref
Tries to find the package XML file

return: boolean True on success, False on error

isPackageFile( $p_file )   X-Ref

param: string A file path
return: object A DOMIT XML document, or null if the file failed to parse

readInstallFile()   X-Ref
Loads and parses the XML setup file

return: boolean True on success, False on error

install()   X-Ref
Abstract install method


uninstall()   X-Ref
Abstract uninstall method


returnTo( $option, $element )   X-Ref
return to method


preInstallCheck( $p_fromdir, $type )   X-Ref

param: string Install from directory
param: string The install type
return: boolean

parseFiles( $tagName='files', $special='', $specialError='', $adminFiles=0 )   X-Ref

param: string The tag name to parse
param: string An attribute to search for in a filename element
param: string The value of the 'special' element if found
param: boolean True for Administrator components
return: mixed Number of file or False on error

copyFiles( $p_sourcedir, $p_destdir, $p_files, $overwrite=false )   X-Ref

param: string Source directory
param: string Destination directory
param: array array with filenames
param: boolean True is existing files can be replaced
return: boolean True on success, False on error

copySetupFile( $where='admin' )   X-Ref
Copies the XML setup file to the element Admin directory
Used by Components/Modules/Mambot Installer Installer

return: boolean True on success, False on error

setError( $p_errno, $p_error )   X-Ref

param: int The error number
param: string The error message

getError($p_full = false)   X-Ref

param: boolean True to display both number and message
param: string The error message
return: string

setVar( $name, $value=null )   X-Ref

param: string The name of the property to set/get
param: mixed The value of the property to set
return: The value of the property

installFilename( $p_filename = null )   X-Ref
Pas de description

installType( $p_installtype = null )   X-Ref
Pas de description

error( $p_error = null )   X-Ref
Pas de description

xmlDoc( $p_xmldoc = null )   X-Ref
Pas de description

installArchive( $p_filename = null )   X-Ref
Pas de description

installDir( $p_dirname = null )   X-Ref
Pas de description

unpackDir( $p_dirname = null )   X-Ref
Pas de description

isWindows()   X-Ref
Pas de description

errno( $p_errno = null )   X-Ref
Pas de description

hasInstallfile( $p_hasinstallfile = null )   X-Ref
Pas de description

installfile( $p_installfile = null )   X-Ref
Pas de description

elementDir( $p_dirname = null )   X-Ref
Pas de description

elementName( $p_name = null )   X-Ref
Pas de description

elementSpecial( $p_name = null )   X-Ref
Pas de description

cleanupInstall( $userfile_name, $resultdir)   X-Ref
Pas de description

deldir( $dir )   X-Ref
Pas de description



Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics