[Lambda-cvs] lambda/classes lambdaClient.class.php,1.4,1.5 lambdaComponent.class.php,1.2,1.3 lambdaE
Status: Pre-Alpha
Brought to you by:
ariejan
From: Ariejan de V. <ar...@us...> - 2004-07-07 10:13:33
|
Update of /cvsroot/lambda/lambda/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30938 Modified Files: lambdaClient.class.php lambdaComponent.class.php lambdaError.class.php lambdaMySQLi.class.php lambdaObject.class.php lambdaTemplate.class.php Log Message: Adapted classes to PHP4 syntax Index: lambdaError.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaError.class.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lambdaError.class.php 19 Jun 2004 10:25:22 -0000 1.3 --- lambdaError.class.php 7 Jul 2004 10:13:16 -0000 1.4 *************** *** 20,24 **** /* Constructor */ ! function __construct() { $this->setClassName("handler"); } --- 20,24 ---- /* Constructor */ ! function lambdaError() { $this->setClassName("handler"); } Index: lambdaObject.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaObject.class.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lambdaObject.class.php 19 Jun 2004 10:25:22 -0000 1.3 --- lambdaObject.class.php 7 Jul 2004 10:13:16 -0000 1.4 *************** *** 13,22 **** * @package lambdaCore **/ ! abstract class lambdaObject { /** * @var string Descriptive name of this class **/ ! private $classname; /* --- 13,22 ---- * @package lambdaCore **/ ! class lambdaObject { /** * @var string Descriptive name of this class **/ ! var $classname; /* Index: lambdaComponent.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaComponent.class.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lambdaComponent.class.php 21 Jun 2004 12:20:27 -0000 1.2 --- lambdaComponent.class.php 7 Jul 2004 10:13:16 -0000 1.3 *************** *** 13,52 **** * @package lambdaCore **/ ! abstract class lambdaComponent extends lambdaObject { /** * @var string Name of this component **/ ! protected $component_name; /** * @var string Version of this component **/ ! protected $component_version; /** * @var string Author of this component **/ ! protected $component_author; /** * @var string Copyright of this component **/ ! protected $component_copyright; /** * @var string URL or Email address of this component **/ ! protected $component_contact; /** * @var object Error handler reference **/ ! protected $handler; /** * @var object MySQLi reference **/ ! protected $mysqli; --- 13,52 ---- * @package lambdaCore **/ ! class lambdaComponent extends lambdaObject { /** * @var string Name of this component **/ ! var $component_name; /** * @var string Version of this component **/ ! var $component_version; /** * @var string Author of this component **/ ! var $component_author; /** * @var string Copyright of this component **/ ! var $component_copyright; /** * @var string URL or Email address of this component **/ ! var $component_contact; /** * @var object Error handler reference **/ ! var $handler; /** * @var object MySQLi reference **/ ! var $mysqli; *************** *** 57,61 **** * handler and the mysqli object. **/ ! function __construct() { global $handler, $mysqli; --- 57,61 ---- * handler and the mysqli object. **/ ! function lambdaComponent() { global $handler, $mysqli; Index: lambdaMySQLi.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaMySQLi.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** lambdaMySQLi.class.php 19 Jun 2004 10:25:22 -0000 1.4 --- lambdaMySQLi.class.php 7 Jul 2004 10:13:16 -0000 1.5 *************** *** 10,36 **** /** ! * Wrapper class for PHP5's mysqli class * @package lambdaCore **/ ! class lambdaMySQLi extends mysqli { ! } ! ! /* ! * Extra MySQLi functions ! */ ! ! /** ! * Parse the configuration array for use with mysqli ! * @param array Array with MySQLi configuration options ! * Replaced empty variables in config with null ! */ ! function lambda_mysqli_parseConfig($config) { ! while(list($key,$val) = each($config)) { ! if( empty($config[$key]) || !isset($config[$key])) { ! $config[$key] = null; ! } ! } ! return $config; ! } --- 10,18 ---- /** ! * Wrapper class for PHP's mysql functions * @package lambdaCore **/ ! class lambdaMySQLi { ! } \ No newline at end of file Index: lambdaClient.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaClient.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** lambdaClient.class.php 21 Jun 2004 12:24:58 -0000 1.4 --- lambdaClient.class.php 7 Jul 2004 10:13:16 -0000 1.5 *************** *** 18,37 **** * @var int Set to '0' for new or no client, otherwise set to a valid client ID **/ ! private $client_id; /** * @var array Associative array containing all data on this client. **/ ! private $data; /** * @var object Local reference to the error handler object **/ ! private $handler; /** * @var object Local reference to lambdaMySQLi **/ ! private $mysqli; /** --- 18,37 ---- * @var int Set to '0' for new or no client, otherwise set to a valid client ID **/ ! var $client_id; /** * @var array Associative array containing all data on this client. **/ ! var $data; /** * @var object Local reference to the error handler object **/ ! var $handler; /** * @var object Local reference to lambdaMySQLi **/ ! var $mysqli; /** *************** *** 45,49 **** * @param int Client ID or 0 for new client **/ ! function __construct($client_id = 0) { global $handler, $mysqli; --- 45,49 ---- * @param int Client ID or 0 for new client **/ ! function lambdaClient($client_id = 0) { global $handler, $mysqli; *************** *** 170,174 **** * @param object New valule for $name **/ ! function __set($name, $val) { /* Deny access for some properties */ $denied_properties = array('id', 'register_date'); --- 170,174 ---- * @param object New valule for $name **/ ! function set($name, $val) { /* Deny access for some properties */ $denied_properties = array('id', 'register_date'); *************** *** 198,202 **** * @return object Value of $data[$name] or null if that entry does not exist **/ ! function __get($name) { if(isset($this->data[$name])) { return $this->data[$name]; --- 198,202 ---- * @return object Value of $data[$name] or null if that entry does not exist **/ ! function get($name) { if(isset($this->data[$name])) { return $this->data[$name]; Index: lambdaTemplate.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaTemplate.class.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** lambdaTemplate.class.php 22 Jun 2004 21:20:55 -0000 1.5 --- lambdaTemplate.class.php 7 Jul 2004 10:13:16 -0000 1.6 *************** *** 19,43 **** * @var array Keys (tags) which will be replaced in this template, of the form {KEY} **/ ! private $keys; /** * @var array The strings that the keys will be replaced with **/ ! private $values; /** * @var string The (unprocessed) template data **/ ! private $templateData; /** * @var object Error handler reference **/ ! private $handler; /** * Sets the classname, sets up error handler **/ ! function __construct() { global $handler; $this->handler = $handler; --- 19,43 ---- * @var array Keys (tags) which will be replaced in this template, of the form {KEY} **/ ! var $keys; /** * @var array The strings that the keys will be replaced with **/ ! var $values; /** * @var string The (unprocessed) template data **/ ! var $templateData; /** * @var object Error handler reference **/ ! var $handler; /** * Sets the classname, sets up error handler **/ ! function lambdaTemplate() { global $handler; $this->handler = $handler; |