--- nfo/php/libs/org.netfrag.glib/Application/Core.php 2003/02/03 14:42:28 1.2 +++ nfo/php/libs/org.netfrag.glib/Application/Core.php 2003/02/09 17:05:15 1.3 @@ -1,10 +1,14 @@ log(get_class($this) . "->run: begin", LOG_INFO); + $this->log("-----------------------------------------------------------------", PEAR_LOG_INFO); + $this->log(get_class($this) . "->run: begin", PEAR_LOG_INFO); $cfg = $this->getConfig(); @@ -84,23 +89,23 @@ // run procedural functions if (is_array($container[methods])) { foreach ($container[methods] as $method) { - $this->log(get_class($this) . "->run: calling function in global namespace: '$method'", LOG_DEBUG); + $this->log(get_class($this) . "->run: calling function in global namespace: '$method'", PEAR_LOG_DEBUG); call_user_func($method); } } } - $this->log(get_class($this) . "->run: end", LOG_INFO); + $this->log(get_class($this) . "->run: end", PEAR_LOG_INFO); } function getConfig($var = null) { - return $this->_config->getPart($var); + return $this->_config->get($var); } function _require_once_isolated($file) { - $this->log(get_class($this) . "->_require_once_isolated: $file", LOG_DEBUG); + $this->log(get_class($this) . "->_require_once_isolated: $file", PEAR_LOG_DEBUG); if (require_once($file)) { return 1; } @@ -108,11 +113,11 @@ function setConfigVar($var, $val) { //print "$var=$val
"; - $this->_config->setVar($var, $val); + $this->_config->set_absolute($var, $val); } function getConfigVar($var) { - return $this->_config->getVar($var); + return $this->_config->get_absolute($var); } }