drupal bootstrapc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · uses • the...

Post on 04-Mar-2021

12 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

DRUPAL BOOTSTRAP

Tuesday, February 26, 13

WHAT IS BOOTSTRAP?

•Drupal is a MVC system

• Base architecture is based on the bootstrap

•Where all actions start

Tuesday, February 26, 13

USES• The index.php in Drupal

• The cron.php in Drupal

• For integration with other systems

• To execute “light” calls

• For high performance process

• Command line applications (can be handy)

• A more restrict DrupalTuesday, February 26, 13

PHASES

1. Configuration

2. Page Cache

3. Database

4. Variables

5. Session

6. Page header

7. Language

8. Full

Menu Handler

Tuesday, February 26, 13

CONFIGURATION PHASE

• Initializes the configuration

•Determinate which settings.php to use

• Load the basic configuration and settings for that specific site

• Also sets some basic ground for Drupal to work

Tuesday, February 26, 13

PAGE CACHE PHASE

• Includes the cache system specified by the settings

• Support page caching without use of database

• Checks the access denied Drupal rules by IP

• If hits a cache, returns and no more work is needed

Tuesday, February 26, 13

DATABASE PHASE

• If no database system set up, attempt an install

• Loads the corresponding database objects for the DB type

• Initialize the default database connection

• Is also available any secondary database from this point

Tuesday, February 26, 13

VARIABLES PHASE

• Uses the Drupal Lock system (which is DB based and can be override)

• Set up the variable system

• Loads all the variables

• Variable system uses cache to improve performance

Tuesday, February 26, 13

SESSION PHASE

•Determine the way session is implemented

• Initialize the session

• Session implementation can be override

Tuesday, February 26, 13

PAGE HEADER PHASE

• Invokes boot hook

• Handles if is a CLI request or web request

• If is a web request it sets up HTTP basic headers

•Drupal can be used on command line or with Drush for example

Tuesday, February 26, 13

LANGUAGE PHASE

• Sets up 118n (Internationalization)

• Sets up Drupal multilingual functionalities

• Invoke language_init hook

Tuesday, February 26, 13

FULL PHASE

• Sets up and initializes path, theme, pager, menu, table sort, file, unicode, image, forms, mail, actions, token, error

• Gets file streams wrappers

• Load all modules

• Handles maintenance mode

• Invoke all init hooks

Tuesday, February 26, 13

MENU HANDLER

• Can also be used forcing a specific path

• Handles site offline

• Handles access permissions of the menus

• Triggers 404’s

•Delivers page (triggers the page theming)

Tuesday, February 26, 13

top related