From 657e23883ceb85818dba9897d87376cf4c7b95fb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 12 Oct 2006 04:40:19 +0000 Subject: [PATCH] Finished converting kernel --- kernel.php | 117 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 104 insertions(+), 13 deletions(-) diff --git a/kernel.php b/kernel.php index 5a70fca..1e27e78 100644 --- a/kernel.php +++ b/kernel.php @@ -245,19 +245,6 @@ class ISSO */ var $magicquotes = 0; - /** - * Array of user-specified fields that are required for ISSO initialization - * fieldname => array(REQUIRED, CALLBACK PARSER, SET) - * @var array - * @access private - */ - var $fields = array( - 'webpath' => array(REQ_NO, 'fetch_sourcepath', false), - 'application' => array(REQ_YES, null, false), - 'appversion' => array(REQ_NO, null, false), - 'debug' => array(REQ_NO, null, false) - ); - // ################################################################### /** * Constructor @@ -354,6 +341,110 @@ class ISSO return $this->apppath; } + // ################################################################### + /** + * Sets the webpath + * + * @access public + * + * @param string Web path + */ + function setWebPath($path) + { + $this->webpath = $this->fetch_sourcepath($path); + } + + // ################################################################### + /** + * Gets the webpath + * + * @access public + * + * @return string Web path + */ + function getWebPath() + { + return $this->webpath; + } + + // ################################################################### + /** + * Sets the applicaiton + * + * @access public + * + * @param string Applicaiton + */ + function setApplication($app) + { + $this->application = $app; + } + + // ################################################################### + /** + * Gets the application + * + * @access public + * + * @return string Application + */ + function getApplication() + { + return $this->application; + } + + // ################################################################### + /** + * Sets the appverison + * + * @access public + * + * @param string Applicaiton version + */ + function getAppVersion($version) + { + $this->appversion = $version; + } + + // ################################################################### + /** + * Gets the appversion + * + * @access public + * + * @return string Application version + */ + function getAppVersion() + { + return $this->appversion; + } + + // ################################################################### + /** + * Sets debug mode + * + * @access public + * + * @param boolean Debug? + */ + function setDebug($debug) + { + $this->debug = $debug; + } + + // ################################################################### + /** + * Gets debug mode state + * + * @access public + * + * @return boolean Debug? + */ + function getDebug() + { + return $this->debug; + } + // ################################################################### /** * Prepares a path for being set as the sourcepath -- 2.43.5