Class Mutable
Mutable fields extend the default Field functionality by allowing the user to write to (dynamic) data fields.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Set\Mutable implements Core\Mutator
- Core\Field implements Core\Inquiry
- Core\Field\Mutable implements Core\Variator
Direct known subclasses
Core\Authentication_Token
,
Core\Session_Token
,
Core\Storage\Field
,
Core\View
Indirect known subclasses
Core\Authentication\Driver\ldap_Token
,
Core\Authentication\Driver\sspi_Token
,
Core\View\Driver\plain
,
Core\View\Driver\yui
,
Core\Authentication\Driver\storage_Token
,
Core\Storage\Field\Aggregate
,
Core\Storage\Field\Element
,
Core\Storage\Field\Element\Pair
,
Core\Storage\Field\Element\Retained
,
Core\View\Driver\coreui
,
Core\View\Driver\html
,
Core\View\Driver\htmlbuilder
Package: Core\KDC
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at Field/Mutable.inc.php
Methods summary
public
mixed
|
#
setDataForKey( string $key, mixed $value )
Updates an internal data storage field for a specified key using the following order: |
public
mixed
|
#
setDataForUndefinedKey( string $key, mixed $value )
Updates an internal data storage field for a specified key. |
public
|
|
public
|
#
setKeyMasquerade( string $key, string $className = 'Core\\String\\Encrypted' )
Enables value masquerade for a specified key using a given class. If a value with the specified key exists and no value masquerade is yet active, it is masqueraded instantly; otherwise the value is de-masqueraded and masqueraded using the new class name. |
public
|
#
offsetSet( string $key, mixed $value )
Updates a value from the internal data storage and enables array assignment invocations. |
public
|
#
offsetUnset( string $key )
Updates a value from the internal data storage to |
public
|
#
updateMasqueradedKeys( )
Tests, whether a data element requires masquerade and updates values accordingly. |
Methods inherited from Core\Field
getDataForKey()
,
getDataForKeys()
,
getDataForUndefinedKey()
,
issetDataForKey()
,
offsetExists()
,
offsetGet()
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
|
$_v_masqueradedKeys
Array of key names that use value masquerade. If no valuemasquerade is used, the stored value is \c null. |
Properties inherited from Core\Field
Magic properties
public read-only
array
|
$masqueradedKeys
|