Definition at line 22 of file class.ilDclFieldListGUI.php.
 
◆ __construct()
Definition at line 37 of file class.ilDclFieldListGUI.php.
References $DIC, checkAccess(), ILIAS\Repository\ctrl(), ilDclTableListGUI\getObjId(), ilDclCache\getTableCache(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
   41         $this->
http = $DIC->http();
    43         $this->table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
    44         $locator = $DIC[
'ilLocator'];
    45         $this->parent_obj = $a_parent_obj;
    46         $this->obj_id = $a_parent_obj->
getObjId();
    47         $this->
ctrl = $DIC->ctrl();
    48         $this->
lng = $DIC->language();
    49         $this->tpl = $DIC->ui()->mainTemplate();
    50         $this->
tabs = $DIC->tabs();
    51         $this->
toolbar = $DIC->toolbar();
    52         $this->ui_factory = $DIC->ui()->factory();
    53         $this->renderer = $DIC->ui()->renderer();
    55         $DIC->help()->setScreenId(
'dcl_fields');
    57         $this->
ctrl->saveParameterByClass(ilDclTableEditGUI::class, 
'table_id');
    60             $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class, 
'edit')
    62         $this->tpl->setLocator();
    65             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'permission_denied'), 
true);
    66             $this->
ctrl->redirectByClass(ilDclRecordListGUI::class, 
'listRecords');
 
static http()
Fetches the global http state from ILIAS. 
 
static getTableCache(int $table_id=null)
 
 
 
 
◆ checkAccess()
  
  
      
        
          | ilDclFieldListGUI::checkAccess  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ deleteFields()
      
        
          | ilDclFieldListGUI::deleteFields  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ executeCommand()
      
        
          | ilDclFieldListGUI::executeCommand  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getDataCollectionObject()
      
        
          | ilDclFieldListGUI::getDataCollectionObject  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getTableId()
      
        
          | ilDclFieldListGUI::getTableId  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ listFields()
      
        
          | ilDclFieldListGUI::listFields  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ save()
      
        
          | ilDclFieldListGUI::save  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 138 of file class.ilDclFieldListGUI.php.
References ilDclCache\getTableCache(), ILIAS\FileDelivery\http(), listFields(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
  140         $table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
   143         $fields = $table->getFields();
   145         $order = $this->
http->wrapper()->post()->retrieve(
   151         foreach (array_keys($order) as $field_id) {
   152             $order[$field_id] = $val;
   157         if ($this->
http->wrapper()->post()->has(
"exportable")) {
   158             $exportable = $this->
http->wrapper()->post()->retrieve(
   160                 $this->
refinery->kindlyTo()->dictOf(
   161                     $this->
refinery->kindlyTo()->string()
   166         foreach ($fields as $field) {
   167             $field->setExportable(array_key_exists($field->getId(), $exportable) && $exportable[$field->getId()] === 
"on");
   168             $field->setOrder($order[$field->getId()]);
   172         $table->reloadFields();
   173         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"dcl_table_settings_saved"));
 
static http()
Fetches the global http state from ILIAS. 
 
static getTableCache(int $table_id=null)
 
 
 
 
◆ $ctrl
  
  
      
        
          | ilCtrl ilDclFieldListGUI::$ctrl | 
         
       
   | 
  
protected   | 
  
 
 
◆ $http
  
  
      
        
          | ILIAS HTTP Services ilDclFieldListGUI::$http | 
         
       
   | 
  
protected   | 
  
 
 
◆ $lng
◆ $obj_id
  
  
      
        
          | int ilDclFieldListGUI::$obj_id | 
         
       
   | 
  
protected   | 
  
 
 
◆ $parent_obj
◆ $refinery
  
  
      
        
          | ILIAS Refinery Factory ilDclFieldListGUI::$refinery | 
         
       
   | 
  
protected   | 
  
 
 
◆ $renderer
  
  
      
        
          | ILIAS UI Renderer ilDclFieldListGUI::$renderer | 
         
       
   | 
  
protected   | 
  
 
 
◆ $table_id
  
  
      
        
          | int ilDclFieldListGUI::$table_id | 
         
       
   | 
  
protected   | 
  
 
 
◆ $tabs
◆ $toolbar
◆ $tpl
◆ $ui_factory
  
  
      
        
          | ILIAS UI Factory ilDclFieldListGUI::$ui_factory | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: