customNavElementGateway = $customNavElementGateway; } function getAllCustomNavElements($heskSettings) { return $this->customNavElementGateway->getAllCustomNavElements($heskSettings); } function getCustomNavElement($id, $heskSettings) { $elements = $this->getAllCustomNavElements($heskSettings); if (isset($elements[$id])) { return $elements[$id]; } throw new ApiFriendlyException("Custom nav element {$id} not found!", "Element Not Found", 404); } function deleteCustomNavElement($id, $heskSettings) { $this->customNavElementGateway->deleteCustomNavElement($id, $heskSettings); } function saveCustomNavElement($element, $heskSettings) { $this->customNavElementGateway->saveCustomNavElement($element, $heskSettings); } function createCustomNavElement($element, $heskSettings) { return $this->customNavElementGateway->createCustomNavElement($element, $heskSettings); } }