读书人

高手帮小弟我看这个函数的作用

发布时间: 2012-03-03 15:33:03 作者: rapoo

高手帮我看这个函数的作用
function insert($sessionId, $clientId)
{
$this-> session_id = $sessionId;
$this-> client_id = $clientId;

$this-> time = time();
$ret = $this-> _db-> insertObject( $this-> _tbl, $this );

if( !$ret ) {
$this-> _error = strtolower(get_class( $this )). ":: ". JText::_( 'store failed ' ) . " <br /> " . $this-> _db-> stderr();
return false;
} else {
return true;
}
}

function insertObject( $table, &$object, $keyName = NULL, $verbose=false ) {
return;
}
下面的insertObject函数有社么作用吗?

[解决办法]
insertObject写成目前这个样子没什么用的。
[解决办法]
不会的.
[解决办法]
要自己写构造函数

读书人网 >PHP

热点推荐