Просмотр исходного кода

[MANUAL] English:

- some fixes (example linelength)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21992 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 15 лет назад
Родитель
Сommit
3b7aefdb62

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

@@ -630,9 +630,9 @@ class CallbackController extends Zend_Controller_Action
 
         /**
          * Check if the callback resulting in the receipt of a feed update.
-         * Otherwise it was either a (un)sub verification request or invalid request.
-         * Typically we need do nothing other than add feed update handling - the rest
-         * is handled internally by the class.
+         * Otherwise it was either a (un)sub verification request or invalid
+         * request. Typically we need do nothing other than add feed update
+         * handling - the rest is handled internally by the class.
          */
         if ($callback->hasFeedUpdate()) {
             $feedString = $callback->getFeedUpdate();

+ 7 - 2
documentation/manual/en/module_specs/Zend_Mail-CharacterSets.xml

@@ -36,8 +36,13 @@ function myConvert($string) {
 }
 
 $mail = new Zend_Mail('ISO-2022-JP');
-//In this case, You can use ENCODING_7BIT because the ISO-2022-JP does not use MSB.
-$mail->setBodyText(myConvert('This is the text of the mail.'), null, Zend_Mime::ENCODING_7BIT);
+// In this case, you can use ENCODING_7BIT
+// because the ISO-2022-JP does not use MSB.
+$mail->setBodyText(
+    myConvert('This is the text of the mail.'),
+    null,
+    Zend_Mime::ENCODING_7BIT
+);
 $mail->setHeaderEncoding(Zend_Mime::ENCODING_BASE64);
 $mail->setFrom('somebody@example.com', myConvert('Some Sender'));
 $mail->addTo('somebody_else@example.com', myConvert('Some Recipient'));

+ 2 - 1
documentation/manual/en/module_specs/Zend_Markup-Renderers.xml

@@ -71,7 +71,8 @@ echo $bbcode->render('my [foo]markup[/foo]');
             </para>
 
             <programlisting language="php"><![CDATA[
-class My_Markup_Renderer_Html_Upper implements Zend_Markup_Renderer_TokenConverterInterface
+class My_Markup_Renderer_Html_Upper
+    implements Zend_Markup_Renderer_TokenConverterInterface
 {
 
     public function convert(Zend_Markup_Token $token, $text)

+ 4 - 1
documentation/manual/en/module_specs/Zend_Oauth-GettingStarted.xml

@@ -161,7 +161,10 @@ $config = array(
 $consumer = new Zend_Oauth_Consumer($config);
 
 if (!empty($_GET) && isset($_SESSION['TWITTER_REQUEST_TOKEN'])) {
-    $token = $consumer->getAccessToken($_GET, unserialize($_SESSION['TWITTER_REQUEST_TOKEN']));
+    $token = $consumer->getAccessToken(
+                 $_GET,
+                 unserialize($_SESSION['TWITTER_REQUEST_TOKEN'])
+             );
     $_SESSION['TWITTER_ACCESS_TOKEN'] = serialize($token);
 
     // Now that we have an Access Token, we can discard the Request Token

+ 2 - 1
documentation/manual/en/module_specs/Zend_Pdf-Drawing.xml

@@ -106,7 +106,8 @@ public function drawRectangle($x1, $y1, $x2, $y2,
  * Draw a rounded rectangle.
  *
  * Fill types:
- * Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE - fill rectangle and stroke (default)
+ * Zend_Pdf_Page::SHAPE_DRAW_FILL_AND_STROKE - fill rectangle
+ *                                             and stroke (default)
  * Zend_Pdf_Page::SHAPE_DRAW_STROKE      - stroke rectangle
  * Zend_Pdf_Page::SHAPE_DRAW_FILL        - fill rectangle
  *

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

@@ -129,7 +129,8 @@
         <programlisting language="javascript"><![CDATA[
 function Zend_ProgressBar_Update(data)
 {
-    document.getElementById('zend-progressbar-done').style.width = data.percent + '%';
+    document.getElementById('zend-progressbar-done').style.width =
+         data.percent + '%';
 }
 ]]></programlisting>
 

+ 9 - 6
documentation/manual/en/module_specs/Zend_Service_DeveloperGarden.xml

@@ -808,11 +808,12 @@ $service->tearDownCall($sessionId);
             <programlisting language="php"><![CDATA[
 $client = new Zend_Service_DeveloperGarden_ConferenceCall($config);
 
-$conferenceDetails = new Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail(
-    'Zend-Conference',                    // name for the conference
-    'this is my private zend conference', // description
-    60                                    // duration in seconds
-);
+$conferenceDetails =
+    new Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail(
+        'Zend-Conference',                    // name for the conference
+        'this is my private zend conference', // description
+        60                                    // duration in seconds
+    );
 
 $conference = $client->createConference('MyName', $conferenceDetails);
 
@@ -848,7 +849,9 @@ $client->commitConference($conference->getConferenceId());
             <title>WSDL cache options</title>
 
             <programlisting language="php"><![CDATA[
-Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache([PHP CONSTANT]);
+Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setWsdlCache(
+    [PHP CONSTANT]
+);
 ]]></programlisting>
         </example>
 

+ 9 - 3
documentation/manual/en/module_specs/Zend_Service_WindowsAzure_Blob.xml

@@ -158,7 +158,10 @@ $storageClient->getBlob(
 $storageClient = new Zend_Service_WindowsAzure_Storage_Blob();
 
 // make container publicly available
-$storageClient->setContainerAcl('testcontainer', Zend_Service_WindowsAzure_Storage_Blob::ACL_PUBLIC);
+$storageClient->setContainerAcl(
+    'testcontainer',
+    Zend_Service_WindowsAzure_Storage_Blob::ACL_PUBLIC
+);
 ]]></programlisting>
             </example>
         </sect4>
@@ -215,11 +218,14 @@ fclose($fileHandle);
 
             <programlisting language="php"><![CDATA[
 $storageClient = new Zend_Service_WindowsAzure_Storage_Blob();
-$storageClient->registerStreamWrapper(); // registers azure:// on this storage client
+// registers azure:// on this storage client
+$storageClient->registerStreamWrapper();
+
 
 // or:
 
-$storageClient->registerStreamWrapper('blob://'); // regiters blob:// on this storage client
+// regiters blob:// on this storage client
+$storageClient->registerStreamWrapper('blob://');
 ]]></programlisting>
         </example>
 

+ 6 - 1
documentation/manual/en/module_specs/Zend_Translate-Additional.xml

@@ -825,7 +825,12 @@ $translate = new Zend_Translate(
                 </para>
 
                 <programlisting><![CDATA[
-$options = array('ignore' => array('regex' => '/test/u', 'regex_2' => '/deleted$/u'));
+$options = array(
+    'ignore' => array(
+        'regex' => '/test/u',
+        'regex_2' => '/deleted$/u'
+    )
+);
 $translate = new Zend_Translate(
     array(
         'adapter' => $adapter,

+ 6 - 1
documentation/manual/en/module_specs/Zend_Translate-SourceCreation.xml

@@ -272,7 +272,12 @@ $translate = new Zend_Translate(
         'locale'  => 'de'
     )
 );
-$translate->addTranslation(array('content' => 'path/to/other.csv', 'locale' => 'fr'));
+$translate->addTranslation(
+    array(
+        'content' => 'path/to/other.csv',
+        'locale' => 'fr'
+    )
+);
 ]]></programlisting>
         </example>
 

+ 4 - 1
documentation/manual/en/module_specs/Zend_Validate-Messages.xml

@@ -44,7 +44,10 @@ $messages  = $validator->getMessageTemplates();
 
     <programlisting language="php"><![CDATA[
 $validator = new Zend_Validate_GreaterThan();
-$validator->setMessage('Please enter a lower value', Zend_Validate_GreaterThan::NOT_GREATER);
+$validator->setMessage(
+    'Please enter a lower value',
+    Zend_Validate_GreaterThan::NOT_GREATER
+);
 ]]></programlisting>
 
     <para>

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

@@ -257,7 +257,9 @@ if (Zend_Validate::is($value, 'MyValidator', array('min' => 1, 'max' => 12)) {
     // Yes, $value is ok
 }
 
-if (Zend_Validate::is($value, 'OtherValidator', array('min' => 1, 'max' => 12)) {
+if (Zend_Validate::is($value,
+                      'OtherValidator',
+                      array('min' => 1, 'max' => 12)) {
     // Yes, $value is ok
 }
 ]]></programlisting>