ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAssFileUploadFileTableCommandButton.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/Button/classes/class.ilSubmitButton.php';
5
13{
17 protected $lng;
18
22 protected $action;
23
27 public function __construct($buttonType)
28 {
29 global $DIC; /* @var ILIAS\DI\Container $DIC */
30 parent::__construct($buttonType);
31 $this->lng($DIC['lng']);
32 }
33
38 public function lng(ilLanguage $lng = null)
39 {
40 if ($lng === null) {
41 return $this->lng;
42 }
43
44 $this->lng = $lng;
45 }
46
50 public function getAction()
51 {
52 return $this->action;
53 }
54
58 public function setAction($action)
59 {
60 $this->action = $action;
61 }
62
63 public function renderAttributes(array $a_additional_attr = null)
64 {
65 if (is_array($a_additional_attr) && isset($a_additional_attr['name'])) {
66 $a_additional_attr['name'] .= "[{$this->getAction()}]";
67 }
68
69 return parent::renderAttributes($a_additional_attr); // TODO: Change the autogenerated stub
70 }
71}
An exception for terminatinating execution or to throw for unit testing.
__construct($buttonType)
ilAssFileUploadFileTableCommandButton constructor.
renderAttributes(array $a_additional_attr=null)
Render current HTML attributes.
language handling
global $DIC
Definition: saml.php:7