[cvs] [Wiki] changed: Doc/Dev/RegistryUsageH4

Michael Slusarz slusarz at horde.org
Wed Feb 3 01:23:54 UTC 2010


slusarz  Tue, 02 Feb 2010 20:23:54 -0500

Modified page: http://wiki.horde.org/Doc/Dev/RegistryUsageH4
New Revision:  1.1
Change log:  tweaks

@@ -19,9 +19,9 @@
  </code>

  On authentication success, $appOb will be set to the  
Horde_Registry_Application instance for the current application.  On  
authentication failure the default action is to redirect the user to  
the login page.

-{{Horde_Registry::appInit()}} has several configuration options that  
can be used to tweak environment initialization and authentication  
error handling.  A full list of these configuration options can be  
found  
[http://dev.horde.org/api/framework/Core/Core/Horde_Registry.html#appInit]  
here.
+{{Horde_Registry::appInit()}} has several configuration options that  
can be used to tweak environment initialization and authentication  
error handling.  A full list of these configuration options can be  
found  
[http://dev.horde.org/api/framework/Core/Core/Horde_Registry.html#appInit  
here].

  **Horde_Registry::appInit() should ONLY be called as the first lines  
in a script - it is simply a shortcut to bootstrap/initialize the  
Horde environment.  It should NEVER be used otherwise (e.g. within a  
library) to initialize an application.**

  Once the Registry has been initialized, all  
((Doc/Dev/GlobalsH4|Horde global variables/constants)) are available.
@@ -36,9 +36,8 @@
  ++ Horde_Registry_Application

  TODO

-getVersion()
  init()

  ++ Linking to another application

@@ -80,4 +79,11 @@

  ++ pushApp()/popApp()

  TODO
+
+++ Application version
+The version number of an application (in this example, application  
'foo') can be obtained from Horde_Registry with the following code:
+
+<code type="php">
+$version = $registry->getVersion('foo');
+</code>



More information about the cvs mailing list