ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $GLOBALS, and lng().

28  {
29  parent::__construct($buttonType);
30  $this->lng(isset($GLOBALS['DIC']) ? $GLOBALS['DIC']['lng'] : $GLOBALS['lng']);
31  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
+ 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 37 of file class.ilAssFileUploadFileTableCommandButton.php.

References $lng.

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

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

◆ renderAttributes()

ilAssFileUploadFileTableCommandButton::renderAttributes ( array  $a_additional_attr = null)

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

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  }

◆ setAction()

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

Definition at line 57 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: