Browse Source

[DOCUMENTATION] English:

- manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15927 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 years ago
parent
commit
72cdd6d8a2
1 changed files with 15 additions and 12 deletions
  1. 15 12
      documentation/manual/en/module_specs/Zend_Amf-Server.xml

+ 15 - 12
documentation/manual/en/module_specs/Zend_Amf-Server.xml

@@ -483,18 +483,21 @@ private function getContactHandler(event:ResultEvent):void {
             after the resource name, with words capitalized and spaces removed (so, resource
             after the resource name, with words capitalized and spaces removed (so, resource
             type "mysql result" becomes MysqlResult), with some prefix, e.g.
             type "mysql result" becomes MysqlResult), with some prefix, e.g.
             <classname>My_MysqlResult</classname>. This class should implement one method,
             <classname>My_MysqlResult</classname>. This class should implement one method,
-            <code>parse()</code>, receiving one argument - the resource - and returning the value
-            that should be sent to ActionScript. The class should be located in the file named after
-            the last component of the name, e.g. MysqlResult.php.
+            <methodname>parse()</methodname>, receiving one argument - the resource - and returning
+            the value that should be sent to ActionScript. The class should be located in the file
+            named after the last component of the name, e.g. <filename>MysqlResult.php</filename>.
         </para>
         </para>
 
 
         <para>
         <para>
             The directory containing the resource handling plugins should be registered with
             The directory containing the resource handling plugins should be registered with
-            Zend_Amf type loader:
+            <classname>Zend_Amf</classname> type loader:
         </para>
         </para>
 
 
-        <programlisting role="php"><![CDATA[
-Zend_Amf_Parse_TypeLoader::addResourceDirectory("My", "application/library/resources/My"));
+        <programlisting language="php"><![CDATA[
+Zend_Amf_Parse_TypeLoader::addResourceDirectory(
+    "My",
+    "application/library/resources/My"
+));
 ]]></programlisting>
 ]]></programlisting>
 
 
         <para>
         <para>
@@ -507,7 +510,7 @@ Zend_Amf_Parse_TypeLoader::addResourceDirectory("My", "application/library/resou
             and currently contains handlers for "mysql result" and "stream" resources.
             and currently contains handlers for "mysql result" and "stream" resources.
         </para>
         </para>
 
 
-        <programlisting role="php"><![CDATA[
+        <programlisting language="php"><![CDATA[
 // Example class implementing handling resources of type mysql result
 // Example class implementing handling resources of type mysql result
 class Zend_Amf_Parse_Resource_MysqlResult
 class Zend_Amf_Parse_Resource_MysqlResult
 {
 {
@@ -689,8 +692,8 @@ private function onFault(fault:Object):void {
         <para>
         <para>
             <classname>Zend_Amf_Server</classname> allows you to specify authentication and
             <classname>Zend_Amf_Server</classname> allows you to specify authentication and
             authorization hooks to control access to the services. It is using the infrastructure
             authorization hooks to control access to the services. It is using the infrastructure
-            provided by <link end="zend.auth">Zend_Auth</link> and
-            <link end="zend.acl">Zend_Acl</link> components.
+            provided by <link end="zend.auth"><classname>Zend_Auth</classname></link> and
+            <link end="zend.acl"><classname>Zend_Acl</classname></link> components.
         </para>
         </para>
 
 
         <para>
         <para>
@@ -723,7 +726,7 @@ private function onFault(fault:Object):void {
             The adapter is connected to the server using <methodname>setAuth()</methodname> method:
             The adapter is connected to the server using <methodname>setAuth()</methodname> method:
         </para>
         </para>
 
 
-        <programlisting role="php"><![CDATA[
+        <programlisting language="php"><![CDATA[
 $server->setAuth(new My_Amf_Auth());
 $server->setAuth(new My_Amf_Auth());
 ]]></programlisting>
 ]]></programlisting>
 
 
@@ -732,7 +735,7 @@ $server->setAuth(new My_Amf_Auth());
             <methodname>setAcl()</methodname> method:
             <methodname>setAcl()</methodname> method:
         </para>
         </para>
 
 
-        <programlisting role="php"><![CDATA[
+        <programlisting language="php"><![CDATA[
 $acl = new Zend_Acl();
 $acl = new Zend_Acl();
 createPermissions($acl); // create permission structure
 createPermissions($acl); // create permission structure
 $server->setAcl($acl);
 $server->setAcl($acl);
@@ -754,7 +757,7 @@ $server->setAcl($acl);
             otherwise the access will be denied.
             otherwise the access will be denied.
         </para>
         </para>
 
 
-        <programlisting role="php"><![CDATA[
+        <programlisting language="php"><![CDATA[
 if($this->_acl->isAllowed($role, $class, $function)) {
 if($this->_acl->isAllowed($role, $class, $function)) {
     return true;
     return true;
 } else {
 } else {