Back to Category class

Method __construct

public
__construct
(\Joomla\Database\DatabaseDriver $db)
Constructor
Parameters
  • \Joomla\Database\DatabaseDriver $db Database driver object.
Since
  • 1.5
Class: Category
Project: Joomla

Method __construct - Source code

/**
 * Constructor
 *
 * @param   DatabaseDriver  $db  Database driver object.
 *
 * @since   1.5
 */
public function __construct(DatabaseDriver $db)
{
    // @deprecated 5.0 This format was used by tags and versioning before 4.0 before the introduction of the
    //                 getTypeAlias function. This notation with the {} will be removed in Joomla 5
    $this->typeAlias = '{extension}.category';
    parent::__construct('#__categories', 'id', $db);
    $this->access = (int) Factory::getApplication()->get('access');
}