eZ Publish  [4.0]
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)
 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 159 of file ezwebincommon.php.

Referenced by downloadPackages().

checkSiteaccess ( siteAccess,
bailOutOnError = false 
)

Definition at line 425 of file ezwebincommon.php.

Referenced by siteAccessMap().

createTranslationSiteAccesses ( params)

Definition at line 481 of file ezwebincommon.php.

defaultVendor ( )

Definition at line 188 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 211 of file ezwebincommon.php.

getExtraActions ( actionList)

add extra actions to default package item's actions

Definition at line 110 of file ezwebincommon.php.

Referenced by handlePackageError().

getUserInput ( prompt)

prompt user to choose what to do next

Definition at line 120 of file ezwebincommon.php.

Referenced by checkDir(), downloadPackages(), handlePackageError(), and updateINI_1_2_0().

handlePackageError ( error)

handle installation error:

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

Definition at line 139 of file ezwebincommon.php.

Referenced by installPackages().

installPackages ( packageList,
params = array() 
)

install packages

Definition at line 327 of file ezwebincommon.php.

installScriptDir ( packageRepository)

Definition at line 183 of file ezwebincommon.php.

languageMatrixDefinition ( )

Definition at line 517 of file ezwebincommon.php.

Referenced by templateLookObjectData().

postInstallAdminSiteaccessINIUpdate ( params)

Definition at line 462 of file ezwebincommon.php.

postInstallUserSiteaccessINIUpdate ( params)

Definition at line 472 of file ezwebincommon.php.

repositoryByVendor ( vendor)

Definition at line 195 of file ezwebincommon.php.

resetINI ( settingsGroups,
iniToReset 
)

Definition at line 504 of file ezwebincommon.php.

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

includes

Definition at line 59 of file ezwebincommon.php.

showMessage ( message,
addEOL = true 
)

Definition at line 84 of file ezwebincommon.php.

showMessage2 ( message,
addEOL = true 
)

Definition at line 90 of file ezwebincommon.php.

showNotice ( message,
addEOL = true 
)

Definition at line 78 of file ezwebincommon.php.

showPackageActions ( actionList)

Show available actions to user

Definition at line 99 of file ezwebincommon.php.

Referenced by handlePackageError().

showWarning ( message,
addEOL = true 
)

Definition at line 72 of file ezwebincommon.php.

siteAccessMap ( siteAccessNameArray)

Definition at line 405 of file ezwebincommon.php.

Referenced by updateINI_1_2_0().

templateLookObjectData ( params)

Definition at line 528 of file ezwebincommon.php.

updateINIAccessType ( accessType,
params 
)

Definition at line 565 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.