own project class
"B. Kamer" <[email protected]> Sat, 14 May 2005 21:32:23 +0200
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
hi,
with svn commit 8501 a whole bunch was commented in Project... Is
this functionality (creating your own project class) now supposed to
be created by extending Project? This makes $conf->get('/binarycloud/
common/classpath') obsolete?
bas
// {{{ method &getInstance()
/**
* Creates a new Project instance. You can configure this class
to use a
* subclass if you specify the file in which this class is
defined in
* conf/binarycloud.conf.xml with the "classpath" parameter in
the "project"
* section.
*/
function &getInstance() {
$instance = null;
if ($instance === null) {
/*
$conf =& Conf::getInstance();
$settings = $conf->get('/binarycloud');
$classpath = 'binarycloud/init/Project.php';
if (isset($settings['common']['classpath'])) {
$classpath = $settings['common']['classpath'];
}
$class = path2class($classpath);
include_once($classpath);
$instance = new $class();
*/
$instance = new Project();
}
return $instance;
}
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev