From b4f97afc5f1d62aa426220f8a6eddf8b81cac730 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 16 Aug 2006 18:48:10 +0000 Subject: [PATCH] Removing unused stuff from the kernel so we can see what still needs to be moved --- kernel.php | 105 ----------------------------------------------------- 1 file changed, 105 deletions(-) diff --git a/kernel.php b/kernel.php index 041b7e7..fbe079b 100644 --- a/kernel.php +++ b/kernel.php @@ -133,91 +133,6 @@ class ISSO set_error_handler(array(&$this, '_error_handler')); } - // ################################################################### - /** - * Prepares a path for being set as the sourcepath - * - * @param string Source path or URL - * - * @return string Prepared source path - */ - public function fetch_sourcepath($source) - { - if (substr($source, strlen($source) - 1) != DIRECTORY_SEPARATOR) - { - $source .= DIRECTORY_SEPARATOR; - } - return $source; - } - - // ################################################################### - /** - * Loads a framework module - * - * @param string Name of the framework file to load - * @param string Internal variable to initialize as; to not instantiate (just require) leave it as NULL - * @param bool Globalize the internal variable? - * - * @return object Instantiated instance - */ - public function &load($framework, $asobject, $globalize = false) - { - $this->check_isso_fields(null); - - // set the object interlock - if (!method_exists($GLOBALS['isso:callback'], 'load')) - { - $GLOBALS['isso:callback'] =& $this; - $this->modules['isso'] =& $this; - } - - if ($this->is_loaded($framework)) - { - return $this->modules["$framework"]; - } - - if ($this->sourcepath == '') - { - trigger_error('Invalid sourcepath specified', E_USER_ERROR); - } - - if (file_exists($this->sourcepath . $framework . '.php')) - { - require_once($this->sourcepath . $framework . '.php'); - } - else - { - trigger_error('Could not find the framework ' . $this->sourcepath . $framework . '.php', E_USER_ERROR); - } - - if ($asobject === null) - { - return; - } - - if (isset($this->$asobject)) - { - trigger_error('Cannot instantiate framework `' . $framework . '` into `' . $asobject . '`', E_USER_ERROR); - } - - $this->$asobject = new $framework($this); - - $this->modules["$framework"] =& $this->$asobject; - - if ($globalize) - { - $GLOBALS["$asobject"] =& $this->$asobject; - } - - // allow for init_as_package to link - if (method_exists($this->modules["$framework"], 'init_as_package')) - { - $this->modules[ $this->modules["$framework"]->init_as_package() ] =& $this->modules["$framework"]; - } - - return $this->$asobject; - } - // ################################################################### /** * Prints a list of all currently loaded framework modules @@ -253,26 +168,6 @@ class ISSO } } - // ################################################################### - /** - * Verifies to see if a framework has been loaded - * - * @param string Framework name - * - * @return bool Whether or not the framework has been loaded - */ - public function is_loaded($framework) - { - if (isset($this->modules["$framework"])) - { - return true; - } - else - { - return false; - } - } - // ################################################################### /** * Prints an ISSO message -- 2.43.5