JTableSession/ construct: Difference between revisions
From Joomla! Documentation
No edit summary |
m clean up |
||
| Line 2: | Line 2: | ||
Constructor | Constructor | ||
{{Description:JTableSession/__construct}} | |||
{{subst:Description:JTableSession/__construct}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 38: | Line 36: | ||
</source> | </source> | ||
{{subst:SeeAlso:JTableSession/__construct}} | |||
{{SeeAlso:JTableSession/__construct}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:31, 24 March 2017
Description
Constructor
{{subst:Description:JTableSession/__construct}}
Syntax
__construct(&$db)
| Parameter Name | Default Value | Description |
|---|---|---|
| &$db | A database connector object |
Defined in
libraries/joomla/database/table/session.php
Importing
jimport( 'joomla.database.table.session' );
Source Body
function __construct(&$db)
{
parent::__construct('#__session', 'session_id', $db);
$this->guest = 1;
$this->username = '';
}
{{subst:SeeAlso:JTableSession/__construct}}
Examples
<CodeExamplesForm />