ILIAS  release_8 Revision v8.24
class.ilAssFileUploadFileTableCommandButton.php
Go to the documentation of this file.
1<?php
2
26{
30 protected $action;
31
35 public function __construct($buttonType)
36 {
37 global $DIC; /* @var ILIAS\DI\Container $DIC */
38 parent::__construct($buttonType);
39 $this->lng($DIC['lng']);
40 }
41
46 public function lng(ilLanguage $lng = null): ilLanguage
47 {
48 if ($lng === null) {
49 return $this->lng;
50 }
51 $this->lng = $lng;
52 return $lng;
53 }
54
58 public function getAction(): string
59 {
60 return $this->action;
61 }
62
66 public function setAction($action): void
67 {
68 $this->action = $action;
69 }
70
71 public function renderAttributes(array $a_additional_attr = null): string
72 {
73 if (is_array($a_additional_attr) && isset($a_additional_attr['name'])) {
74 $a_additional_attr['name'] .= "[{$this->getAction()}]";
75 }
76
77 return parent::renderAttributes($a_additional_attr); // TODO: Change the autogenerated stub
78 }
79}
__construct($buttonType)
ilAssFileUploadFileTableCommandButton constructor.
renderAttributes(array $a_additional_attr=null)
Render current HTML attributes.
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc