/** * Get all comments of this record * * @return array ilNote[] */ public function getComments() { if ($this->comments === null) { $this->comments = ilNote::_getNotesOfObject($this->table->getCollectionObject()->getId(), $this->getId(), 'dcl', IL_NOTE_PUBLIC); } return $this->comments; }
public function delete() { $mainTableId = $this->table->getCollectionObject()->getMainTableId(); if ($mainTableId == $this->table->getId()) { ilUtil::sendFailure($this->lng->txt("dcl_cant_delete_main_table"), true); } else { $this->ctrl->setParameterByClass("ildatacollectionfieldlistgui", "table_id", $mainTableId); } $this->table->doDelete(); $this->ctrl->redirectByClass("ildatacollectionfieldlistgui", "listFields"); }