|
Moodle
2.2.1
http://www.collinsharper.com
|
This class represents the configuration variables of a Moodle theme.
All the variables with access: public below (with a few exceptions that are marked) are the properties you can set in your theme's config.php file.
There are also some methods and protected variables that are part of the inner workings of Moodle's themes system. If you are just editing a theme's config.php file, you can just ignore those, and the following information for developers.
Normally, to create an instance of this class, you should use the theme_config::load() factory method to load a themes config.php file. However, normally you don't need to bother, because moodle_page (that is, $PAGE) will create one for you, accessible as $PAGE->theme.
Definition at line 99 of file outputlib.php.
| css_content | ( | ) |
Returns the content of the one huge CSS merged from all style sheets.
Definition at line 737 of file outputlib.php.


| css_files | ( | ) |
Returns an array of organised CSS files required for this output
Definition at line 669 of file outputlib.php.


| css_files_get_contents | ( | $ | file, |
| array $ | keys | ||
| ) | [protected] |
Given an array of file paths or a single file path loads the contents of the CSS file, processes it then returns it in the same structure it was given.
Can be used recursively on the results of {
| array | string | $file | An array of file paths or a single file path |
| array | $keys | An array of previous array keys [recursive addition] |
Definition at line 753 of file outputlib.php.

| css_urls | ( | moodle_page $ | page | ) |
Get the stylesheet URL of this theme
| bool | $encoded | false means use & and true use & in URLs |
Definition at line 593 of file outputlib.php.

| static diagnose | ( | $ | themename | ) | [static] |
Theme diagnostic code. It is very problematic to send debug output to the actual CSS file, instead this functions is supposed to diagnose given theme and highlights all potential problems. This information should be available from the theme selection page or some other debug page for theme designers.
| string | $themename |
Definition at line 378 of file outputlib.php.
| editor_css_files | ( | ) |
Returns the content of the CSS to be used in editor content
Definition at line 550 of file outputlib.php.


| editor_css_url | ( | $ | encoded = true | ) |
Returns the stylesheet URL of this editor content
| bool | $encoded | false means use & and true use & in URLs |
Definition at line 532 of file outputlib.php.

Get the list of all block regions known to this theme in all templates.
Definition at line 1173 of file outputlib.php.
| get_region_name | ( | $ | region, |
| $ | theme | ||
| ) | [protected] |
Definition at line 1149 of file outputlib.php.
| get_renderer | ( | moodle_page $ | page, |
| $ | component, | ||
| $ | subtype = null, |
||
| $ | target = null |
||
| ) |
Get the renderer for a part of Moodle for this theme.
| moodle_page | $page | the page we are rendering |
| string | $module | the name of part of moodle. E.g. 'core', 'quiz', 'qtype_multichoice'. |
| string | $subtype | optional subtype such as 'news' resulting to 'mod_forum_news' |
| string | $target | one of rendering target constants |
Definition at line 1061 of file outputlib.php.
| get_theme_name | ( | ) |
Returns the human readable name of the theme
Definition at line 1188 of file outputlib.php.
| javascript_content | ( | $ | type | ) |
Returns the content of the one huge javascript file merged from all theme javascript files.
| bool | $inhead |
Definition at line 856 of file outputlib.php.
| javascript_files | ( | $ | type | ) |
| javascript_url | ( | $ | inhead | ) |
Get the javascript URL of this theme
| bool | $inhead | true means head url, false means footer |
Definition at line 771 of file outputlib.php.

| layout_file | ( | $ | pagelayout | ) |
Given the settings of this theme, and the page pagelayout, return the full path of the page layout file to use.
Used by core_renderer::header().
| string | $pagelayout | the the page layout name. |
Definition at line 1093 of file outputlib.php.

| layout_info_for_page | ( | $ | pagelayout | ) | [protected] |
Get the information from $layouts for this type of page.
| string | $pagelayout | the the page layout name. |
Definition at line 1075 of file outputlib.php.

| static load | ( | $ | themename | ) | [static] |
Load the config.php file for a particular theme, and return an instance of this class. (That is, this is a factory method.)
| string | $themename | the name of the theme. |
Definition at line 345 of file outputlib.php.


| pagelayout_options | ( | $ | pagelayout | ) |
Returns auxiliary page layout options specified in layout configuration array.
| string | $pagelayout |
Definition at line 1126 of file outputlib.php.
| pix_url | ( | $ | imagename, |
| $ | component | ||
| ) |
Return the URL for an image
| string | $imagename | the name of the icon. |
| string | $component,specification | of one plugin like in get_string() |
Definition at line 901 of file outputlib.php.

| post_process | ( | $ | css | ) |
Returns output renderer prefixes, these are used when looking for the overridden renderers in themes.
Definition at line 515 of file outputlib.php.

| resolve_excludes | ( | $ | variable, |
| $ | default = null |
||
| ) | [protected] |
Resolves an exclude setting to the theme's setting is applicable or the setting of its closest parent.
| string | $variable | The name of the setting the exclude setting to resolve |
Definition at line 833 of file outputlib.php.

| resolve_image_location | ( | $ | image, |
| $ | component | ||
| ) |
Resolves the real image location.
| string | $image | name of image, may contain relative path |
| string | $component |
Definition at line 923 of file outputlib.php.

| setup_blocks | ( | $ | pagelayout, |
| $ | blockmanager | ||
| ) |
Inform a block_manager about the block regions this theme wants on this page layout.
| string | $pagelayout | the general type of the page. |
| block_manager | $blockmanager | the block_manger to set up. |
Definition at line 1141 of file outputlib.php.
| $csspostprocess = null |
Definition at line 256 of file outputlib.php.
| $dir |
Definition at line 302 of file outputlib.php.
| $editor_sheets = array() |
Definition at line 148 of file outputlib.php.
| $enable_dock = false |
Definition at line 316 of file outputlib.php.
| $enablecourseajax = true |
Definition at line 286 of file outputlib.php.
| $hidefromselector = false |
Definition at line 323 of file outputlib.php.
| $javascripts = array() |
Definition at line 156 of file outputlib.php.
| $javascripts_footer = array() |
Definition at line 164 of file outputlib.php.
| $larrow = null |
Definition at line 280 of file outputlib.php.
Definition at line 225 of file outputlib.php.
| $name |
Definition at line 295 of file outputlib.php.
$parent_configs = array() [protected] |
Definition at line 336 of file outputlib.php.
Definition at line 115 of file outputlib.php.
| $parents_exclude_javascripts = null |
Definition at line 173 of file outputlib.php.
| $parents_exclude_sheets = null |
Definition at line 132 of file outputlib.php.
| $plugins_exclude_sheets = null |
Definition at line 140 of file outputlib.php.
| $rarrow = null |
Definition at line 268 of file outputlib.php.
Definition at line 245 of file outputlib.php.
$rf = null [protected] |
Definition at line 330 of file outputlib.php.
| $setting = null |
Definition at line 309 of file outputlib.php.
Definition at line 123 of file outputlib.php.
| const DEFAULT_THEME = 'standard' |
Definition at line 103 of file outputlib.php.