note 14851 deleted from language.oop by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 19:54:56 +0000 |
| Subject: | note 14851 deleted from language.oop by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56194@lists.php.net to get a copy of this message | ||
Note Submitter: du.r@bol.com.br
----
You cannot instantiate objects from classes as below:
class UserInformation_mysql{
var $useridnr, $userid, $sessionID;
}
class UserInformation_imap{
var $userid, $pass, $sessionID;
}
class UserInformation_pgsql{
var $useridnr, $userid, $sessionID;
}
if(defined("SISMAIL_MYSQL")){
define("USER_INF_CLASS","UserInformation_mysql");
}
$UserInformation = new 'USER_INF_CLASS';
and expect it works...
but in my opinion, it should work.....