Class Update

Description

Update class

  • author: DevilDev

Located in /update/Update.php (line 8)

Modules
   |
   --Update
Variable Summary
Method Summary
static Update getInstance ()
boolean check_updates ([boolean $return = false])
string check_version ([boolean $all = false])
void copyDirs ( $tmpPathForArchive,  $theme_name)
void create_theme_archive ([ $theme_name = null])
void InstallModules ( $params)
void installUpdates ( $dir,  $to, [ $allow = false])
string|boolean install_themes ()
void loadAdminHtml ()
void loadFile ( $file)
void set_version (string $version)
boolean update_files ()
void _saveFile (string $currentFireDir, string $curPath)
Variables
static Update $_instance = null (line 15)

Singleton instance

  • access: protected
Methods
static method getInstance (line 31)

Returns an instance of Update

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Update getInstance ()
check_updates (line 261)

Check new version CMS

  • access: public
boolean check_updates ([boolean $return = false])
  • boolean $return: if required return data
check_version (line 222)

Check current CMS version

  • return: current version or array
  • access: public
string check_version ([boolean $all = false])
  • boolean $all: if required returned array
copyDirs (line 629)
  • access: protected
void copyDirs ( $tmpPathForArchive,  $theme_name)
  • $tmpPathForArchive
  • $theme_name
create_theme_archive (line 625)
  • access: public
void create_theme_archive ([ $theme_name = null])
  • $theme_name
installModuleManual (line 796)
  • access: public
void installModuleManual ()
InstallModules (line 669)
  • access: public
void InstallModules ( $params)
  • $params
installUpdates (line 513)
void installUpdates ( $dir,  $to, [ $allow = false])
  • $dir
  • $to
  • $allow
install_themes (line 620)

Start instaling new theme

  • return: theme name or false
  • access: public
string|boolean install_themes ()
loadAdminHtml (line 70)
  • access: public
void loadAdminHtml ()
loadFile (line 431)
void loadFile ( $file)
  • $file
loadInstallModulesHtml (line 52)
  • access: public
void loadInstallModulesHtml ()
set_version (line 249)

Set current CMS version

  • access: public
void set_version (string $version)
  • string $version
update_files (line 308)

Load update files and start update progress

  • return: TRUE if success or FALSE
  • access: public
boolean update_files ()
_saveFile (line 569)

Copy files for current path

  • access: protected
void _saveFile (string $currentFireDir, string $curPath)
  • string $currentFireDir
  • string $curPath

Documentation generated on Fri, 19 Aug 2016 17:10:41 +0200 by phpDocumentor 1.4.3