prepare shift types controller and view

This commit is contained in:
Philip Häusler 2014-12-16 09:01:39 +01:00
parent 294a21d163
commit a73e98a8e0
3 changed files with 60 additions and 4 deletions

View File

@ -0,0 +1,39 @@
<?php
function shifttype_delete_controller() {
}
function shifttype_edit_controller() {
}
function shifttype_controller() {
}
function shifttypes_list_controller() {
}
/**
* Text for shift type related links.
*/
function shifttypes_title() {
return _("Shifttypes");
}
function shifttypes_controller() {
if (! isset($_REQUEST['action']))
$_REQUEST['action'] = 'list';
switch ($_REQUEST['action']) {
default:
case 'list':
return shifttypes_list_controller();
case 'view':
return shifttype_controller();
case 'edit':
return shifttype_edit_controller();
case 'delete':
return shifttype_delete_controller();
}
}
?>

View File

@ -0,0 +1,15 @@
<?php
function ShiftType_delete_view($shifttype) {
}
function ShiftType_edit_view($name, $angeltype_id, $angeltypes, $description, $shifttype_id) {
}
function ShiftType_view($shifttype) {
}
function ShiftTypes_list_view() {
}
?>

View File

@ -24,10 +24,12 @@ require_once realpath(__DIR__ . '/../includes/view/AngelTypes_view.php');
require_once realpath(__DIR__ . '/../includes/view/Questions_view.php'); require_once realpath(__DIR__ . '/../includes/view/Questions_view.php');
require_once realpath(__DIR__ . '/../includes/view/Shifts_view.php'); require_once realpath(__DIR__ . '/../includes/view/Shifts_view.php');
require_once realpath(__DIR__ . '/../includes/view/ShiftEntry_view.php'); require_once realpath(__DIR__ . '/../includes/view/ShiftEntry_view.php');
require_once realpath(__DIR__ . '/../includes/view/ShiftTypes_view.php');
require_once realpath(__DIR__ . '/../includes/view/UserAngelTypes_view.php'); require_once realpath(__DIR__ . '/../includes/view/UserAngelTypes_view.php');
require_once realpath(__DIR__ . '/../includes/view/User_view.php'); require_once realpath(__DIR__ . '/../includes/view/User_view.php');
require_once realpath(__DIR__ . '/../includes/controller/angeltypes_controller.php'); require_once realpath(__DIR__ . '/../includes/controller/angeltypes_controller.php');
require_once realpath(__DIR__ . '/../includes/controller/shifttypes_controller.php');
require_once realpath(__DIR__ . '/../includes/controller/users_controller.php'); require_once realpath(__DIR__ . '/../includes/controller/users_controller.php');
require_once realpath(__DIR__ . '/../includes/controller/user_angeltypes_controller.php'); require_once realpath(__DIR__ . '/../includes/controller/user_angeltypes_controller.php');