ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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)
 
- Public Member Functions inherited from ilSubmitButton
 setCommand ($a_value)
 Set submit command. More...
 
 getCommand ()
 Get submit command. More...
 
 render ()
 
- 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 ()
 

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 ()
 
- Static Public Member Functions inherited from ilButtonBase
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.

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

References $DIC, and lng().

28  {
29  global $DIC; /* @var ILIAS\DI\Container $DIC */
30  parent::__construct($buttonType);
31  $this->lng($DIC['lng']);
32  }
global $DIC
Definition: saml.php:7
+ 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.

References $lng.

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

39  {
40  if ($lng === null) {
41  return $this->lng;
42  }
43 
44  $this->lng = $lng;
45  }
+ Here is the caller graph for this function:

◆ renderAttributes()

ilAssFileUploadFileTableCommandButton::renderAttributes ( array  $a_additional_attr = null)

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.

References $action.

Referenced by ilAssFileUploadFileTableReuseButton\__construct(), and ilAssFileUploadFileTableDeleteButton\__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: