Class Field
A Field
is a proxy object to an immutable (dynamic) data storage.
Data storage access is available via array access or the Core\Field::getDataForKey()
method. Field properties are separated from the data core, accessible
through properties and KVC access inherited by Core\Set
, and contain
object specific values.
Thus a Field
represents a complex object with a separated data storage.
Parameter values are always associative with the object, and array values
are fetched from the data storage.
Fields support an internal data cache to reduce access to their (external) data storage; subclasses may prefetch data values and the default implementation will automatically provide these on request before calling the reimplemented dynamic data accessor method.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Set\Mutable implements Core\Mutator
- Core\Field implements Core\Inquiry
Direct known subclasses
Core\Converter
,
Core\Decoder
,
Core\Translation\Language_Node
,
Core\Version
,
Core\Encoder
,
Core\Env_Field
,
Core\Exchange\Matrix_Import
,
Core\Field\Mutable
,
Core\Filter
,
Core\Locale_Node
,
Core\Storage_Result
,
Core\Translation\Language
Indirect known subclasses
Core\Authentication\Driver\ldap_Token
,
Core\Authentication\Driver\sspi_Token
,
Core\Decoder\Driver\base64
,
Core\Decoder\Driver\base64s
,
Core\Decoder\Driver\boolean
,
Core\Decoder\Driver\charset
,
Core\Decoder\Driver\decimal
,
Core\Decoder\Driver\delegate
,
Core\Decoder\Driver\html
,
Core\Decoder\Driver\integer
,
Core\Decoder\Driver\passthrough
,
Core\Decoder\Driver\rawurl
,
Core\Authentication\Driver\storage_Token
,
Core\Decoder\Driver\serialize
,
Core\Decoder\Driver\url
,
Core\Decoder\Driver\uu
,
Core\Encoder\Driver\base16
,
Core\Encoder\Driver\base16uppercase
,
Core\Encoder\Driver\base64
,
Core\Encoder\Driver\base64s
,
Core\Encoder\Driver\boolean
,
Core\Encoder\Driver\charset
,
Core\Encoder\Driver\clear
,
Core\Authentication_Token
,
Core\Encoder\Driver\crc32
,
Core\Encoder\Driver\decimal
,
Core\Encoder\Driver\delegate
,
Core\Encoder\Driver\escape
,
Core\Encoder\Driver\escapestring
,
Core\Encoder\Driver\hash
,
Core\Encoder\Driver\html
,
Core\Encoder\Driver\integer
,
Core\Encoder\Driver\md5
,
Core\Encoder\Driver\md5sum
,
Core\Configuration
,
Core\Encoder\Driver\passthrough
,
Core\Encoder\Driver\qp
,
Core\Encoder\Driver\rawurl
,
Core\Encoder\Driver\serialize
,
Core\Encoder\Driver\sha
,
Core\Encoder\Driver\sha1
,
Core\Encoder\Driver\sha1sum
,
Core\Encoder\Driver\smd5
,
Core\Encoder\Driver\split
,
Core\Encoder\Driver\ssha
,
Core\Configuration\Driver\constant
,
Core\Encoder\Driver\taggedhash
,
Core\Encoder\Driver\url
,
Core\Encoder\Driver\uu
,
Core\Encoder\Driver\xml
,
Core\Env_SERVER
,
Core\Exchange\Driver\csv_Import
,
Core\Filter\Driver\email
,
Core\Session_Token
,
Core\Storage\Driver\mysql_Result
,
Core\Storage\Driver\mysql_Result_Statement
,
Core\Configuration\Driver\ini
,
Core\Storage\Driver\odbc_Result
,
Core\Storage\Driver\sqlite2_Result
,
Core\Storage\Driver\sqlite3_Result
,
Core\Storage\Field
,
Core\Storage\Field\Aggregate
,
Core\Storage\Field\Element
,
Core\Storage\Field\Element\Pair
,
Core\Storage\Field\Element\Retained
,
Core\Storage\SQL_Result
,
Core\Translation\Language\Driver\xml
,
Core\Configuration\Driver\yaml
,
Core\Translation\Language\Driver\xml_Node
,
Core\View
,
Core\View\Driver\coreui
,
Core\View\Driver\html
,
Core\View\Driver\htmlbuilder
,
Core\View\Driver\plain
,
Core\View\Driver\yui
,
Core\Converter\Driver\vardump
,
Core\Decoder\Driver\base16
Package: Core\KDC
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Field.inc.php
Methods summary
public
mixed
|
#
getDataForKey( string $key )
Retrieves a KDC data storage field for a specified key. Values are retrieved from sources in the following order: |
public
mixed
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
#
offsetExists( string $key )
Tests, whether a KDC data storage value exists. Allows the use of the isset() function for array-like access to KDC indices. |
public
mixed
|
#
offsetGet( string $key )
Retrieves a value from the KDC data storage and allows array-like access to field values. |
public
|
#
offsetSet( string $key, mixed $value )
Not available for immutable Field instances; raises an exception. |
public
|
Methods inherited from Core\Set\Mutable
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
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
array
|
$_v_data
Data storage cache. Depending on the actual implementation this array can store all data fields or only cache a subset of data fields. Do not assume that all data is cached and refer to the subclass implementation for details. |
#
array ()
|
Magic properties
public read-only
array
|
$data
Field data storage cache. The actual use of the cache depends on the actual implementation and may either store all data, a cached copy, a cached subset or no data at all. Refer to the documentation of the actual implementation for further details prior use. |