Bladeren bron

[DOCUMENTATION] English:

- docu fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16393 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 jaren geleden
bovenliggende
commit
4af5d95a26

+ 4 - 3
documentation/manual/en/module_specs/Zend_Config-TheoryOfOperation.xml

@@ -34,11 +34,12 @@
 
 
     <para>
     <para>
         By default, configuration data made available through <classname>Zend_Config</classname> are
         By default, configuration data made available through <classname>Zend_Config</classname> are
-        read-only, and an assignment (e.g., $config->database->host = 'example.com')
+        read-only, and an assignment (e.g.,
+        <command>$config->database->host = 'example.com'</command>)
         results in a thrown exception. This default behavior may be overridden through the
         results in a thrown exception. This default behavior may be overridden through the
         constructor, however, to allow modification of data values. Also, when modifications are
         constructor, however, to allow modification of data values. Also, when modifications are
         allowed, <classname>Zend_Config</classname> supports unsetting of values (i.e.
         allowed, <classname>Zend_Config</classname> supports unsetting of values (i.e.
-        <methodname>unset($config->database->host);</methodname>). The
+        <methodname>unset($config->database->host)</methodname>). The
         <methodname>readOnly()</methodname> method can be used to determine if modifications to a
         <methodname>readOnly()</methodname> method can be used to determine if modifications to a
         given <classname>Zend_Config</classname> object are allowed and the
         given <classname>Zend_Config</classname> object are allowed and the
         <methodname>setReadOnly()</methodname> method can be used to stop any further modifications
         <methodname>setReadOnly()</methodname> method can be used to stop any further modifications
@@ -84,7 +85,7 @@
         object using the <methodname>merge()</methodname> function. For example, given
         object using the <methodname>merge()</methodname> function. For example, given
         <varname>$config</varname> and <varname>$localConfig</varname>, you can merge data from
         <varname>$config</varname> and <varname>$localConfig</varname>, you can merge data from
         <varname>$localConfig</varname> to <varname>$config</varname> using
         <varname>$localConfig</varname> to <varname>$config</varname> using
-        <methodname>$config->merge($localConfig);</methodname>. The items in
+        <methodname>$config->merge($localConfig)</methodname>. The items in
         <varname>$localConfig</varname> will override any items with the same name in
         <varname>$localConfig</varname> will override any items with the same name in
         <varname>$config</varname>.
         <varname>$config</varname>.
     </para>
     </para>

+ 1 - 1
documentation/manual/en/module_specs/Zend_Config_Writer.xml

@@ -47,7 +47,7 @@
         the parameter of the <classname>Zend_Config</classname> object via the parameter
         the parameter of the <classname>Zend_Config</classname> object via the parameter
         accessor (<emphasis>-&gt;</emphasis>). To create a section in the root or to
         accessor (<emphasis>-&gt;</emphasis>). To create a section in the root or to
         create a branch, you just create a new array
         create a branch, you just create a new array
-        ("$config-&gt;branch = array();"). To define which section
+        ("<command>$config-&gt;branch = array()</command>"). To define which section
         extends another one, you call the <methodname>setExtend()</methodname> method
         extends another one, you call the <methodname>setExtend()</methodname> method
         on the root <classname>Zend_Config</classname> object.
         on the root <classname>Zend_Config</classname> object.
     </para>
     </para>