You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
697 B
39 lines
697 B
<?php
|
|
|
|
class ModelChapter
|
|
{
|
|
private $gwChapter;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->gwChapter = new GatewayChapter();
|
|
}
|
|
|
|
function getChapters()
|
|
{
|
|
$chapters = $this->gwChapter->getChapters();
|
|
return $chapters;
|
|
}
|
|
|
|
function deleteChapter($id)
|
|
{
|
|
$this->gwChapter->deleteChapter($id);
|
|
}
|
|
|
|
function addChapter($chapter)
|
|
{
|
|
$this->gwChapter->addChapter($chapter);
|
|
}
|
|
|
|
function getChapterByID($id)
|
|
{
|
|
$chapter = $this->gwChapter->getChapterByID($id);
|
|
return $chapter;
|
|
}
|
|
|
|
function updateChapter($id,$Chapter)
|
|
{
|
|
$this->gwChapter->updateChapter($id,$Chapter);
|
|
}
|
|
}
|