function removeAttachment($attachmentid) { include_once CLASSFOLDER . "/attachments.php"; $attachment = new attachmentclass($this->internalDB); return $attachment->removeAttachment(${$attachmentid}); }
function removeAttachments($entityId, $fileNames) { include_once CLASSFOLDER . "/attachments.php"; $attachment = new attachmentclass($this->internalDB); return $attachment->removeEntityFilesNotExistsInGivenList($entityId, $this->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")); }