[Lambda-cvs] lambda/classes lambdaClient.class.php,1.5,1.6 lambdaMySQLi.class.php,1.6,1.7
Status: Pre-Alpha
Brought to you by:
ariejan
From: Ariejan de V. <ar...@us...> - 2004-07-07 13:10:49
|
Update of /cvsroot/lambda/lambda/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27708 Modified Files: lambdaClient.class.php lambdaMySQLi.class.php Log Message: Added session handling and a new MySQL function (num_rows) Index: lambdaMySQLi.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaMySQLi.class.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** lambdaMySQLi.class.php 7 Jul 2004 10:37:50 -0000 1.6 --- lambdaMySQLi.class.php 7 Jul 2004 13:10:39 -0000 1.7 *************** *** 119,121 **** --- 119,130 ---- } + /** + * Return the number of rows in the result + * + * @param object Valid MySQL Result Resource + * @return int Number of rows in the result resource + **/ + function num_rows($res) { + return @mysql_num_rows($res); + } } \ No newline at end of file Index: lambdaClient.class.php =================================================================== RCS file: /cvsroot/lambda/lambda/classes/lambdaClient.class.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** lambdaClient.class.php 7 Jul 2004 10:13:16 -0000 1.5 --- lambdaClient.class.php 7 Jul 2004 13:10:39 -0000 1.6 *************** *** 34,37 **** --- 34,42 ---- **/ var $mysqli; + + /** + * @var object Local reference to the session handler + **/ + var $session; /** *************** *** 46,54 **** **/ function lambdaClient($client_id = 0) { ! global $handler, $mysqli; /* Create local references to the handler and mysqli connection */ $this->handler = $handler; $this->mysqli = $mysqli; /* Set the name of this class */ --- 51,60 ---- **/ function lambdaClient($client_id = 0) { ! global $handler, $mysqli, $session; /* Create local references to the handler and mysqli connection */ $this->handler = $handler; $this->mysqli = $mysqli; + $this->session = $session; /* Set the name of this class */ |