diff --git a/assets/php/common/film_dto.php b/assets/php/common/film.php similarity index 91% rename from assets/php/common/film_dto.php rename to assets/php/common/film.php index b177f38..92988eb 100644 --- a/assets/php/common/film_dto.php +++ b/assets/php/common/film.php @@ -1,36 +1,35 @@ -_id = $id; - $this->_tittle = $tittle; - $this->_duration = $duration; - $this->_language = $language; - $this->_description = $description; - } - - //Methods: - - //Getters && Setters: - public function setId($id){ $this->_id = $id; } - public function getId(){ return $this->_id; } - public function setTittle($tittle) {$this->_tittle = $tittle; } - public function getTittle(){return $this->_tittle;} - public function setDuration($duration){$this->_duration = $duration; } - public function getDuration() {return $this->_duration;} - public function setLanguage($language) {$this->_language = $language; } - public function getLanguage(){return $this->_language;} - public function setDescription($description){ $this->_description = $description;} - public function getDescription(){return $this->_description;} - } +_id = $id; + $this->_tittle = $tittle; + $this->_duration = $duration; + $this->_language = $language; + $this->_description = $description; + } + + //Methods: + + //Getters && Setters: + public function setId($id){ $this->_id = $id; } + public function getId(){ return $this->_id; } + public function setTittle($tittle) {$this->_tittle = $tittle; } + public function getTittle(){return $this->_tittle;} + public function setDuration($duration){$this->_duration = $duration; } + public function getDuration() {return $this->_duration;} + public function setLanguage($language) {$this->_language = $language; } + public function getLanguage(){return $this->_language;} + public function setDescription($description){ $this->_description = $description;} + public function getDescription(){return $this->_description;} + } ?> \ No newline at end of file diff --git a/assets/php/common/film_dao.php b/assets/php/common/film_dao.php index 41c5b25..4a60031 100644 --- a/assets/php/common/film_dao.php +++ b/assets/php/common/film_dao.php @@ -1,7 +1,10 @@ get_prefix(); include_once($prefix.'assets/php/dao.php'); + class Film_DAO extends DAO { //Constructor: diff --git a/assets/php/common/film_dto_interface.php b/assets/php/common/film_dto_interface.php deleted file mode 100644 index 23931f3..0000000 --- a/assets/php/common/film_dto_interface.php +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/panel_admin/includes/formFilm.php b/panel_admin/includes/formFilm.php index 8615afb..1f1d772 100644 --- a/panel_admin/includes/formFilm.php +++ b/panel_admin/includes/formFilm.php @@ -2,7 +2,7 @@ include_once('../assets/php/config.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'); class FormFilm extends Form {