Browse Source

[DOCUMENTATION] English:

- manual fixes (programlisting)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15713 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 years ago
parent
commit
0b6aa2d331

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

@@ -40,7 +40,7 @@
             "<code>somePassword</code>"):
         </para>
 
-        <programlisting><![CDATA[
+        <programlisting language="txt"><![CDATA[
 someUser:Some Realm:fde17b91c3a510ecbaf7dbd37f59d4f8
 ]]></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
                 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:
-                <programlisting><![CDATA[
+                <programlisting language="txt"><![CDATA[
 <username>:<realm>:<credentials>\n
 ]]></programlisting>
                 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:
         </para>
 
-        <programlisting><![CDATA[
+        <programlisting language="txt"><![CDATA[
 docroot/
     index.php
 application/

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

@@ -1079,7 +1079,7 @@ $rows = $table->fetchAll($select);
 $table = new Bugs();
 
 // 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)
        ->where('bug_status = ?', 'NEW')
        ->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>
 
-                <programlisting><![CDATA[
+                <programlisting language="php"><![CDATA[
 $table = new Bugs();
 
 $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.
             The first part is the file form. In our example there is one file to upload.
         </para>
-        <programlisting><![CDATA[
+        <programlisting language="xml"><![CDATA[
 <form enctype="multipart/form-data" action="/file/upload" method="POST">
     <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
         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">
             <title>Returning Custom Status</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 /**
  * Say Hello
  *
@@ -125,7 +125,7 @@ $server->handle();
         <example id="zend.rest.server.customxml.example-1">
             <title>Return Custom XML</title>
 
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 /**
  * 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>
         <classname>Zend_Search_Lucene_Storage_Directory</classname> methods:
         </para>
-        <programlisting><![CDATA[
+        <programlisting language="php"><![CDATA[
 abstract class Zend_Search_Lucene_Storage_Directory {
 /**
  * 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
         implementation:
         </para>
-        <programlisting><![CDATA[
+        <programlisting language="php"><![CDATA[
 class MyFile extends Zend_Search_Lucene_Storage_File {
     /**
      * 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>
                 In this example, we search for PHP books at Amazon and loop through the results, printing them.
             </para>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
                                      '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
                 resembles the Fluent Interface design pattern.
             </para>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $query = new Zend_Service_Amazon_Query('AMAZON_API_KEY');
 $query->category('Books')->Keywords('PHP');
 $results = $query->search();
@@ -91,7 +91,7 @@ foreach ($results as $result) {
         </para>
         <example id="zend.service.amazon.countrycodes.example.country_code">
             <title>Choosing an Amazon Web Service Country</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 // Connect to Amazon in Japan
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'JP');
 ]]></programlisting>
@@ -112,7 +112,7 @@ $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'JP');
         </para>
         <example id="zend.service.amazon.itemlookup.example.asin">
             <title>Looking up a Specific Amazon Item by ASIN</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $item = $amazon->itemLookup('B0000A432X');
 ]]></programlisting>
@@ -139,7 +139,7 @@ $item = $amazon->itemLookup('B0000A432X');
         </para>
         <example id="zend.service.amazon.itemsearch.example.basic">
             <title>Performing Amazon Item Searches</title>
-            <programlisting><![CDATA[
+            <programlisting language="php"><![CDATA[
 $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
 $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
                                      '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
                     respective values:
                 </para>
-                <programlisting><![CDATA[
+                <programlisting language="php"><![CDATA[
 $query = new Zend_Service_Amazon_Query('MY_API_KEY');
 $query->Category('Books')->Keywords('PHP');
 $results = $query->search();

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

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