Class

AbstractConfigData

Abstract Package: IO\Data\config Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2009 09 16 Located at: io/data/config/AbstractConfigData.class.php

This is a default and minimal implementation of the ConfigData interface.

AbstractConfigData implements ConfigData
Methods summary
public
# __construct( )

Constructs a AbstractConfigData object

final public
# synchronize( )

This method is not used in the configuration context. This method is called when the data needs to be sychronized. For instance,

public
# set_default_values( )

Redefine this method if you want to avoid getting errors while asking values. Sets the default value to avoid having unexisting values when we use it. If some entries doesn't exist, they can be created here.

public string
# get_property( string $name )

Reads a property's value.

public
# set_property( string $name, string $value )

Sets a property value. If the property exists, it overrides its value, otherwise, it creates an entry for this property.

abstract protected string[mixed]
# get_default_values( )

Returns a map associating to each property name the corresponding default value

Annonces