ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAssQuestionPreviewToolbarGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
5
13{
17 public $lng = null;
18
20
21 public function __construct(ilLanguage $lng)
22 {
23 $this->lng = $lng;
24
25 parent::__construct();
26 }
27
28 public function build()
29 {
30 $this->addFormButton($this->lng->txt('qpl_reset_preview'), $this->getResetPreviewCmd(), '', true);
31 }
32
34 {
35 $this->resetPreviewCmd = $resetPreviewCmd;
36 }
37
38 public function getResetPreviewCmd()
39 {
41 }
42}
language handling
addFormButton($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
Add form button to toolbar.