ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilAssFileUploadFileTableCommandButton Class Reference
+ Inheritance diagram for ilAssFileUploadFileTableCommandButton:
+ Collaboration diagram for ilAssFileUploadFileTableCommandButton:

Public Member Functions

 __construct ($buttonType)
 ilAssFileUploadFileTableCommandButton constructor. More...
 
 lng (ilLanguage $lng=null)
 
 getAction ()
 
 setAction ($action)
 
 renderAttributes (array $a_additional_attr=null)
 Render current HTML attributes. More...
 
- Public Member Functions inherited from ilSubmitButton
 setCommand ($a_value)
 Set submit command. More...
 
 getCommand ()
 Get submit command. More...
 
 render ()
 Render HTML. More...
 
- Public Member Functions inherited from ilButtonBase
 __clone ()
 Clone instance. More...
 
 getType ()
 Get button type. More...
 
 setId ($a_value)
 Set id. More...
 
 getId ()
 Get id. More...
 
 setCaption ($a_value, $a_is_lng_id=true)
 Set caption. More...
 
 getCaption ($a_translate=true)
 Get caption. More...
 
 setPrimary ($a_value)
 Toggle primary status. More...
 
 isPrimary ()
 Get primary status. More...
 
 setOmitPreventDoubleSubmission ($a_value)
 Toggle double submission prevention status. More...
 
 getOmitPreventDoubleSubmission ()
 Get double submission prevention status. More...
 
 setOnClick ($a_value)
 Set onclick. More...
 
 getOnClick ()
 Get onclick. More...
 
 setAccessKey ($a_value)
 Set access key. More...
 
 getAccessKey ()
 Get access key. More...
 
 setDisabled ($a_value)
 Toggle disabled status. More...
 
 isDisabled ()
 Get disabled status. More...
 
 addCSSClass ($a_value)
 Add CSS class. More...
 
 getCSSClasses ()
 Get CSS class(es) More...
 
 applyDefaultCss ($apply_default_css=null)
 
 render ()
 Render HTML. More...
 
 getToolbarHTML ()
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 

Protected Attributes

 $lng
 
 $action
 
- Protected Attributes inherited from ilSubmitButton
 $cmd
 
- Protected Attributes inherited from ilButtonBase
 $lng
 
 $type
 
 $id
 
 $caption
 
 $caption_is_lng_id
 
 $primary
 
 $omit_prevent_double_submission
 
 $onclick
 
 $acc_key
 
 $disabled
 
 $css = array()
 
 $apply_default_css = true
 

Additional Inherited Members

- Static Public Member Functions inherited from ilSubmitButton
static getInstance ()
 Factory. More...
 
static getInstance ()
 Factory. More...
 
- Data Fields inherited from ilButtonBase
const TYPE_SUBMIT = 1
 
const TYPE_LINK = 2
 
const TYPE_SPLIT = 3
 
const TYPE_BUTTON = 4
 
- Protected Member Functions inherited from ilButtonBase
 __construct ($a_type)
 Constructor. More...
 
 setType ($a_value)
 Set button type. More...
 
 gatherCssClasses ()
 Gather all active CSS classes. More...
 
 renderAttributesHelper (array $a_attr)
 Render HTML node attributes. More...
 
 renderAttributes (array $a_additional_attr=null)
 Render current HTML attributes. More...
 
 prepareRender ()
 Prepare render. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAssFileUploadFileTableCommandButton::__construct (   $buttonType)

ilAssFileUploadFileTableCommandButton constructor.

Reimplemented from ilButtonBase.

Reimplemented in ilAssFileUploadFileTableDeleteButton, and ilAssFileUploadFileTableReuseButton.

Definition at line 27 of file class.ilAssFileUploadFileTableCommandButton.php.

28 {
29 global $DIC; /* @var ILIAS\DI\Container $DIC */
30 parent::__construct($buttonType);
31 $this->lng($DIC['lng']);
32 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAction()

ilAssFileUploadFileTableCommandButton::getAction ( )

◆ lng()

ilAssFileUploadFileTableCommandButton::lng ( ilLanguage  $lng = null)
Returns
ilLanguage

Definition at line 38 of file class.ilAssFileUploadFileTableCommandButton.php.

39 {
40 if ($lng === null) {
41 return $this->lng;
42 }
43
44 $this->lng = $lng;
45 }

References $lng, and lng().

Referenced by __construct(), ilAssFileUploadFileTableDeleteButton\__construct(), ilAssFileUploadFileTableReuseButton\__construct(), and lng().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderAttributes()

ilAssFileUploadFileTableCommandButton::renderAttributes ( array  $a_additional_attr = null)

Render current HTML attributes.

Parameters
array$a_additional_attr
Returns
string

Reimplemented from ilButtonBase.

Definition at line 63 of file class.ilAssFileUploadFileTableCommandButton.php.

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 }

◆ setAction()

ilAssFileUploadFileTableCommandButton::setAction (   $action)
Parameters
string$action

Definition at line 58 of file class.ilAssFileUploadFileTableCommandButton.php.

59 {
60 $this->action = $action;
61 }

References $action.

Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), and ilAssFileUploadFileTableReuseButton\__construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $action

ilAssFileUploadFileTableCommandButton::$action
protected

Definition at line 22 of file class.ilAssFileUploadFileTableCommandButton.php.

Referenced by getAction(), and setAction().

◆ $lng

ilAssFileUploadFileTableCommandButton::$lng
protected

Definition at line 17 of file class.ilAssFileUploadFileTableCommandButton.php.

Referenced by lng().


The documentation for this class was generated from the following file: