function removeAttachments($entityId, $fileNames) { include_once CLASSFOLDER . "/enums/commonenums.php"; $entityType = new EntityType(); include_once CLASSFOLDER . "/attachments.php"; $attachment = new attachmentclass($this->internalDB); return $attachment->removeEntityFilesNotExistsInGivenList($entityId, $entityType->getkey(EVENT), $fileNames); }
function GetAllAttachnmentsByEntityId($entityId) { include_once CLASSFOLDER . "/attachments.php"; $attachment = new attachmentclass($this->internalDB); $entitytype = new EntityType(); return $attachment->getallattachments($entityId, $entitytype->getkey("Event")); }