Class we_util_Sys_Dependencies

Description

Utility class for checking system dependencies using the we_util_Sys_* classes

dependencies can be read from a file (i.e. xml) or defined directly via addDependency(). Each dependency must habe the follwing attributes: class dependency class according to the we_util_Sys_* class names, i.e. "Db", "Server_Apache" or "Webedition" operation the method to be calles in these classes, i.e. "version" or "module" version version number for this operation (i.e. used for version checks or webEdition tools) property the value for the operation, i.e. version or module name operator if the operation is a comparison, you can specify an operator like "==", "<=" or "lt" The operations called by check() will always return (bool)true or (bool)false. check() returns (bool)true, if all dependencies are met. Otherwise it will return (bool)false.

example: class operation property version operator ------------------------------------------------------------------------ Php versionCompare 5.1 >= Webedition module customer Webedition tool navigation Webedition toolVersionCompare navigation 1.1 >= Server_Apache version 2.0 >= Server_Apache module mod_rewrite

Located in /util/Sys/Dependencies.php (line 53)

we_util_Sys
   |
   --we_util_Sys_Dependencies
Method Summary
we_util_Sys_Dependencies __construct ()
void addDependency ([ $class = ""], [ $values = array("")])
void check ()
Methods
Constructor __construct (line 58)
  • access: public
we_util_Sys_Dependencies __construct ()
addDependency (line 63)
  • access: public
void addDependency ([ $class = ""], [ $values = array("")])
  • $class
  • $values
check (line 106)
  • access: public
void check ()

Inherited Methods

Inherited From we_util_Sys

we_util_Sys::_versionCompare()

Documentation generated on Mon, 01 Sep 2008 11:35:36 +0200 by phpDocumentor 1.4.0