## Class mr_bootstrap

Description

MR Bootstrap

As of now, mr_bootstrap is very simple and does all the environment setup for using MR Framework. In the future, mr_bootstrap may include more methods/information regarding state and environment.

- author: Mark Nielsen
- example: See how to use this file

Located in /bootstrap.php (line 45)

Variable Summary
static boolean $init
static boolean $zend
Method Summary
static Redis redis ()
static void shutdown ()
static void startup ()
static void zend ()
Variables
static boolean $init = false (line 52)

Flag for if startup is needed or not.

- access: protected

static boolean $zend = false (line 60)

Flag for if Zend Framework has been bootstrapped or not.

- access: protected

Methods
static redis (line 150)

Bootstrap Redis

This will create a Redis instance and connect it to the Redis server. The code calling this is responsible for calling the close() method to close the connection.

- see: https://github.com/owlient/phpredis
- throws: RedisException On connection errors
- throws: Exception On configuration/setup errors
- access: public

static Redis redis ()
static shutdown (line 86)

Run shutdown routine

Recommended to call this when you don't want the Open LMS Framework to conflict with other code, EG: when using the framework on the cron.

- access: public

static void shutdown ()
static startup (line 67)

Run startup routine

- access: public

static void startup ()
static zend (line 104)

Bootstrap Zend Framework

Right now, this just sets a proper include path so you can require_once(...) Zend files.

- access: public

static void zend ()

Documentation generated on Thu, 28 Jun 2012 16:33:46 -0700 by phpDocumentor 1.4.3