Code structure
From ReservesDirect: Open Source EReserves System
Home :: Features :: Screenshots :: Demo (http://www.reservesdirect.org/demo/index.html) :: Documentation :: Downloads :: Support :: Blog (http://www.reservesdirect.org/blog) :: Join Us!
ReservesDirect Documentation: Contents | Library staff handbook | System administrator handbook | Developer handbook
| Table of contents |
[edit]
Overview
For the most part RD follows a simple process flow.
- index.php -- basically a large switch statement, determines which manager to call based on $_REQUEST['cmd'] value
- secure/managers/*manager.php -- includes needed classes and prepares data for display then directs to corresponding displayer
- secure/displayer/*displayer.php -- displays data to user
[edit]
Directory structure
- Root -- contains application controllers 'The things that do things'
- CSS -- css stylesheets 'skins'
- Help -- help pages
- images -- system images; images on reserves are not stored here
- rss -- the rss system
- secure, “not so secure” -the files in this directory are intended to be read only by the php interpreter
- displayers -- php code that generates html
- html -- pretty much straight html
- javascript -- js files
- classes -- base classes
- interface -- user classes
- jscalendar -- calendar widget
- managers -- business logic
[edit]
Classes
[edit]
Managers
[edit]
Displayers
[edit]
HTML
[edit]
Interface
[edit]
Javascript Widgets
[edit]
Remote System Tie-ins
[edit]
Cron Jobs
requestNotifier.php: When a physical item is requested it is added to the processing queue. This script scans the processing queue and sends notifications to the contact responsible for processing the queue. The contact is specified in the libraries table. It is recommended that this script be run daily, however run it as often as you would like to send notifications.
