API16

API16:JTableCategory/ construct

From Joomla! Documentation

Revision as of 22:42, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JTableCategor...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[Edit Descripton]

Template:Description:JTableCategory/ construct

Syntax

__construct(&$db)
Parameter Name Default Value Description
A database connector object

Defined in

libraries/joomla/database/table/category.php

Importing

jimport( 'joomla.database.table.category' );

Source Body

public function __construct(&$db)
{
        parent::__construct('#__categories', 'id', $db);

        $this->access   = (int) JFactory::getConfig()->getValue('access');
}

[Edit See Also] Template:SeeAlso:JTableCategory/ construct

Examples

<CodeExamplesForm />