高手帮我看这个函数的作用
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 ' ) .
. $this-> _db-> stderr();
return false;
} else {
return true;
}
}
function insertobject( $table, &$object, $keyname = null, $verbose=false ) {
return;
}
下面的insertobject函数有社么作用吗?
------解决方案--------------------
insertobject写成目前这个样子没什么用的。
------解决方案--------------------
不会的.
------解决方案--------------------
要自己写构造函数