activate a previoulsy deactivated application
- set attribute in manifest.xml
- set attribute of the application's toc.xml entry
static
void
activate
([ $appname = ""])
adds an entry for a specified application into toc.
static
void
addAppToTOC
( $appname)
this method creates a new application toc entry with all needed elements.
static
object SimpleXMLElement
createAppTOCEntry
(string $appname, [bool $checkInstallation = true])
-
string
$appname: name of the application for which the application toc entry has to be created the attribute "active" will be set to "true" by default
-
bool
$checkInstallation: flag for a check if the specified application is installed
deactivate an application
- set attribute in manifest.xml
- set attribute of the application's toc.xml entry
static
void
deactivate
([ $appname = ""])
returns an array with all currently activated applications
static
void
getActiveApplications
()
returns an array with the name of all installed applications
static
void
getAllApplications
()
fetches the attribute's value of a specified application's toc entry element
static
string
getAppTOCAttribute
([string $appname = ""], [string $attribute = ""], [string $element = ""])
-
string
$appname: name of the application
-
string
$attribute: name of the requested attribute
-
string
$element: name of the requested element leave it empty to request an attribute of the <application> element
fetches the value of a specified application's toc entry element
static
string
getAppTOCElement
([string $appname = ""], [string $element = ""])
-
string
$appname: name of the application
-
string
$element: name of the requested element
fetches informations for a specified application from the application toc
static
object SimpleXMLElement
getAppTOCEntry
([string $appname = ""])
-
string
$appname: application name for the requested toc entry
returns a specified config value or false
static
void
getConfigElement
([ $element = ""])
get default value for an application's property from webEdition/lib/we/app/defaults/manifest.xml The default values are used if an application does not have a manifest file.
static
void
getDefaultManifest
()
Reads the application's manifest file via Zend_Config and merges it with the default manifest.
this internal method merges the two SimpleXML objects for default properties and the application's manifest.
static
object Zend_Config
getManifest
(string $application)
-
string
$application: name of the application
static
void
getManifestAttribute
([ $appname = ""], [ $attribute = ""])
reads an element from a specified manifest file (application name)
static
object SimpleXMLElement
getManifestElement
([ $source = ""], [string $query = ""], string $appname)
-
string
$appname: name of the application
-
string
$query: xpath query
-
$source
reads the manifest file via SimpleXML from a specified path (absolute path)
static
object SimpleXML
getManifestXml
([ $source = ""], string $filename)
-
string
$filename: path and filename to the manifest.xml file
-
$source
checks version number of an application for special variables and returns it to the caller
WE_VERSION version of the currently used webEdition installation
static
string
getVersion
([string $version = ""], [bool $nodots = false])
-
string
$version: version number
-
bool
$nodots: nodots eliminates all dots
checks if the application with the name $name is currently active
static
void
isActive
([ $appname = ""])
checks if there is already an application with the name $name installed on this system
static
void
isInstalled
([ $appname = ""])
reads the application toc file from webEdition/apps/toc.xml
static
void
readAppTOC
([bool $overwrite = false])
-
bool
$overwrite: switch to read the toc file independently of self::$toc
loads the general configuration file from webEdition/lib/we/app/defaults/config.xml
it contains general confiruration settings for handling webEdition applications
static
void
readConfig
()
rebuilds the application toc file from webEdition/apps/toc.xml
searches in all subdirectories of webEdition/apps/ for conf/manifest.xml and builds a new webEdition/apps/toc.xml
static
void
rebuildAppTOC
()
saves the parameter $toc to the toc file used for changing single values
static
bool
saveAppTOC
([object SimpleXMLElement $toc = null])
-
object SimpleXMLElement
$toc: object of the complete toc.xml file
static
void
setManifestAttribute
([ $appname = ""], [ $attribute = ""], [ $value = ""])
-
$appname
-
$attribute
-
$value
changes the value of a specified element from an application's manifest file (via application name)
static
void
setManifestElement
([string $appname = ""], [string $query = ""], [ $value = ""])
-
string
$appname: name of the application
-
string
$query: xpath query
-
$value