[commits] [Wiki] changed: Doc/Dev/HordeAjaxApplications

Ralf Lang (B1 Systems GmbH) lang at b1-systems.de
Tue Jul 23 16:03:49 UTC 2013


rlang  Tue, 23 Jul 2013 16:03:49 +0000

Modified page: http://wiki.horde.org/Doc/Dev/HordeAjaxApplications
New Revision:  2
Change log:  unbalanced tokens?

@@ -1,4 +1,5 @@
+
  Documentation of Horde Ajax Applications mostly from poking around  
existing examples.

  == Convention ==
  Conventions:
@@ -32,8 +33,9 @@
  <code>
  <?php
  // phpdoc omitted
  class $App_Ajax_Application extends Horde_Core_Ajax_Application {}
+?>
  </code>

  Inherited methods:

@@ -113,11 +115,12 @@
  Horde_Core ships some imple's, apps define theirs in  
$app/lib/Ajax/Imple/Foo.php
  <code>
  <?php
  // phpdoc here
-class $App_Ajax_Imple_$Foo extends Horde_Core_Ajax_Imple {
+class $App_Ajax_Imple_$Foo extends Horde_Core_Ajax_Imple {}
  // or
-class $App_Ajax_Imple_$Foo extends Horde_Core_Ajax_Imple_$Bar {
+class $App_Ajax_Imple_$Foo extends Horde_Core_Ajax_Imple_$Bar {}
+?>
  </code>

  Imple methods:
  (Not much documentation available. Maybe we find a good example)
@@ -194,8 +197,9 @@
              $response->setRedirectUrl($requestVars['url']);
          }
      }
  }
+?>
  </code>

  A Horde Controller based app needs a config/routes.php file.

@@ -208,9 +212,9 @@
  $mapper->connect('/t/complete',
      array(
          'controller' => 'CompleteTask',
      ));
-
+?>
  </code>

  defines a route for a call like www.myhorde.de/nag/t/complete to be  
handled by the CompleteTask controller seen above.




More information about the commits mailing list