drupal bootstrapc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · uses • the...
TRANSCRIPT
![Page 1: DRUPAL BOOTSTRAPc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53… · USES • The index.php in Drupal • The cron.php in Drupal • For integration with other systems](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/1.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/3.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/4.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/5.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/7.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/8.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/9.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/10.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/11.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/12.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070212/610470d474de1030de6f9bc6/html5/thumbnails/13.jpg)
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