php的stdClass是什么呢?
这两天看drupal的代码,发现他常用这个类
可是查了整个文件也没找到stdClass的定义。估计是内置对象,查手册。手册上查到了,stdClass是zent保留的一个类。仅此而已?
google中文一查,多是php手册上的统一句话。后来看到maboo中国上有人提这个问题,哪个lang3竟然回答让别人善用资源管理器??太不厚道了。
google查全部语言。总算查到一点信息。
Mambo.php
class mosMainFrame {
................
/**
* @return moSUSEr A user object with the information from the current session
*/
function getUser() {
$user = new mosUser( $this->_db );
$user->id = intval( $this->_session->userid );
$user->username = $this->_session->username;
$user->usertype = $this->_session->usertype;
$user->gid = intval( $this->_session->gid );
return $user;
}
/**
}
/* class mosUser written :
/**
* Users Table Class
*
* Provides access to the mos_templates table
*/
class mosUser extends mosDBTable {
......
function mosUser( &$database ) {
$this->mosDBTable( 'mos_users', 'id', $database );
}
*/
And continue:
function _setConfig( $basePath='.' ) {
.............
$this->_config = new stdClass();
...........
}
But i don't find class stdClass() ????
Recommend me ,please .
Thanks.