Moodle  2.2.1
http://www.collinsharper.com
url_select Class Reference
Inheritance diagram for url_select:
Collaboration diagram for url_select:

Public Member Functions

 __construct (array $urls, $selected='', $nothing=array(''=>'choosedots'), $formid=null, $showbutton=null)
 set_old_help_icon ($helppage, $title, $component= 'moodle')
 set_help_icon ($identifier, $component= 'moodle')
 set_label ($label)

Data Fields

 $urls
 $selected
 $nothing
 $attributes = array()
 $label = ''
 $class = 'urlselect'
 $disabled = false
 $tooltip = null
 $formid = null
 $helpicon = null
 $showbutton = null

Detailed Description

Simple URL selection widget description.

Since:
Moodle 2.0

Definition at line 735 of file outputcomponents.php.


Constructor & Destructor Documentation

__construct ( array urls,
selected = '',
nothing = array(''=>'choosedots'),
formid = null,
showbutton = null 
)

Constructor

Parameters:
array$urlslist of options
string$selectedselected element
array$nothing
string$formid
string$showbuttonSet to text of button if it should be visible or null if it should be hidden (hidden version always has text 'go')

Definition at line 802 of file outputcomponents.php.


Member Function Documentation

set_help_icon ( identifier,
component = 'moodle' 
)

Adds help icon.

Parameters:
string$identifierThe keyword that defines a help page
string$component
bool$linktextadd extra text to icon
Returns:
void

Definition at line 830 of file outputcomponents.php.

set_label ( label)

Sets select's label

Parameters:
string$label
Returns:
void

Definition at line 839 of file outputcomponents.php.

set_old_help_icon ( helppage,
title,
component = 'moodle' 
)

Adds help icon.

Parameters:
string$pageThe keyword that defines a help page
string$titleA descriptive text for accessibility only
string$component
bool$linktextadd extra text to icon
Returns:
void

Definition at line 819 of file outputcomponents.php.


Field Documentation

Definition at line 758 of file outputcomponents.php.

$class = 'urlselect'

Definition at line 768 of file outputcomponents.php.

$disabled = false

Definition at line 773 of file outputcomponents.php.

$formid = null

Definition at line 783 of file outputcomponents.php.

$helpicon = null

Definition at line 788 of file outputcomponents.php.

$label = ''

Definition at line 763 of file outputcomponents.php.

$nothing

Definition at line 753 of file outputcomponents.php.

$selected

Definition at line 748 of file outputcomponents.php.

$showbutton = null

Definition at line 792 of file outputcomponents.php.

$tooltip = null

Definition at line 778 of file outputcomponents.php.

$urls

Definition at line 743 of file outputcomponents.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations