JTableSession/insert
From Joomla! Documentation
< API15:JTableSession
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
insert($sessionId, $clientId)
Parameter Name | Default Value | Description |
---|---|---|
$sessionId | ||
$clientId |
Defined in[edit]
libraries/joomla/database/table/session.php
Importing[edit]
jimport( 'joomla.database.table.session' );
Source Body[edit]
function insert($sessionId, $clientId)
{
$this->session_id = $sessionId;
$this->client_id = $clientId;
$this->time = time();
$ret = $this->_db->insertObject( $this->_tbl, $this, 'session_id' );
if( !$ret ) {
$this->setError(strtolower(get_class( $this ))."::". JText::_( 'store failed' ) ."<br />" . $this->_db->stderr());
return false;
} else {
return true;
}
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]