Browse Source

[DOCUMENTATION] English: fixed line length in programlisting for better rendering (<= 80 characters)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19419 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 16 years ago
parent
commit
27a33009d0

+ 3 - 1
documentation/manual/en/module_specs/Zend_Feed_Reader.xml

@@ -1387,7 +1387,9 @@ http://example.com/junglebooks/rss/module/1.0/
     <link>http://example.com/junglebooks</link>
     <description>Many book reviews!</description>
     <pubDate>Fri, 26 Jun 2009 19:15:10 GMT</pubDate>
-    <jungle:dayPopular>http://example.com/junglebooks/book/938</jungle:dayPopular>
+    <jungle:dayPopular>
+        http://example.com/junglebooks/book/938
+    </jungle:dayPopular>
     <item>
         <title>Review Of Flatland: A Romance of Many Dimensions</title>
         <link>http://example.com/junglebooks/review/987</link>

+ 2 - 1
documentation/manual/en/module_specs/Zend_Filter-PregReplace.xml

@@ -21,7 +21,8 @@
     </para>
 
     <programlisting language="php"><![CDATA[
-$filter = new Zend_Filter_PregReplace(array('match' => 'bob', 'replace' => 'john'));
+$filter = new Zend_Filter_PregReplace(array('match' => 'bob',
+                                            'replace' => 'john'));
 $input  = 'Hy bob!";
 
 $filter->filter($input);

+ 3 - 1
documentation/manual/en/module_specs/Zend_Filter.xml

@@ -101,7 +101,9 @@ echo Zend_Filter::filterStatic('&', 'HtmlEntities');
             are needed for the filter class.
 
             <programlisting language="php"><![CDATA[
-echo Zend_Filter::filterStatic('"', 'HtmlEntities', array('quotestyle' => ENT_QUOTES));
+echo Zend_Filter::filterStatic('"',
+                               'HtmlEntities',
+                               array('quotestyle' => ENT_QUOTES));
 ]]></programlisting>
 
         </para>

+ 2 - 1
documentation/manual/en/module_specs/Zend_Http_Client-Adapters.xml

@@ -578,7 +578,8 @@ try {
     // ...
 }
 
-// Further requests will work as expected until you call setNextRequestWillFail(true) again
+// Further requests will work as expected until
+// you call setNextRequestWillFail(true) again
 ]]></programlisting>
         </example>
     </sect2>

+ 1 - 2
documentation/manual/en/module_specs/Zend_Http_Client-Advanced.xml

@@ -362,10 +362,9 @@ $_SESSION['cookiejar'] = $client->getCookieJar();
             <example id="zend.http.client.streaming.example-1">
                 <title>Sending file to HTTP server with streaming</title>
                 <programlisting language="php"><![CDATA[
-]]>
 $fp = fopen("mybigfile.zip", "r");
 $client->setRawData($fp, 'application/zip')->request('PUT');
-</programlisting>
+]]></programlisting>
             </example>
         </para>
         <para>

+ 13 - 6
documentation/manual/en/module_specs/Zend_Pdf-InteractiveFeatures.xml

@@ -854,7 +854,9 @@ $iterator = new RecursiveIteratorIterator(
 foreach ($iterator as $chainedAction) {
     $actionsCount++;
 }
-printf("Actions in a tree: %d\n", $actionsCount++); // Prints 'Actions in a tree: 4'
+
+// Prints 'Actions in a tree: 4'
+printf("Actions in a tree: %d\n", $actionsCount++);
 ]]></programlisting>
         </sect3>
 
@@ -1051,18 +1053,23 @@ $pdf->save($path, true);
 $pdf = Zend_Pdf::load($path);
 
 foreach ($pdf->outlines as $documentRootOutlineEntry) {
-    $iterator = new RecursiveIteratorIterator($documentRootOutlineEntry,
-                                              RecursiveIteratorIterator::SELF_FIRST);
+    $iterator = new RecursiveIteratorIterator(
+                    $documentRootOutlineEntry,
+                    RecursiveIteratorIterator::SELF_FIRST
+                );
     foreach ($iterator as $childOutlineItem) {
         $OutlineItemTarget = $childOutlineItem->getTarget();
         if ($OutlineItemTarget instanceof Zend_Pdf_Destination) {
             if ($pdf->resolveDestination($OutlineItemTarget) === null) {
-                // Mark Outline item with unresolvable destination using RED color
+                // Mark Outline item with unresolvable destination
+                // using RED color
                 $childOutlineItem->setColor(new Zend_Pdf_Color_Rgb(1, 0, 0));
             }
         } else if ($OutlineItemTarget instanceof Zend_Pdf_Action_GoTo) {
-            if ($pdf->resolveDestination($OutlineItemTarget->setDestination()) === null) {
-                // Mark Outline item with unresolvable destination using RED color
+            $OutlineItemTarget->setDestination();
+            if ($pdf->resolveDestination($OutlineItemTarget) === null) {
+                // Mark Outline item with unresolvable destination
+                // using RED color
                 $childOutlineItem->setColor(new Zend_Pdf_Color_Rgb(1, 0, 0));
             }
         }

+ 3 - 1
documentation/manual/en/module_specs/Zend_Service_Amazon.xml

@@ -75,7 +75,9 @@ foreach ($results as $result) {
                 resembles the Fluent Interface design pattern.
             </para>
             <programlisting language="php"><![CDATA[
-$query = new Zend_Service_Amazon_Query('AMAZON_API_KEY', 'US, 'AMAZON_SECRET_KEY');
+$query = new Zend_Service_Amazon_Query('AMAZON_API_KEY',
+                                       'US,
+                                       'AMAZON_SECRET_KEY');
 $query->category('Books')->Keywords('PHP');
 $results = $query->search();
 foreach ($results as $result) {

+ 13 - 10
documentation/manual/en/module_specs/Zend_Tool_Framework-WritingProviders.xml

@@ -78,16 +78,16 @@
             </para>
 
             <programlisting language="php"><![CDATA[
-    class My_Component_Manifest implements Zend_Tool_Framework_Manifest_ProviderManifestable
+class My_Component_Manifest
+    implements Zend_Tool_Framework_Manifest_ProviderManifestable
+{
+    public function getProviders()
     {
-        public function getProviders()
-        {
-            return array(
-                new My_Component_HelloProvider()
-            );
-        }
+        return array(
+            new My_Component_HelloProvider()
+        );
     }
-
+}
 ]]></programlisting>
 
         </example>
@@ -147,7 +147,8 @@ class My_Component_HelloProvider
 {
     public function say()
     {
-        $this->_registry->getResponse()->appendContent("Hello from my provider!");
+        $this->_registry->getResponse
+                        ->appendContent("Hello from my provider!");
     }
 }
 ]]></programlisting>
@@ -220,7 +221,9 @@ class My_Component_HelloProvider
 {
     public function say($name = 'Ralph')
     {
-        $nameResponse = $this->_registry->getClient()->promptInteractiveInput("Whats your name?");
+        $nameResponse = $this->_registry
+                             ->getClient()
+                             ->promptInteractiveInput("Whats your name?");
         $name = $name->getContent();
 
         echo 'Hello' . $name . ', from my provider!';

+ 5 - 1
documentation/manual/en/module_specs/Zend_Validate-EmailAddress.xml

@@ -314,7 +314,11 @@ $validator->getHostnameValidator()->setValidateTld(false);
 
         <programlisting language="php"><![CDATA[
 $validator = new Zend_Validate_EmailAddress();
-$validator->setMessages(array(Zend_Validate_Hostname::UNKNOWN_TLD => 'I don't know the TLD you gave'));
+$validator->setMessages(
+    array(
+        Zend_Validate_Hostname::UNKNOWN_TLD => 'I don't know the TLD you gave'
+    )
+);
 ]]></programlisting>
 
         <para>

+ 8 - 3
documentation/manual/en/module_specs/Zend_Validate-ValidatorChains.xml

@@ -13,7 +13,9 @@
         <programlisting language="php"><![CDATA[
 // Create a validator chain and add validators to it
 $validatorChain = new Zend_Validate();
-$validatorChain->addValidator(new Zend_Validate_StringLength(array('min' => 6, 'max' => 12)))
+$validatorChain->addValidator(
+                    new Zend_Validate_StringLength(array('min' => 6,
+                                                         'max' => 12)))
                ->addValidator(new Zend_Validate_Alnum());
 
 // Validate the username
@@ -47,8 +49,11 @@ if ($validatorChain->isValid($username)) {
         fails:
 
         <programlisting language="php"><![CDATA[
-$validatorChain->addValidator(new Zend_Validate_StringLength(array('min' => 6, 'max' => 12)), true)
-        ->addValidator(new Zend_Validate_Alnum());
+$validatorChain->addValidator(
+                    new Zend_Validate_StringLength(array('min' => 6,
+                                                         'max' => 12)),
+                    true)
+               ->addValidator(new Zend_Validate_Alnum());
 ]]></programlisting>
 
     </para>