File/program/lib/themelib.php

Description

/program/lib/themelib.php - theme factory

Includes
 require_once ($CFG->progdir."/lib/theme.class.php") (line 29)

theme class is used as a base class from which others can be derived

Functions
theme_factory (line 45)

manufacture a theme object

This loads (includes) a specific theme based on the parameter $theme_id. Relevant data is read from the database.

  • return: FALSE on error, or an instance of the specified theme class
  • todo: what if the theme is not found? Currently no alternative is loaded but FALSE is returned.
  • todo: should we massage the directory and file names of the included theme?
  • uses: $CFG
bool|object theme_factory (int $theme_id, int $area_id, int $node_id)
  • int $theme_id: denotes which theme to retrieve from database via primary key
  • int $area_id: the area we're working in
  • int $node_id: the node that is to be displayed

Documentation generated on Tue, 28 Jun 2016 19:12:17 +0200 by phpDocumentor 1.4.0