[PDF]Tuesday, February 26, 13 - Rackcdn.comc2d15aa8025b7712e74e-1505847d119f604454ecf19a71b54755.r53.cf1.rackcdn.co...
1 downloads
218 Views
829KB Size
DRUPAL BOOTSTRAP
Tuesday, February 26, 13
WHAT IS BOOTSTRAP?
• Drupal • Base
is a MVC system
architecture is based on the bootstrap
• Where
Tuesday, February 26, 13
all actions start
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 Drupal
Tuesday, February 26, 13
PHASES 1. Configuration
5. Session
2. Page Cache
6. Page header
3. Database
7. Language
4. Variables
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 • If
the access denied Drupal rules by IP
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 • Is
the default database connection
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
Tuesday, February 26, 13
system uses cache to improve performance
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
if is a CLI request or web request
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
Tuesday, February 26, 13
language_init hook
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
Tuesday, February 26, 13
• Handles • Invoke
maintenance mode
all init hooks
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