scriptlog:lib:core:appconfig
This is an old revision of the document!
Table of Contents
AppConfig
Layer: Core · Source: lib/core/AppConfig.php:25 (lines 25–59)
class AppConfig
AppConfig Class
Example: AppConfig::writeConfiguration('config.php', array( 'dbhost' ⇒ 'foo' )); $config = AppConfig::readConfiguration('config.php'); $config['dbhost'] = '127.0.0.1'; $config['dbuser'] = 'scriptlog'; AppConfig::writeConfiguration('config.php', $config);
Docblock Metadata
^ Tag ^ Value ^ | ''@category'' | Core Class | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 | | ''@since'' | Since Release 1.0 |
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (0)
None declared.
Methods (2)
^ Visibility ^ Method ^ Summary ^ Line ^ | public static | ''readConfiguration()'' | readConfiguration | 36 | | public static | ''writeConfiguration()'' | writeConfiguration | 52 |
readConfiguration()
public static function readConfiguration($filename)
lines 36–42 (7)
readConfiguration
^ Parameter ^ Type ^ Default ^ Description ^ | ''$filename'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared) — mixed
writeConfiguration()
public static function writeConfiguration($filename, array $config)
lines 52–58 (7)
writeConfiguration
^ Parameter ^ Type ^ Default ^ Description ^ | ''$filename'' | ''(untyped)'' | //required// | //none// | | ''$config'' | ''array'' | //required// | //none// |
Returns: (none declared) — mixed
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
scriptlog/lib/core/appconfig.1790413761.txt.gz · Last modified: by admin
