API - XOOPS 2.5.11 Beta 2
By monxoops.fr
UpgradeControl Class Reference

Public Member Functions

 getDirList ($dirname)
 
 availableLanguages ()
 
 loadLanguage ($domain, $language=null)
 
 determineLanguage ()
 
 countUpgradeQueue ()
 
 getNextPatch ()
 
 oneButtonContinueForm ($action='index.php', $parameters=array('action'=> 'next'))
 
 storeMainfileCheck ($needMainfileRewrite, $mainfileKeys)
 

Data Fields

 $upgradeQueue = array()
 
 $needWriteFiles = array()
 
 $needUpgrade = false
 
 $supportSites = array()
 
 $needMainfileRewrite = false
 
 $mainfileKeys = array()
 
 $upgradeLanguage
 

Member Function Documentation

◆ availableLanguages()

availableLanguages ( )
Returns
string[]
Here is the call graph for this function:

◆ countUpgradeQueue()

countUpgradeQueue ( )

Get count of patch sets that need to be applied.

Returns
int count of patch sets to apply

◆ determineLanguage()

determineLanguage ( )

Determine the language to use.

  • Xoops configuration
  • stored cookie
  • lang parameter passed to script Save the result in a cookie
Returns
string the language to use in the upgrade process
Here is the call graph for this function:

◆ getDirList()

getDirList (   $dirname)

get a list of directories inside a directory

Parameters
string$dirnamedirectory to search
Returns
string[]
Here is the caller graph for this function:

◆ getNextPatch()

getNextPatch ( )
Returns
string next unapplied patch directory

◆ loadLanguage()

loadLanguage (   $domain,
  $language = null 
)
Here is the caller graph for this function:

◆ oneButtonContinueForm()

oneButtonContinueForm (   $action = 'index.php',
  $parameters = array('action' =>'next') 
)

Return form consisting of a single button.

Parameters
string$actionURL for form action
array | null$parametersarray of parameters
Returns
string

◆ storeMainfileCheck()

storeMainfileCheck (   $needMainfileRewrite,
  $mainfileKeys 
)

Field Documentation

◆ $mainfileKeys

$mainfileKeys = array()

◆ $needMainfileRewrite

$needMainfileRewrite = false

◆ $needUpgrade

$needUpgrade = false

◆ $needWriteFiles

$needWriteFiles = array()

◆ $supportSites

$supportSites = array()

◆ $upgradeLanguage

$upgradeLanguage

◆ $upgradeQueue

$upgradeQueue = array()

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