/include/calendar_solution_settings.php

Description

The DBMS and cache settings plus autoload function for the Calendar Solution

NOTE: If your system already has an autoloader, feel free to integrate the concepts in this autoload function into yours and then comment out the spl_autoload_register() call. If you do so and also use our PHPUnit tests, don't forget to edit the bootstrap.ini file to include your autoloader.

Constants
CALENDAR_SOLUTION_CACHE_CLASS = 'CalendarSolution_Cache_Memcache' (line 68)

The Calendar Solution Cache class to use: "CalendarSolution_Cache_Memcache"

NOTE: Leave this alone unless you are creating your own cache class.

CALENDAR_SOLUTION_DBMS = '' (line 21)

The database extension to use: "mysql", "mysqli", "pgsql", "sqlite", "sqlite3"

CALENDAR_SOLUTION_HTTP_HOST = 'localhost' (line 27)

The HTTP_HOST string used if $_SERVER['HTTP_HOST'] is empty

CALENDAR_SOLUTION_LINK_PATH = '' (line 40)

The full website path to the directory containing the calendar-detail.php page

Needed when embedding calendars into your own web pages.

If you put the calendar directory in the root directory of your website, set this to "/calendar/".

NOTE: Put a trailing slash at the end of this one!

TAASC_DIR_INCLUDE = dirname(__FILE__) (line 77)

Set the include path to the current directory

Using dirname(__FILE__) because __DIR__ introduced in PHP 5.3.

Functions
taasc_autoload_example (line 93)

An autoload function for software from The Analysis and Solutions Company

Uses the PEAR naming convention of "_" in class names becoming "/".

Checks the current directory and subdirectories thereof first, then tries via the include_path.

NOTE: If your system already has an autoloader, integrate the concepts in our autoload function into yours and then remove this one.

void taasc_autoload_example ( $class)
  • $class

Documentation generated on Wed, 21 Mar 2012 14:16:42 -0400 by phpDocumentor 1.4.4