[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/badges/ -> renderer.php (summary)

Renderer for use with the badges output

Author: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
Copyright: 2012 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 1151 lines (51 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 7 classes

core_badges_renderer:: (18 methods):
  print_badges_list()
  recipients_selection_form()
  print_badge_overview()
  print_badge_table_actions()
  render_issued_badge()
  render_external_badge()
  render_badge_user_collection()
  render_badge_collection()
  render_badge_management()
  print_badge_tabs()
  print_badge_status_box()
  print_badge_criteria()
  print_criteria_actions()
  render_badge_recipients()
  helper_sortable_heading()
  helper_fullname_format()
  helper_search_form()
  definition_list()

issued_badge:: (1 method):
  __construct()

external_badge:: (1 method):
  __construct()

badge_recipients:: (1 method):
  __construct()

badge_collection:: (1 method):
  __construct()

badge_management:: (0 methods):

badge_user_collection:: (1 method):
  __construct()


Class: core_badges_renderer  - X-Ref

Standard HTML output renderer for badges

print_badges_list($badges, $userid, $profile = false, $external = false)   X-Ref
No description

recipients_selection_form(user_selector_base $existinguc, user_selector_base $potentialuc)   X-Ref
No description

print_badge_overview($badge, $context)   X-Ref
No description

print_badge_table_actions($badge, $context)   X-Ref
No description

render_issued_badge(issued_badge $ibadge)   X-Ref
No description

render_external_badge(external_badge $ibadge)   X-Ref
No description

render_badge_user_collection(badge_user_collection $badges)   X-Ref
No description

render_badge_collection(badge_collection $badges)   X-Ref
No description

render_badge_management(badge_management $badges)   X-Ref
No description

print_badge_tabs($badgeid, $context, $current = 'overview')   X-Ref
No description

print_badge_status_box(badge $badge)   X-Ref
Prints badge status box.

return: Either the status box html as a string or null

print_badge_criteria(badge $badge, $short = '')   X-Ref
Returns information about badge criteria in a list form.

param: badge $badge Badge objects
param: string $short Indicates whether to print full info about this badge
return: string $output HTML string to output

print_criteria_actions(badge $badge)   X-Ref
No description

render_badge_recipients(badge_recipients $recipients)   X-Ref
No description

helper_sortable_heading($text, $sortid = null, $sortby = null, $sorthow = null)   X-Ref
Renders a text with icons to sort by the given column

This is intended for table headings.

param: string $text    The heading text
param: string $sortid  The column id used for sorting
param: string $sortby  Currently sorted by (column id)
param: string $sorthow Currently sorted how (ASC|DESC)
return: string

helper_fullname_format()   X-Ref
Tries to guess the fullname format set at the site

return: string fl|lf

helper_search_form($search)   X-Ref
Renders a search form

param: string $search Search string
return: string HTML

definition_list(array $items, array $attributes = array()   X-Ref
Renders a definition list

param: array $items the list of items to define
param: array

Class: issued_badge  - X-Ref

An issued badges for badge.php page

__construct($hash)   X-Ref
Initializes the badge to display

param: string $hash Issued badge hash

Class: external_badge  - X-Ref

An external badges for external.php page

__construct($badge, $recipient)   X-Ref
Initializes the badge to display

param: object $badge External badge information.
param: int $recipient User id.

Class: badge_recipients  - X-Ref

Badge recipients rendering class

__construct($holders)   X-Ref
Initializes the list of users to display

param: array $holders List of badge holders

Class: badge_collection  - X-Ref

Collection of all badges for view.php page

__construct($badges)   X-Ref
Initializes the list of badges to display

param: array $badges Badges to render

Class: badge_management  - X-Ref

Collection of badges used at the index.php page

Class: badge_user_collection  - X-Ref

Collection of user badges used at the mybadges.php page

__construct($badges, $userid)   X-Ref
Initializes user badge collection.

param: array $badges Badges to render
param: int $userid Badges owner



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1