PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Configuration » Config » Bug #4722

Missing config types in Config::parseConfig()

Details

Submitted2005-07-01 07:00 UTC
Fromalbrecht at inseal dot de
Assignedaashley
StatusClosed
PackageConfig
PHP Version5.0.4
Roadmaps(Not assigned)

Comments

[2005-07-01 07:00 UTC] albrecht at inseal dot de

Description:
------------
In the documentation in chapter Config::parseConfig() it says:
string $configType Type of configuration to parse

That's it. But it would be very helpful to list the available configuration types here so you do not have to search at Google or GoogleGroups or in the source code of Config to find the supported configuration types.

Just add:
Available configuration types are:
"Apache", "GenericConf", "IniCommented", "IniFile", "PHPArray", "XML"

The same at Config_Container::writeDatasrc() and Config::writeConfig(). If you do not want to change it at each page you can even add a new page containing all supported formats and add hyperlinks to the method pages.

Thanks very much.

Expected result:
----------------
Others may find supported configuration types faster and can use the Config class directly without searching in news groups and source codes.

[2006-02-14 01:37 UTC] aashley at php dot net

I've created a patch with the new documentation at
http://www.adamashley.name/stuff/doco-available-config-types.diff

Finding out how to get it committed to peardoc now.

[2006-08-11 01:53 UTC] aashley at php dot net

Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/Config