Procházet zdrojové kódy

[DOCU] English:

- manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17782 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas před 16 roky
rodič
revize
fc91f9e341

+ 2 - 1
documentation/manual/en/module_specs/Zend_Db_Table_Definition.xml

@@ -85,7 +85,8 @@ $definition = new Zend_Db_Table_Definition(array(
 
         <para>
             Below is an example of the primary table instantiation as well as
-            the findDependentRowset() and findManyToManyRowset() calls that will
+            the <methodname>findDependentRowset()</methodname> and
+            <methodname>findManyToManyRowset()</methodname> calls that will
             correspond to the data model described above:
         </para>
 

+ 12 - 17
documentation/manual/en/module_specs/Zend_Db_Table_Row.xml

@@ -48,7 +48,7 @@ $row = $bugs->fetchRow($bugs->select()->where('bug_id = ?', 1));
 
         <para>
             A <classname>Zend_Db_Table_Rowset</classname> object contains a collection of
-            <classname>Zend_Db_Table_Row</classname> objects. See <xref
+            <classname>Zend_Db_Table_Row</classname> objects. See <link
                 linkend="zend.db.table.rowset" />.
         </para>
 
@@ -149,7 +149,7 @@ foreach ($rowArray as $column => $value) {
 
             <para>
                 The <classname>Zend_Db_Table_Row_Abstract</classname> class provides methods for
-                fetching rows and rowsets from related tables. See <xref
+                fetching rows and rowsets from related tables. See <link
                     linkend="zend.db.table.relationships" /> for more information on table
                 relationships.
             </para>
@@ -226,8 +226,8 @@ $newRow->save();
             </example>
 
             <para>
-                The optional argument to the createRow() method is an associative array, with which
-                you can populate fields of the new row.
+                The optional argument to the <methodname>createRow()</methodname> method is an
+                associative array, with which you can populate fields of the new row.
             </para>
 
             <example id="zend.db.table.row.write.insert.example2">
@@ -495,21 +495,20 @@ $bugs = new Bugs(array('rowClass' => 'MyRow'));
         </example>
 
         <sect3 id="zend.db.table.row.extending.overriding">
-
             <title>Row initialization</title>
 
             <para>
                 If application-specific logic needs to be initialized when a row is constructed,
                 you can select to move your tasks to the <methodname>init()</methodname> method,
                 which is called after all row metadata has been processed. This is recommended over
-                the <code>__construct</code> method if you do not need to alter the metadata in any
-                programmatic way.
-
-                <example id="zend.db.table.row.init.usage.example">
+                the <methodname>__construct()</methodname> method if you do not need to alter the
+                metadata in any programmatic way.
+            </para>
 
-                    <title>Example usage of init() method</title>
+            <example id="zend.db.table.row.init.usage.example">
+                <title>Example usage of init() method</title>
 
-                    <programlisting language="php"><![CDATA[
+                <programlisting language="php"><![CDATA[
 class MyApplicationRow extends Zend_Db_Table_Row_Abstract
 {
     protected $_role;
@@ -520,11 +519,7 @@ class MyApplicationRow extends Zend_Db_Table_Row_Abstract
     }
 }
 ]]></programlisting>
-
-                </example>
-
-            </para>
-
+            </example>
         </sect3>
 
         <sect3 id="zend.db.table.row.extending.insert-update">
@@ -650,7 +645,7 @@ class Products extends Zend_Db_Table_Abstract
 
             <para>
                 <classname>Zend_Db</classname> classes do not implement inflection by default. See
-                <xref linkend="zend.db.table.extending.inflection" /> for an explanation of this
+                <link linkend="zend.db.table.extending.inflection" /> for an explanation of this
                 policy.
             </para>
 

+ 12 - 12
documentation/manual/en/module_specs/Zend_Db_Table_Rowset.xml

@@ -55,8 +55,8 @@ $rowset = $bugs->fetchAll("bug_status = 'NEW'");
             A legitimate query returns zero rows when no rows in the database match the query
             conditions. Therefore, a Rowset object might contain zero Row objects. Since
             <classname>Zend_Db_Table_Rowset_Abstract</classname> implements the
-            <code>Countable</code> interface, you can use <methodname>count()</methodname> to
-            determine the number of Rows in the Rowset.
+            <classname>Countable</classname> interface, you can use <methodname>count()</methodname>
+            to determine the number of Rows in the Rowset.
         </para>
 
         <example id="zend.db.table.rowset.rows.counting.example">
@@ -106,10 +106,10 @@ $row    = $rowset->current();
 
             <para>
                 Objects descending from <classname>Zend_Db_Table_Rowset_Abstract</classname>
-                implement the <code>SeekableIterator</code> interface, which means you can loop
-                through them using the <code>foreach</code> construct. Each value you retrieve this
-                way is a <classname>Zend_Db_Table_Row_Abstract</classname> object that corresponds
-                to one record from the table.
+                implement the <classname>SeekableIterator</classname> interface, which means you can
+                loop through them using the <methodname>foreach()</methodname> construct. Each value
+                you retrieve this way is a <classname>Zend_Db_Table_Row_Abstract</classname> object
+                that corresponds to one record from the table.
             </para>
 
             <programlisting language="php"><![CDATA[
@@ -141,11 +141,11 @@ foreach ($rowset as $row) {
             <title>Seeking to a known position into a Rowset</title>
 
             <para>
-                <code>SeekableIterator</code> allows you to seek to a position that you would like
-                the iterator to jump to. Simply use the <methodname>seek()</methodname> method for
-                that. Pass it an integer representing the number of the Row you would like your
-                Rowset to point to next, don't forget that it starts with index 0. If the index is
-                wrong, ie doesn't exist, an exception will be thrown. You should use
+                <classname>SeekableIterator</classname> allows you to seek to a position that you
+                would like the iterator to jump to. Simply use the <methodname>seek()</methodname>
+                method for that. Pass it an integer representing the number of the Row you would
+                like your Rowset to point to next, don't forget that it starts with index 0. If the
+                index is wrong, ie doesn't exist, an exception will be thrown. You should use
                 <methodname>count()</methodname> to check the number of results before seeking to a
                 position.
             </para>
@@ -195,7 +195,7 @@ $row9->save();
 
         <para>
             After you have access to an individual Row object, you can manipulate the Row using
-            methods described in <xref linkend="zend.db.table.row" />.
+            methods described in <link linkend="zend.db.table.row" />.
         </para>
 
     </sect2>

+ 3 - 3
documentation/manual/en/module_specs/Zend_Debug.xml

@@ -44,9 +44,9 @@ Zend_Debug::dump($var, $label=null, $echo=true);
         <methodname>Zend_Debug::dump()</methodname> method wraps the <acronym>PHP</acronym> function
         <ulink url="http://php.net/var_dump"><methodname>var_dump()</methodname></ulink>.
         If the output stream is detected as a web presentation,
-        the output of <methodname>var_dump()</methodname> is escaped using
-        <ulink url="http://php.net/htmlspecialchars"><methodname>htmlspecialchars()</methodname></ulink>
-        and wrapped with (X)HTML <code>&lt;pre&gt;</code> tags.
+        the output of <methodname>var_dump()</methodname> is escaped using <ulink
+            url="http://php.net/htmlspecialchars"><methodname>htmlspecialchars()</methodname></ulink>
+        and wrapped with (X)HTML <command>&lt;pre&gt;</command> tags.
     </para>
 
     <tip>