ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
4 require_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 }
addFormButton($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
Add form button to toolbar.
language handling