13
DRUPAL BOOTSTRAP Tuesday, February 26, 13

DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

  • Upload
    others

  • View
    14

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

DRUPAL BOOTSTRAP

Tuesday, February 26, 13

Page 2: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

WHAT IS BOOTSTRAP?

•Drupal is a MVC system

• Base architecture is based on the bootstrap

•Where all actions start

Tuesday, February 26, 13

Page 3: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 4: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 5: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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 6: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 7: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 8: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 9: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

SESSION PHASE

•Determine the way session is implemented

• Initialize the session

• Session implementation can be override

Tuesday, February 26, 13

Page 10: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 11: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

LANGUAGE PHASE

• Sets up 118n (Internationalization)

• Sets up Drupal multilingual functionalities

• Invoke language_init hook

Tuesday, February 26, 13

Page 12: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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

Page 13: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems

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