Home > Backend Development > PHP Tutorial > 高手帮小弟我看这个函数的作用

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

WBOY
Release: 2016-06-13 10:00:19
Original
968 people have browsed it

高手帮我看这个函数的作用
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写成目前这个样子没什么用的。
------解决方案--------------------
不会的.
------解决方案--------------------
要自己写构造函数

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template