Forum MDL-25170 Discussion move feature should have button so you don't do it by accident (again)

This commit is contained in:
Sam Marshall
2010-11-15 10:41:26 +00:00
parent afe38b79c6
commit 15e48a1a49
3 changed files with 24 additions and 11 deletions
+13 -5
View File
@@ -650,18 +650,26 @@ class url_select implements renderable {
* @var array of component_action
*/
var $helpicon = null;
/**
* @var string If set, makes button visible with given name for button
*/
var $showbutton = null;
/**
* Constructor
* @param array $urls list of options
* @param string $selected selected element
* @param array $nothing
* @param string $formid
* @param string $showbutton Set to text of button if it should be visible
* or null if it should be hidden (hidden version always has text 'go')
*/
public function __construct(array $urls, $selected='', $nothing=array(''=>'choosedots'), $formid=null) {
$this->urls = $urls;
$this->selected = $selected;
$this->nothing = $nothing;
$this->formid = $formid;
public function __construct(array $urls, $selected='', $nothing=array(''=>'choosedots'),
$formid=null, $showbutton=null) {
$this->urls = $urls;
$this->selected = $selected;
$this->nothing = $nothing;
$this->formid = $formid;
$this->showbutton = $showbutton;
}
/**