xplo.re Medusa Core Framework 3.1
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Authentication
  • Authentication_Token
  • Autoloader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Iterator
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • String
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • UseVersion
  • Version

Functions

  • ns_expand
  • ns_file_exists
  • ns_get_version
  • ns_resolve

Class Env_Field

Environmental value group interface. Base class for simple global arrays.

The name of derived classes must end in the name of the global variable it wants to represent, e.g. Env_SERVER for the global $_SERVER array.

Internally, the KDC data field is a reference to the corresponding global variable. On KDC access, the corresponeding value is wrapped into a Core\Value instance with callback support for reflecting changes to its value to the global array.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Set\Mutable implements Core\Mutator
Extended by Core\Field implements Core\Inquiry
Extended by Core\Env_Field

Direct known subclasses

Core\Env_SERVER

Namespace: Core
Package: Core\Env
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Located at Env.inc.php

Methods summary

public
# __construct( )

Since

3.1
protected Core\Value
# _retrieveValueForKey( string $key )

Retrieves a value from the associated global array, wraps it in a Core\Value instance and returns the value.

Retrieves a value from the associated global array, wraps it in a Core\Value instance and returns the value.

Parameters

$key
Key of environment group entry to retrieve.

Returns

Core\Value

Value instance storing the data value (which may be null, if the entry identified by the given key key does not exist).

Since

3.1
public Core\Value
# getDataForUndefinedKey( string $key )

Default data retrieval implementation for environment fields: The user can choose between KVC and KDC access, both allowing access to the same data fields; per standard values are wrapped by Core\Value instances.

Default data retrieval implementation for environment fields: The user can choose between KVC and KDC access, both allowing access to the same data fields; per standard values are wrapped by Core\Value instances.

Parameters

$key
Key of environment group entry to retrieve.

Returns

Core\Value

Value instance storing the data value (which may be null, if the entry identified by the given key key does not exist).

Throws

Core\Exception\UndefinedKey
Failed to resolve data field for the given key.

Since

3.1

Overrides

Core\Field::getDataForUndefinedKey
public Core\Value
# getValueForUndefinedKey( string $key )

Default data retrieval implementation for environment fields: The user can choose between KVC and KDC access, both allowing access to the same data fields; per standard values are wrapped by Core\Value instances.

Default data retrieval implementation for environment fields: The user can choose between KVC and KDC access, both allowing access to the same data fields; per standard values are wrapped by Core\Value instances.

Parameters

$key
Key of environment group entry to retrieve.

Returns

Core\Value

Value instance storing the data value (which may be null, if the entry identified by the given key key does not exist).

Throws

Core\Exception\UndefinedKey
Failed to resolve value for the given key.

Since

3.1

Overrides

Core\Object::getValueForUndefinedKey

Methods inherited from Core\Field

getDataForKey(), getDataForKeys(), issetDataForKey(), offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Methods inherited from Core\Set\Mutable

__set(), __unset()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected string $_sourceName

Name of associated global variable array.

Name of associated global variable array.

Since

3.1
#

Properties inherited from Core\Field

$_v_data

Magic properties inherited from Core\Field

$data

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.1 API documentation generated by ApiGen