Back to Menu class

Method __construct

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

Method __construct - Source code

/**
 * Constructor
 *
 * @param   DatabaseDriver  $db  Database driver object.
 *
 * @since   1.5
 */
public function __construct(DatabaseDriver $db)
{
    parent::__construct('#__menu', 'id', $db);
    // Set the default access level.
    $this->access = (int) Factory::getApplication()->get('access');
}