/** * @param String $workToRemove */ function removeListEntry($workToRemove) { // Remove the Saved List Entry require_once ROOT_DIR . '/sys/LocalEnrichment/UserListEntry.php'; $listEntry = new UserListEntry(); $listEntry->groupedWorkPermanentId = $workToRemove; $listEntry->listId = $this->id; $listEntry->delete(); unset($this->listTitles[$this->id]); }