ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 require_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  parent::__construct($buttonType);
30  $this->lng(isset($GLOBALS['DIC']) ? $GLOBALS['DIC']['lng'] : $GLOBALS['lng']);
31  }
32 
37  public function lng(ilLanguage $lng = null)
38  {
39  if ($lng === null) {
40  return $this->lng;
41  }
42 
43  $this->lng = $lng;
44  }
45 
49  public function getAction()
50  {
51  return $this->action;
52  }
53 
57  public function setAction($action)
58  {
59  $this->action = $action;
60  }
61 
62  public function renderAttributes(array $a_additional_attr = null)
63  {
64  if (is_array($a_additional_attr) && isset($a_additional_attr['name'])) {
65  $a_additional_attr['name'] .= "[{$this->getAction()}]";
66  }
67 
68  return parent::renderAttributes($a_additional_attr); // TODO: Change the autogenerated stub
69  }
70 }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
__construct($buttonType)
ilAssFileUploadFileTableCommandButton constructor.
Create styles array
The data for the language used.
language handling