classes and return values
| From: | Jason Gerfen | Date: | Mon, 27 Feb 2006 14:28:06 +0000 |
| Subject: | classes and return values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-231132@lists.php.net to get a copy of this message | ||
I am attempting to work up a class and because I am unfamiliar with some of the code flow I am only able to get a return value of 'object'. How can I pull the data out of a class?
Any help, or pointers on what I am doing wrong is appreciated.
class myAuth
{
var $user;
var $pass;
var $lvl;
var $id;
function login( $user, $pass ) {
require 'templates/auth.tmplte.php';
global $defined, $error_message;
if( ( empty( $user ) ) || ( empty( $pass ) ) ) {
if( $_SESSION['count']++ >= 1 ) {
$errors = "<img src=\"images/error.jpg\"> <b>You need to provide a user name and password!</b><br><br>";
}$data = new myAuthTmplte(); $data->auth_template( 1, NULL, NULL, NULL, $errors ); logs( $error_message['str_chk'] ); } } } -- Jason Gerfen Student Computing Labs, University Of Utah jason.gerfen@scl.utah.edu J. Willard Marriott Library 295 S 1500 E, Salt Lake City, UT 84112-0860 801-585-9810 "When asked what love is: Love is the Jager talking." ~Craig Baldo