Class Environment

Description

Reads and writes environment variables

Located in /core/util/Environment.class.php (line 37)

PHP2Go
   |
   --Environment
Method Summary
static mixed get (string $key)
static bool has (string $key)
static void set (string $key, mixed $value)
Methods
static method get (line 62)

Gets the value of an environment variable

Returns FALSE if the variable doesn't exist.

static mixed get (string $key)
  • string $key: Variable key
static method has (line 46)

Checks if a given variable exists

static bool has (string $key)
  • string $key: Variable key
static method set (line 82)

Sets or creates an environment variable

This method won't work when safe_mode is enabled.

static void set (string $key, mixed $value)
  • string $key: Name
  • mixed $value: Value

Inherited Methods

Inherited From PHP2Go

PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()

Documentation generated on Sun, 07 Oct 2007 19:23:57 -0300 by phpDocumentor 1.3.2