Extensions
-
Categorie Comment Channel Playlist Stream User Video Post-Categorie Post-Comment Post-Channnel Post-Playlist Post-Stream Post-User Post-Video Put-Categorie Put-Comment Put-Channnel Put-Playlist Put-Stream Put-User Put-Video Patch-Categorie Patch-Comment Patch-Channnel Patch-Playlist Patch-Stream Patch-User Patch-Video Read-Categories Read-Comments Read-Channnels Read-Playlists Read-Streams Read-Users Read-Videos Read-Playlist-Videos Stream-Key Delete-User Video-Key Start-Stream-Converter $GLOBALS['HOOKS']['Post-Video'][] = [Liox\Bundle\MediathekShopBundle\Controller\VideoController::class, 'post']; $GLOBALS['HOOKS']['Put-Video'][] = [Liox\Bundle\MediathekShopBundle\Controller\VideoController::class, 'put']; $GLOBALS['HOOKS']['Patch-Video'][] = [Liox\Bundle\MediathekShopBundle\Controller\VideoController::class, 'patch']; $GLOBALS['HOOKS']['Post-Playlist'][] = [Liox\Bundle\MediathekShopBundle\Controller\PlaylistController::class, 'post']; $GLOBALS['HOOKS']['Put-Playlist'][] = [Liox\Bundle\MediathekShopBundle\Controller\PlaylistController::class, 'put']; $GLOBALS['HOOKS']['Patch-Playlist'][] = [Liox\Bundle\MediathekShopBundle\Controller\PlaylistController::class, 'patch']; -
Categorie Channel Playlist Stream User Video $GLOBALS['DBAL']['User'][] = Liox\Bundle\MediathekShopBundle\Entity\User::class; $GLOBALS['DBAL']['Categorie'][] = Liox\Bundle\MediathekShopBundle\Entity\Categorie::class; $GLOBALS['DBAL']['Video'][] = Liox\Bundle\MediathekShopBundle\Entity\Video::class; $GLOBALS['DBAL']['Order'][] = Liox\Bundle\MediathekShopBundle\Entity\Order::class; $GLOBALS['DBAL']['Cart'][] = Liox\Bundle\MediathekShopBundle\Entity\Cart::class; -
Single File Upload & Size validation
$file = $fileHandler->setOptions(['size' => 10])->validate('image', 'Thumbnail')->getFiles(0); $path = $fileHandler->uploadFile("files/image_uploads", $file);Multiple File Upload & Size validation
$files = $fileHandler->setOptions(['multiple' => true, 'size' => 10])->validate('file', 'Document')->getFiles(); foreach($files as $file){ $path = fileHandler->uploadFile("files/document_uploads", $file); }
