XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
ModuleInstaller Class Reference
Inheritance diagram for ModuleInstaller:
DirectModuleInstaller FTPModuleInstaller PHPFTPModuleInstaller SFTPModuleInstaller

Public Member Functions

 setServerUrl ($url)
 
 uninstall ()
 
 setPassword ($ftp_password)
 
 _download ()
 
 uninstallModule ()
 
 installModule ()
 
 install ()
 
 _unPack ()
 
 _removeDir ($path)
 

Public Attributes

 $package = NULL
 
 $base_url
 
 $temp_dir = './files/cache/autoinstall/'
 
 $target_path
 
 $download_file
 
 $url
 
 $download_path
 
 $ftp_password
 

Detailed Description

Module installer

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com)

Definition at line 10 of file autoinstall.lib.php.

Member Function Documentation

ModuleInstaller::_download ( )

Download file from server

Returns
void

Definition at line 117 of file autoinstall.lib.php.

ModuleInstaller::_removeDir (   $path)

Remove directory

Parameters
string$pathPath to remove
Returns
BaseObject

Definition at line 276 of file autoinstall.lib.php.

ModuleInstaller::_unPack ( )

Untar a downloaded tar ball

Returns
array Returns file list

Definition at line 250 of file autoinstall.lib.php.

ModuleInstaller::install ( )

Install module.

Download file and install module

Returns
BaseObject

Definition at line 229 of file autoinstall.lib.php.

ModuleInstaller::installModule ( )

Install module

Call module's moduleInstall(), moduleUpdate() and create tables.

Returns
void

Definition at line 192 of file autoinstall.lib.php.

ModuleInstaller::setPassword (   $ftp_password)

Set a FTP password

Parameters
string$ftp_passwordThe password to set.
Returns
void

Definition at line 107 of file autoinstall.lib.php.

ModuleInstaller::setServerUrl (   $url)

Set server's base url

Parameters
string$urlThe url to set
Returns
void

Definition at line 67 of file autoinstall.lib.php.

ModuleInstaller::uninstall ( )

Uninstall

Returns
BaseObject

Definition at line 77 of file autoinstall.lib.php.

ModuleInstaller::uninstallModule ( )

Uninstall module.

Call module's moduleUninstall() and drop all tables related module

Returns
BaseObject

Definition at line 150 of file autoinstall.lib.php.

Member Data Documentation

ModuleInstaller::$base_url

Definition at line 23 of file autoinstall.lib.php.

ModuleInstaller::$download_file

Definition at line 41 of file autoinstall.lib.php.

ModuleInstaller::$download_path

Definition at line 53 of file autoinstall.lib.php.

ModuleInstaller::$ftp_password

Definition at line 59 of file autoinstall.lib.php.

ModuleInstaller::$package = NULL

Definition at line 17 of file autoinstall.lib.php.

ModuleInstaller::$target_path

Definition at line 35 of file autoinstall.lib.php.

ModuleInstaller::$temp_dir = './files/cache/autoinstall/'

Definition at line 29 of file autoinstall.lib.php.

ModuleInstaller::$url

Definition at line 47 of file autoinstall.lib.php.


The documentation for this class was generated from the following file: