[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/theme/bootstrapbase/renderers/ -> core_renderer.php (summary)

(no description)

File Size: 280 lines (10 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

theme_bootstrapbase_core_renderer:: (7 methods):
  notification()
  navbar()
  custom_menu()
  render_custom_menu()
  render_custom_menu_item()
  render_tabtree()
  render_tabobject()

theme_bootstrapbase_core_renderer_maintenance:: (1 method):
  notification()


Class: theme_bootstrapbase_core_renderer  - X-Ref

Renderers to align Moodle's HTML with that expected by Bootstrap

notification($message, $classes = 'notifyproblem')   X-Ref
No description

navbar()   X-Ref
No description

custom_menu($custommenuitems = '')   X-Ref
No description

render_custom_menu(custom_menu $menu)   X-Ref
No description

render_custom_menu_item(custom_menu_item $menunode, $level = 0 )   X-Ref
No description

render_tabtree(tabtree $tabtree)   X-Ref
Renders tabtree

param: tabtree $tabtree
return: string

render_tabobject(tabobject $tab)   X-Ref
Renders tabobject (part of tabtree)

This function is called from {@link core_renderer::render_tabtree()}
and also it calls itself when printing the $tabobject subtree recursively.

param: tabobject $tabobject
return: string HTML fragment

Class: theme_bootstrapbase_core_renderer_maintenance  - X-Ref

Overridden core maintenance renderer.

This renderer gets used instead of the standard core_renderer during maintenance
tasks such as installation and upgrade.
We override it in order to style those scenarios consistently with the regular
bootstrap look and feel.

notification($message, $classes = 'notifyproblem')   X-Ref
Renders notifications for maintenance scripts.

We need to override this method in the same way we do for the core_renderer maintenance method
found above.
Please note this isn't required of every function, only functions used during maintenance.
In this case notification is used to print errors and we want pretty errors.

param: string $message
param: string $classes
return: string



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1