/** * Show content snippet */ function showPreview() { $this->checkPermission("read"); $item = new ilMediaPoolItem((int) $_GET["mepitem_id"]); switch ($item->getType()) { case "mob": $this->showMedia(); break; case "pg": $this->showPage(); break; } }