add yaconf class & fixed includes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343818 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xinchen Hui 2018-01-12 06:30:57 +00:00
parent 9bd87c182d
commit 78ae23e472
4 changed files with 23 additions and 11 deletions

View file

@ -30,18 +30,31 @@
Yaconf requires PHP 7.0 or greater.
</para>
<example>
<title><function>INI</function>example</title>
<title><function> INI </function>example</title>
<programlisting role="ini">
<![CDATA[
[SectionA]
;key value pair
;simple key val
key=val
;hash[a]=val
;hash
hash.a=val
;arr[0]=val
;array
arr.0=val
;or
arr[]=val
;use PHP constants
version=PHP_VERION
;use enviroment
env=${PATH}
]]>
</programlisting>
</example>
<example>
<title><function> INI Sections </function>example</title>
<programlisting role="ini">
<![CDATA[
[SectionA]
key=val
hash.a=val
;SectionB inherits SectionA
[SectionB:SectionA]
@ -54,6 +67,7 @@ key=new_val
&reference.yaconf.setup;
&reference.yaconf.constants;
&reference.yaconf.yaconf;
</book>

View file

@ -57,7 +57,7 @@
</term>
<listitem>
<para>
Path to directory which all ini configuration files are placed in.
Path to directory which all INI configuration files are placed in.
</para>
</listitem>
</varlistentry>

View file

@ -3,6 +3,7 @@
<reference xml:id="ref.yaconf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Yaconf &Functions;</title>
&reference.yaconf.entities.functions;
</reference>
<!-- Keep this comment at the end of the file

View file

@ -7,7 +7,7 @@
<section xml:id="yaconf.requirements">
&reftitle.required;
<para>
Yaconf requires PHP 7.0 and above.
</para>
</section>
@ -16,10 +16,7 @@
&no.install;
</section>
<section xml:id="yaconf.configuration">
&reftitle.runtime;
&no.config;
</section>
&reference.yaconf.ini;
<section xml:id="yaconf.resources">
&reftitle.resources;