eZ Publish  [4.2]
ezwebincommon.php File Reference

Go to the source code of this file.

Enumerations

enum  EZ_INSTALL_PACKAGE_EXTRA_ACTION_QUIT
enum  EZ_INSTALL_PACKAGE_EXTRA_ACTION_SKIP_PACKAGE

Functions

 checkDir ($dirName)
 checkSiteaccess ($siteAccess, $bailOutOnError=false)
 createTranslationSiteAccesses ($params)
 defaultVendor ()
 downloadPackages ($packageList, $packageURL, $packageDir, $packageRepository)
 getExtraActions ($actionList)
 getUserInput ($prompt)
 handlePackageError ($error)
 installPackages ($packageList, $params=array())
 installScriptDir ($packageRepository, $packageName)
 languageMatrixDefinition ()
 postInstallAdminSiteaccessINIUpdate ($params)
 postInstallUserSiteaccessINIUpdate ($params)
 repositoryByVendor ($vendor)
 resetINI ($settingsGroups, $iniToReset)
 showError ($message, $addEOL=true, $bailOut=true)
 showMessage ($message, $addEOL=true)
 showMessage2 ($message, $addEOL=true)
 showNotice ($message, $addEOL=true)
 showPackageActions ($actionList)
 showWarning ($message, $addEOL=true)
 siteAccessMap ($siteAccessNameArray)
 templateLookObjectData ($params)
 updateINIAccessType ($accessType, $params)

Variables

global $cli
global $script

Enumeration Type Documentation

define constans

Definition at line 36 of file ezwebincommon.php.


Function Documentation

checkDir ( dirName)

Check if dir $dirName exists. If not, ask user to create it.

Definition at line 156 of file ezwebincommon.php.

Referenced by downloadPackages().

checkSiteaccess ( siteAccess,
bailOutOnError = false 
)

Definition at line 420 of file ezwebincommon.php.

Referenced by siteAccessMap().

createTranslationSiteAccesses ( params)

Definition at line 475 of file ezwebincommon.php.

defaultVendor ( )

Definition at line 185 of file ezwebincommon.php.

downloadPackages ( packageList,
packageURL,
packageDir,
packageRepository 
)

download packages if neede. 1. check if packages specified in $packageList exist in $packageRepository(means already downloaded and imported). if yes - ask user to do download or not. If not - go out 2. check $packgesList exists in $packageDir(means packages downloaded but not imported) if yes - ask user to import or not. If not - go out 3. download and import.

Definition at line 208 of file ezwebincommon.php.

getExtraActions ( actionList)

add extra actions to default package item's actions

Definition at line 107 of file ezwebincommon.php.

Referenced by handlePackageError().

getUserInput ( prompt)

prompt user to choose what to do next

Definition at line 117 of file ezwebincommon.php.

Referenced by checkDir(), checkPaths(), downloadPackages(), handlePackageError(), updateINI_1_1_0(), updateINI_1_2_0(), and updateINI_1_4_0().

handlePackageError ( error)

handle installation error:

  • show error message;
  • ask user what to do next;

Definition at line 136 of file ezwebincommon.php.

Referenced by installPackages().

installPackages ( packageList,
params = array() 
)

install packages

Definition at line 322 of file ezwebincommon.php.

installScriptDir ( packageRepository,
packageName 
)

Definition at line 180 of file ezwebincommon.php.

languageMatrixDefinition ( )

Definition at line 511 of file ezwebincommon.php.

Referenced by templateLookObjectData().

postInstallAdminSiteaccessINIUpdate ( params)

Definition at line 456 of file ezwebincommon.php.

postInstallUserSiteaccessINIUpdate ( params)

Definition at line 466 of file ezwebincommon.php.

repositoryByVendor ( vendor)

Definition at line 192 of file ezwebincommon.php.

resetINI ( settingsGroups,
iniToReset 
)

Definition at line 498 of file ezwebincommon.php.

showError ( message,
addEOL = true,
bailOut = true 
)

includes

Definition at line 56 of file ezwebincommon.php.

showMessage ( message,
addEOL = true 
)

Definition at line 81 of file ezwebincommon.php.

showMessage2 ( message,
addEOL = true 
)

Definition at line 87 of file ezwebincommon.php.

showNotice ( message,
addEOL = true 
)

Definition at line 75 of file ezwebincommon.php.

showPackageActions ( actionList)

Show available actions to user

Definition at line 96 of file ezwebincommon.php.

Referenced by handlePackageError().

showWarning ( message,
addEOL = true 
)

Definition at line 69 of file ezwebincommon.php.

siteAccessMap ( siteAccessNameArray)

Definition at line 400 of file ezwebincommon.php.

Referenced by updateINI_1_2_0().

templateLookObjectData ( params)

Definition at line 522 of file ezwebincommon.php.

updateINIAccessType ( accessType,
params 
)

Definition at line 559 of file ezwebincommon.php.


Variable Documentation

global $cli

define global vars

Definition at line 42 of file ezwebincommon.php.

global $script

Definition at line 43 of file ezwebincommon.php.