Applications should include all of their core, common functions
in a lib/App.php file. Use static class methods (App::foo(),
App::bar()) for your functions, in order to keep a clean
namespace. You can also bring in auxillary files and set up variables
that the application needs here.
<?php
require_once NAG_BASE . '/lib/constants.php';
/** * Array for mapping the completed states to their string representations. * @var array $completion_map */ $completion_map = array( 0 => _("Open"), 1 => _("Closed") );
/** * Nag Base Class. * * @author Jon Parise <jon@horde.org> * @version $Revision: 1.1 $ * @package nag */ class Nag {
function foo() { }
function bar() { }
} ?>
|