PHP Classes

File: entity.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Netflix Clone   entity.php   Download  
File: entity.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Netflix Clone
Manage a library of movies to rent like Netflix
Author: By
Last change:
Date: 27 days ago
Size: 542 bytes
 

Contents

Class file image Download
<?php
require_once("includes/header.php");

if(!isset(
$_GET["id"])) {
   
ErrorMessage::show("No ID passed into page");
}
$entityId = $_GET["id"];
$entity = new Entity($con, $entityId);

$preview = new PreviewProvider($con, $userLoggedIn);
echo
$preview->createPreviewVideo($entity);

$seasonProvider = new SeasonProvider($con, $userLoggedIn);
echo
$seasonProvider->create($entity);

$categoryContainers = new CategoryContainers($con, $userLoggedIn);
echo
$categoryContainers->showCategory($entity->getCategoryId(), "You might also like");
?>