[Wiki] changed: Doc/Dev/RegistryUsageH4

Michael Slusarz <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
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>


-- 
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.