New HORDE_APP constant?
Jon Parise
jon@csh.rit.edu
Thu, 1 Feb 2001 15:20:04 -0500
I'm thinking it might be useful to have something like this in each
Horde application:
Index: IMP.php
===================================================================
RCS file: /cvs/horde/imp/lib/IMP.php,v
retrieving revision 1.143
diff -u -r1.143 IMP.php
--- IMP.php 2001/01/26 21:45:47 1.143
+++ IMP.php 2001/02/01 20:17:02
@@ -1,7 +1,11 @@
<?php
// $Horde: imp/lib/IMP.php,v 1.143 2001/01/26 21:45:47 chuck Exp $
//
-/** @const IMP_NAME The app name. */ define('IMP_NAME', 'Internet Messaging Program (IMP)');
+/** @const HORDE_APP The application name for the Horde namespace. */
+define('HORDE_APP', 'imp');
+
+/** @const IMP_NAME The full application name. */
+define('IMP_NAME', 'Internet Messaging Program (IMP)');
This could be used to identify the application in the Horde namespace
for things like preferences. Do you think it's worth creating a
new constant for this purpose, or should be just hardcode the
application name everywhere like we've been doing?
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House Member