PHP Class Contao\BackendSwitch

Inheritance: extends Backend
Mostra file Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( ) Initialize the controller
run ( ) : Response Run the controller and parse the template

Protected Methods

Method Description
getDatalistOptions ( ) Find ten matching usernames and return them as JSON

Private Methods

Method Description
disableProfiler ( ) Disable the profile

Method Details

__construct() public method

1. Import the user 2. Call the parent constructor 3. Authenticate the user 4. Load the language files DO NOT CHANGE THIS ORDER!
public __construct ( )

getDatalistOptions() protected method

Find ten matching usernames and return them as JSON
protected getDatalistOptions ( )

run() public method

Run the controller and parse the template
public run ( ) : Response
return Symfony\Component\HttpFoundation\Response