Constructor
mosInstaller
mosInstaller
()
boolean
copyFiles
(string $p_sourcedir, string $p_destdir, array $p_files, [boolean $overwrite = false])
-
string
$p_sourcedir: Source directory
-
string
$p_destdir: Destination directory
-
array
$p_files: array with filenames
-
boolean
$overwrite: True is existing files can be replaced
Copies the XML setup file to the element Admin directory
Used by Components/Modules/Mambot Installer Installer
boolean
copySetupFile
([mixed $where = 'admin'])
void
elementDir
([mixed $p_dirname = null])
void
elementName
([mixed $p_name = null])
void
elementSpecial
([mixed $p_name = null])
void
errno
([mixed $p_errno = null])
void
error
([mixed $p_error = null])
Extracts the package archive file
boolean
extractArchive
()
Tries to find the package XML file
boolean
findInstallFile
()
string
getError
([boolean $p_full = false], string 1)
-
string
1: The error message
-
boolean
$p_full: True to display both number and message
void
hasInstallfile
([mixed $p_hasinstallfile = null])
Abstract install method
void
install
()
Redefined in descendants as:
void
installArchive
([mixed $p_filename = null])
void
installDir
([mixed $p_dirname = null])
void
installfile
([mixed $p_installfile = null])
void
installFilename
([mixed $p_filename = null])
void
installType
([mixed $p_installtype = null])
object A
isPackageFile
(string $p_file)
-
string
$p_file: A file path
mixed
parseFiles
([string $tagName = 'files'], [string $special = ''], [string $specialError = ''], boolean $adminFiles)
-
string
$tagName: The tag name to parse
-
string
$special: An attribute to search for in a filename element
-
string
$specialError: The value of the 'special' element if found
-
boolean
$adminFiles: True for Administrator components
boolean
preInstallCheck
(string $p_fromdir, string $type)
-
string
$p_fromdir: Install from directory
-
string
$type: The install type
Loads and parses the XML setup file
boolean
readInstallFile
()
return to method
void
returnTo
(mixed $option, mixed $element)
Redefined in descendants as:
void
setError
(int $p_errno, string $p_error)
-
int
$p_errno: The error number
-
string
$p_error: The error message
The
setVar
(string $name, [mixed $value = null])
-
string
$name: The name of the property to set/get
-
mixed
$value: The value of the property to set
Abstract uninstall method
void
uninstall
()
Redefined in descendants as:
void
unpackDir
([mixed $p_dirname = null])
Uploads and unpacks a file
boolean
upload
([string $p_filename = null], [boolean $p_unpack = true])
-
string
$p_filename: The uploaded package filename or install directory
-
boolean
$p_unpack: True if the file is an archive file
void
xmlDoc
([mixed $p_xmldoc = null])