Jump to table of contents

Core Classes

The Core classes (in the classes/core directory) provide fundamentally important functions and several of the classes upon which much of the functionality of OJS 2.x is based. They are simple in and of themselves, with flexibility being provided through their extension.

  • Core.inc.php: Provides miscellaneous system-wide functions
  • DataObject.inc.php: All Model classes extend this class
  • Handler.inc.php: All Page classes extend this class
  • Registry.inc.php: Provides a system-wide facility for global values, such as system startup time, to be stored and retrieved
  • Request.inc.php: Provides a wrapper around HTTP requests, and provides related commonly-used functions
  • String.inc.php: Provides locale-independent string-manipulation functions and related commonly-used functions

In particular, the Request class (defined in classes/core/Request.inc.php) contains a number of functions to obtain information about the remote user and build responses. All URLs generated by OJS to link into itself are built using the Request::url function; likewise, all redirects into OJS are built using the Request::redirect function.