ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 (string $a_value)
 Set submit command. More...
 
 getCommand ()
 
 render ()
 
- Public Member Functions inherited from ilButtonBase
 __clone ()
 
 getType ()
 
 setId (?string $a_value)
 
 getId ()
 
 setCaption (string $a_value, bool $a_is_lng_id=true)
 
 getCaption (bool $a_translate=true)
 
 setPrimary (bool $a_value)
 
 isPrimary ()
 
 setOmitPreventDoubleSubmission (bool $a_value)
 Toggle double submission prevention status. More...
 
 getOmitPreventDoubleSubmission ()
 
 setOnClick (string $a_value)
 
 getOnClick ()
 
 setDisabled (bool $a_value)
 
 isDisabled ()
 
 addCSSClass (string $a_value)
 
 getCSSClasses ()
 
 applyDefaultCss (?bool $apply_default_css=null)
 
 render ()
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 

Protected Attributes

 $action
 
- Protected Attributes inherited from ilSubmitButton
string $cmd = ""
 
- Protected Attributes inherited from ilButtonBase
ilLanguage $lng
 
int $type = 0
 
string $id = ""
 
string $caption = ""
 
bool $caption_is_lng_id = false
 
bool $primary = false
 
bool $omit_prevent_double_submission = false
 
string $onclick = ""
 
int $acc_key = 0
 
bool $disabled = false
 
array $css = array()
 
bool $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 ()
 
- 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 (int $a_type)
 
 setType (int $a_value)
 
 gatherCssClasses ()
 
 renderAttributesHelper (array $a_attr)
 
 renderAttributes (array $a_additional_attr=null)
 Render current HTML attributes. More...
 
 prepareRender ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAssFileUploadFileTableCommandButton::__construct (   $buttonType)

ilAssFileUploadFileTableCommandButton constructor.

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

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

36  {
37  global $DIC; /* @var ILIAS\DI\Container $DIC */
38  parent::__construct($buttonType);
39  $this->lng($DIC['lng']);
40  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getAction()

ilAssFileUploadFileTableCommandButton::getAction ( )
Returns
string

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

References $action.

◆ lng()

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

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

References ilButtonBase\$lng.

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

46  : ilLanguage
47  {
48  if ($lng === null) {
49  return $this->lng;
50  }
51  $this->lng = $lng;
52  return $lng;
53  }
+ Here is the caller graph for this function:

◆ renderAttributes()

ilAssFileUploadFileTableCommandButton::renderAttributes ( array  $a_additional_attr = null)

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

71  : 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  }

◆ setAction()

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

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

References $action.

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

66  : void
67  {
68  $this->action = $action;
69  }
+ Here is the caller graph for this function:

Field Documentation

◆ $action

ilAssFileUploadFileTableCommandButton::$action
protected

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

Referenced by getAction(), and setAction().


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