remover film_dto

This commit is contained in:
marian1010 2021-05-06 07:32:24 +02:00
parent 1447369a16
commit 7993f02c27
4 changed files with 39 additions and 51 deletions

View File

@ -1,7 +1,6 @@
<?php <?php
include_once('film_dto_interface.php');
class Film_DTO implements FilmDTO { class Film{
//Attributes: //Attributes:
private $_id; //Film ID. private $_id; //Film ID.

View File

@ -1,7 +1,10 @@
<?php <?php
include_once('film_dto.php'); include_once('film.php');
$template = new Template();
$prefix = $template->get_prefix();
include_once($prefix.'assets/php/dao.php'); include_once($prefix.'assets/php/dao.php');
class Film_DAO extends DAO { class Film_DAO extends DAO {
//Constructor: //Constructor:

View File

@ -1,14 +0,0 @@
<?php
interface FilmDTO {
public function setId($id);
public function getId();
public function setTittle($tittle);
public function getTittle();
public function setDuration($duration);
public function getDuration();
public function setLanguage($language);
public function getLanguage();
public function setDescription($description);
public function getDescription();
}
?>

View File

@ -2,7 +2,7 @@
include_once('../assets/php/config.php'); include_once('../assets/php/config.php');
include_once('../assets/php/common/film_dao.php'); include_once('../assets/php/common/film_dao.php');
include_once('../assets/php/common/film_dto.php'); include_once('../assets/php/common/film.php');
include_once('../assets/php/form.php'); include_once('../assets/php/form.php');
class FormFilm extends Form { class FormFilm extends Form {