PHP Class PHPDaemon\Config\Entry\Generic

Author: Vasily Zorin ([email protected])
Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Datei anzeigen Open project: kakserpom/phpdaemon Class Usage Examples

Public Properties

Property Type Description
$defaultValue
$hasDefaultValue boolean
$humanValue
$revision
$source
$value
$valueType

Protected Properties

Property Type Description
$stackable boolean

Public Methods

Method Description
__construct ( ) : void Constructor
getHumanValue ( ) : mixed Get human value
getValue ( ) : mixed Get value
humanToPlain ( $value ) : mixed Converts human-readable value to plain
isStackable ( ) : boolean
onUpdate ( $old ) : void Called when
plainToHuman ( $value ) : mixed Converts plain value to human-readable
pushHumanValue ( $value ) : void Push human-readable value
pushValue ( $value ) : void Push plain value
resetToDefault ( ) : boolean Reset to default
setDefaultValue ( $value ) : void Set default value
setHumanValue ( $value ) : void Set human-readable value
setStackable ( boolean $b = true )
setValue ( $value ) : void Set value
setValueType ( $type ) : void Set value type

Method Details

__construct() public method

Constructor
public __construct ( ) : void
return void

getHumanValue() public method

Get human value
public getHumanValue ( ) : mixed
return mixed

getValue() public method

Get value
public getValue ( ) : mixed
return mixed

humanToPlain() public static method

Converts human-readable value to plain
public static humanToPlain ( $value ) : mixed
return mixed

isStackable() public method

public isStackable ( ) : boolean
return boolean

onUpdate() public method

Called when
public onUpdate ( $old ) : void
return void

plainToHuman() public static method

Converts plain value to human-readable
public static plainToHuman ( $value ) : mixed
return mixed

pushHumanValue() public method

Push human-readable value
public pushHumanValue ( $value ) : void
$value
return void

pushValue() public method

Push plain value
public pushValue ( $value ) : void
$value
return void

resetToDefault() public method

Reset to default
public resetToDefault ( ) : boolean
return boolean Success

setDefaultValue() public method

Set default value
public setDefaultValue ( $value ) : void
return void

setHumanValue() public method

Set human-readable value
public setHumanValue ( $value ) : void
return void

setStackable() public method

public setStackable ( boolean $b = true )
$b boolean

setValue() public method

Set value
public setValue ( $value ) : void
return void

setValueType() public method

Set value type
public setValueType ( $type ) : void
return void

Property Details

$defaultValue public_oe property

public $defaultValue

$hasDefaultValue public_oe property

public bool $hasDefaultValue
return boolean

$humanValue public_oe property

public $humanValue

$revision public_oe property

public $revision

$source public_oe property

public $source

$stackable protected_oe property

protected bool $stackable
return boolean

$value public_oe property

public $value

$valueType public_oe property

public $valueType