/**
* 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');
}