JTableUser/ construct: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
Line 1: | Line 1: | ||
===Syntax=== | ===Syntax=== | ||
<source lang="php">__construct(&$db)</source> | <source lang="php">__construct(&$db)</source> | ||
Line 33: | Line 31: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__construct | category=__construct | ||
category=JTableUser | category=JTableUser | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> |
Latest revision as of 02:12, 25 March 2017
Syntax
__construct(&$db)
Parameter Name | Default Value | Description |
---|---|---|
&$db | A database connector object |
Defined in
libraries/joomla/database/table/user.php
Importing
jimport( 'joomla.database.table.user' );
Source Body
function __construct(&$db)
{
parent::__construct('#__users', 'id', $db);
// Initialise.
$this->id = 0;
$this->sendEmail = 0;
}
Examples
Code Examples