Classes

File io/data/config/ConfigData.class.php

File io/data/config/ConfigData.class.php

 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 
<?php
/**
 * This interface represents configuration data which are stored automatically by the
 * config manager. The storage mode is very powerful, it uses a two-level cache and the database.
 * <p>They are stored in a map associating a value to a property</p>
 * @package     IO
 * @subpackage  Data\config
 * @copyright   &copy; 2005-2019 PHPBoost
 * @license     https://www.gnu.org/licenses/gpl-3.0.html 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
*/

interface ConfigData extends CacheData
{
    /**
     * Reads a property's value.
     * @param string $name Name of the property to read
     * @return string the read value
     * @throws PropertyNotFoundException If the property if not found
     */
    function get_property($name);

    /**
     * Sets a property value. If the property exists, it overrides its value,
     * otherwise, it creates an entry for this property.
     * @param string $name Name of the property
     * @param string $value Value of the property
     */
    function set_property($name, $value);

    /**
     * Sets the default value to avoid having unexisting values when we use it.
     * If some entries doesn't exist, they can be created here.
     */
    function set_default_values();
}
?>
Annonces