/**
  * Read and parse items
  */
 public function parse(ilLPCollection $a_collection)
 {
     $this->setData($a_collection->getTableGUIData($this->getNode()));
     $this->initTable();
     // grouping actions
     if ($this->getMode() == ilLPObjSettings::LP_MODE_COLLECTION && ilLPCollectionOfRepositoryObjects::hasGroupedItems(ilObject::_lookupObjId($this->getNode()))) {
         $this->addMultiCommand('releaseMaterials', $this->lng->txt('trac_release_materials'));
         foreach ($this->row_data as $item) {
             if ($item["grouped"]) {
                 $this->addCommandButton('saveObligatoryMaterials', $this->lng->txt('trac_group_materials_save'));
                 break;
             }
         }
     }
 }
 public function activateEntries(array $a_item_ids)
 {
     global $ilDB;
     parent::activateEntries($a_item_ids);
     $grouping_ids = $this->getGroupingIds($a_item_ids);
     if ($grouping_ids) {
         $query = "UPDATE ut_lp_collections" . " SET active = " . $ilDB->quote(1, "integer") . " WHERE " . $ilDB->in("grouping_id", $grouping_ids, false, "integer");
         $ilDB->manipulate($query);
     }
 }