Explorar el Código

[DOCUMENTATION] English:

- manual fixes (programlisting)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15713 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas hace 16 años
padre
commit
0b6aa2d331

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

@@ -40,7 +40,7 @@
             "<code>somePassword</code>"):
             "<code>somePassword</code>"):
         </para>
         </para>
 
 
-        <programlisting><![CDATA[
+        <programlisting language="txt"><![CDATA[
 someUser:Some Realm:fde17b91c3a510ecbaf7dbd37f59d4f8
 someUser:Some Realm:fde17b91c3a510ecbaf7dbd37f59d4f8
 ]]></programlisting>
 ]]></programlisting>
 
 

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

@@ -179,7 +179,7 @@
                 The file resolver is a very simple class. It has a single property specifying a filename, which can also
                 The file resolver is a very simple class. It has a single property specifying a filename, which can also
                 be passed to the constructor. Its <code>resolve()</code> method walks through the text file, searching
                 be passed to the constructor. Its <code>resolve()</code> method walks through the text file, searching
                 for a line with a matching username and realm. The text file format similar to Apache htpasswd files:
                 for a line with a matching username and realm. The text file format similar to Apache htpasswd files:
-                <programlisting><![CDATA[
+                <programlisting language="txt"><![CDATA[
 <username>:<realm>:<credentials>\n
 <username>:<realm>:<credentials>\n
 ]]></programlisting>
 ]]></programlisting>
                 Each line consists of three fields - username, realm, and credentials - each separated by a colon. The
                 Each line consists of three fields - username, realm, and credentials - each separated by a colon. The

+ 1 - 1
documentation/manual/en/module_specs/Zend_Controller-Modular.xml

@@ -12,7 +12,7 @@
             directory structure:
             directory structure:
         </para>
         </para>
 
 
-        <programlisting><![CDATA[
+        <programlisting language="txt"><![CDATA[
 docroot/
 docroot/
     index.php
     index.php
 application/
 application/

+ 2 - 2
documentation/manual/en/module_specs/Zend_Db_Table.xml

@@ -1079,7 +1079,7 @@ $rows = $table->fetchAll($select);
 $table = new Bugs();
 $table = new Bugs();
 
 
 // retrieve with from part set, important when joining
 // retrieve with from part set, important when joining
-$select = $table->select(Zend_Db_Table::SELECT_WITH_FROM_PART); 
+$select = $table->select(Zend_Db_Table::SELECT_WITH_FROM_PART);
 $select->setIntegrityCheck(false)
 $select->setIntegrityCheck(false)
        ->where('bug_status = ?', 'NEW')
        ->where('bug_status = ?', 'NEW')
        ->join('accounts', 'accounts.account_name = bugs.reported_by')
        ->join('accounts', 'accounts.account_name = bugs.reported_by')
@@ -1107,7 +1107,7 @@ $rows = $table->fetchAll($select);
 
 
                 <title>Removing the integrity check on Zend_Db_Table_Select to allow JOINed rows</title>
                 <title>Removing the integrity check on Zend_Db_Table_Select to allow JOINed rows</title>
 
 
-                <programlisting><![CDATA[
+                <programlisting language="php"><![CDATA[
 $table = new Bugs();
 $table = new Bugs();
 
 
 $select = $table->select(Zend_Db_Table::SELECT_WITH_FROM_PART)->setIntegrityCheck(false);
 $select = $table->select(Zend_Db_Table::SELECT_WITH_FROM_PART)->setIntegrityCheck(false);

+ 1 - 1
documentation/manual/en/module_specs/Zend_File_Transfer-Introduction.xml

@@ -43,7 +43,7 @@
             This example illustrates basic file uploading.
             This example illustrates basic file uploading.
             The first part is the file form. In our example there is one file to upload.
             The first part is the file form. In our example there is one file to upload.
         </para>
         </para>
-        <programlisting><![CDATA[
+        <programlisting language="xml"><![CDATA[
 <form enctype="multipart/form-data" action="/file/upload" method="POST">
 <form enctype="multipart/form-data" action="/file/upload" method="POST">
     <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
     <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
         Choose a file to upload: <input name="uploadedfile" type="file" />
         Choose a file to upload: <input name="uploadedfile" type="file" />

+ 2 - 2
documentation/manual/en/module_specs/Zend_Rest_Server.xml

@@ -93,7 +93,7 @@ $server->handle();
 
 
         <example id="zend.rest.server.customstatus.example-1">
         <example id="zend.rest.server.customstatus.example-1">
             <title>Returning Custom Status</title>
             <title>Returning Custom Status</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 /**
 /**
  * Say Hello
  * Say Hello
  *
  *
@@ -125,7 +125,7 @@ $server->handle();
         <example id="zend.rest.server.customxml.example-1">
         <example id="zend.rest.server.customxml.example-1">
             <title>Return Custom XML</title>
             <title>Return Custom XML</title>
 
 
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 /**
 /**
  * Say Hello
  * Say Hello
  *
  *

+ 2 - 2
documentation/manual/en/module_specs/Zend_Search_Lucene-Extending.xml

@@ -352,7 +352,7 @@ Zend_Search_Lucene_Search_Similarity::setDefault($mySimilarity);
         <para>
         <para>
         <classname>Zend_Search_Lucene_Storage_Directory</classname> methods:
         <classname>Zend_Search_Lucene_Storage_Directory</classname> methods:
         </para>
         </para>
-        <programlisting><![CDATA[
+        <programlisting language="php"><![CDATA[
 abstract class Zend_Search_Lucene_Storage_Directory {
 abstract class Zend_Search_Lucene_Storage_Directory {
 /**
 /**
  * Closes the store.
  * Closes the store.
@@ -445,7 +445,7 @@ abstract function getFileObject($filename);
         Only two methods of <classname>Zend_Search_Lucene_Storage_File</classname> must be overridden in your
         Only two methods of <classname>Zend_Search_Lucene_Storage_File</classname> must be overridden in your
         implementation:
         implementation:
         </para>
         </para>
-        <programlisting><![CDATA[
+        <programlisting language="php"><![CDATA[
 class MyFile extends Zend_Search_Lucene_Storage_File {
 class MyFile extends Zend_Search_Lucene_Storage_File {
     /**
     /**
      * Sets the file position indicator and advances the file pointer.
      * Sets the file position indicator and advances the file pointer.

+ 6 - 6
documentation/manual/en/module_specs/Zend_Service_Amazon.xml

@@ -57,7 +57,7 @@
             <para>
             <para>
                 In this example, we search for PHP books at Amazon and loop through the results, printing them.
                 In this example, we search for PHP books at Amazon and loop through the results, printing them.
             </para>
             </para>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
                                      'Keywords' => 'php'));
                                      'Keywords' => 'php'));
@@ -72,7 +72,7 @@ foreach ($results as $result) {
                 Here, we also search for PHP books at Amazon, but we instead use the Query API, which
                 Here, we also search for PHP books at Amazon, but we instead use the Query API, which
                 resembles the Fluent Interface design pattern.
                 resembles the Fluent Interface design pattern.
             </para>
             </para>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $query = new Zend_Service_Amazon_Query('AMAZON_API_KEY');
 $query = new Zend_Service_Amazon_Query('AMAZON_API_KEY');
 $query->category('Books')->Keywords('PHP');
 $query->category('Books')->Keywords('PHP');
 $results = $query->search();
 $results = $query->search();
@@ -91,7 +91,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.amazon.countrycodes.example.country_code">
         <example id="zend.service.amazon.countrycodes.example.country_code">
             <title>Choosing an Amazon Web Service Country</title>
             <title>Choosing an Amazon Web Service Country</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 // Connect to Amazon in Japan
 // Connect to Amazon in Japan
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'JP');
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'JP');
 ]]></programlisting>
 ]]></programlisting>
@@ -112,7 +112,7 @@ $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'JP');
         </para>
         </para>
         <example id="zend.service.amazon.itemlookup.example.asin">
         <example id="zend.service.amazon.itemlookup.example.asin">
             <title>Looking up a Specific Amazon Item by ASIN</title>
             <title>Looking up a Specific Amazon Item by ASIN</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $item = $amazon->itemLookup('B0000A432X');
 $item = $amazon->itemLookup('B0000A432X');
 ]]></programlisting>
 ]]></programlisting>
@@ -139,7 +139,7 @@ $item = $amazon->itemLookup('B0000A432X');
         </para>
         </para>
         <example id="zend.service.amazon.itemsearch.example.basic">
         <example id="zend.service.amazon.itemsearch.example.basic">
             <title>Performing Amazon Item Searches</title>
             <title>Performing Amazon Item Searches</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
                                      'Keywords' => 'php'));
                                      'Keywords' => 'php'));
@@ -200,7 +200,7 @@ foreach ($results as $result) {
                     In this example, the alternative query API is used as a fluent interface to specify options and their
                     In this example, the alternative query API is used as a fluent interface to specify options and their
                     respective values:
                     respective values:
                 </para>
                 </para>
-                <programlisting><![CDATA[
+                <programlisting language="php"><![CDATA[
 $query = new Zend_Service_Amazon_Query('MY_API_KEY');
 $query = new Zend_Service_Amazon_Query('MY_API_KEY');
 $query->Category('Books')->Keywords('PHP');
 $query->Category('Books')->Keywords('PHP');
 $results = $query->search();
 $results = $query->search();

+ 7 - 7
documentation/manual/en/module_specs/Zend_Service_Yahoo.xml

@@ -23,7 +23,7 @@
         </para>
         </para>
         <example id="zend.service.yahoo.websearch.example-1">
         <example id="zend.service.yahoo.websearch.example-1">
             <title>Searching the Web with Yahoo!</title>
             <title>Searching the Web with Yahoo!</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->webSearch('PHP');
 $results = $yahoo->webSearch('PHP');
 foreach ($results as $result) {
 foreach ($results as $result) {
@@ -44,7 +44,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.yahoo.imagesearch.example-1">
         <example id="zend.service.yahoo.imagesearch.example-1">
             <title>Finding Images with Yahoo!</title>
             <title>Finding Images with Yahoo!</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->imageSearch('PHP');
 $results = $yahoo->imageSearch('PHP');
 foreach ($results as $result) {
 foreach ($results as $result) {
@@ -63,7 +63,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.yahoo.videosearch.example-1">
         <example id="zend.service.yahoo.videosearch.example-1">
             <title>Finding videos with Yahoo!</title>
             <title>Finding videos with Yahoo!</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->videoSearch('PHP');
 $results = $yahoo->videoSearch('PHP');
 foreach ($results as $result) {
 foreach ($results as $result) {
@@ -82,7 +82,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.yahoo.localsearch.example-1">
         <example id="zend.service.yahoo.localsearch.example-1">
             <title>Finding Local Businesses and Services with Yahoo!</title>
             <title>Finding Local Businesses and Services with Yahoo!</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->localSearch('Apple Computers', array('zip' => '95014'));
 $results = $yahoo->localSearch('Apple Computers', array('zip' => '95014'));
 foreach ($results as $result) {
 foreach ($results as $result) {
@@ -101,7 +101,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.yahoo.newssearch.example-1">
         <example id="zend.service.yahoo.newssearch.example-1">
             <title>Searching Yahoo! News</title>
             <title>Searching Yahoo! News</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->newsSearch('PHP');
 $results = $yahoo->newsSearch('PHP');
 foreach ($results as $result) {
 foreach ($results as $result) {
@@ -120,7 +120,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.yahoo.inlinkdatasearch.example-1">
         <example id="zend.service.yahoo.inlinkdatasearch.example-1">
             <title>Searching Yahoo! Site Explorer Inbound Links</title>
             <title>Searching Yahoo! Site Explorer Inbound Links</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->inlinkDataSearch('http://framework.zend.com/');
 $results = $yahoo->inlinkDataSearch('http://framework.zend.com/');
 foreach ($results as $result) {
 foreach ($results as $result) {
@@ -139,7 +139,7 @@ foreach ($results as $result) {
         </para>
         </para>
         <example id="zend.service.yahoo.pagedatasearch.example-1">
         <example id="zend.service.yahoo.pagedatasearch.example-1">
             <title>Searching Yahoo! Site Explorer's PageData</title>
             <title>Searching Yahoo! Site Explorer's PageData</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
 $results = $yahoo->pageDataSearch('http://framework.zend.com/');
 $results = $yahoo->pageDataSearch('http://framework.zend.com/');
 foreach ($results as $result) {
 foreach ($results as $result) {