shiftcalc/app/Model/HomeModel.php

38 lines
1.2 KiB
PHP
Raw Normal View History

2025-07-21 22:02:38 +02:00
<?php declare(strict_types=1);
namespace Nischcodes\Shiftcalc\App\Model;
/**
2025-07-22 23:12:41 +02:00
* HomeModel
2025-07-21 22:02:38 +02:00
*
* main model for this application
*
* PHP version 8.4 or higher
*
* LICENSE: GPL-3
*
* @package ShiftCalc
* @author nisch.codes <nischcodes@noreply.projects.nisch.codes>
* @copyright 2021 nisch.codes
* @license https://projects.nisch.codes/nischcodes/shiftcalc/src/branch/main/LICENSE GPL-3
* @version 1.0.0
* @link https://projects.nisch.codes/nischcodes/shiftcalc
*/
2025-07-22 23:12:41 +02:00
use Nischcodes\Shiftcalc\MVC\BaseModel;
2025-07-23 07:58:11 +02:00
class HomeModel extends BaseModel {
2025-07-22 23:22:33 +02:00
2025-07-22 23:12:41 +02:00
// implement the init function
public function init() {
echo "HomeModel init";
}
2025-07-23 07:58:11 +02:00
// implement the load function
public function load() {
$this->repository = [
['date' => '01/01/2025', 'start' => '', 'end' => '', 'sdec' => 0, 'edec' => 0, 'worktime' => 8, 'break' => 0, 'worktime_total' => 8, 'info' => 'Holiday', 'desc' => 'First Example Holiday'],
['date' => '03/05/2025', 'start' => '', 'end' => '', 'sdec' => 0, 'edec' => 0, 'worktime' => 8, 'break' => 0, 'worktime_total' => 8, 'info' => 'Holiday', 'desc' => 'Second Example Holiday']
];
2025-07-22 23:22:33 +02:00
}
2025-07-21 22:02:38 +02:00
}