Initial Code commit
This commit is contained in:
parent
c566972160
commit
ab153bc311
@ -23,6 +23,8 @@ use Nischcodes\Shiftcalc\MVC\BaseModel;
|
|||||||
|
|
||||||
class HomeModel implements BaseModel {
|
class HomeModel implements BaseModel {
|
||||||
|
|
||||||
|
protected $repository = [];
|
||||||
|
|
||||||
// implement the init function
|
// implement the init function
|
||||||
public function init() {
|
public function init() {
|
||||||
echo "HomeModel init";
|
echo "HomeModel init";
|
||||||
@ -30,8 +32,11 @@ class HomeModel implements BaseModel {
|
|||||||
|
|
||||||
// implement the getAll function
|
// implement the getAll function
|
||||||
public function getAll() {
|
public function getAll() {
|
||||||
return [];
|
return $this->repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get($index){}
|
// implement the get function
|
||||||
|
public function get($index){
|
||||||
|
return $this->repository[$index];
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user