ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 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 {
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 {
67 $a_additional_attr['name'] .= "[{$this->getAction()}]";
68 }
69
70 return parent::renderAttributes($a_additional_attr); // TODO: Change the autogenerated stub
71 }
72}
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
$GLOBALS['loaded']
Global hash that tracks already loaded includes.