summaryrefslogtreecommitdiff
path: root/app/Controller/Timetable.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Timetable.php')
-rw-r--r--app/Controller/Timetable.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/Controller/Timetable.php b/app/Controller/Timetable.php
deleted file mode 100644
index 65edb44c..00000000
--- a/app/Controller/Timetable.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace Controller;
-
-use DateTime;
-
-/**
- * Timetable controller
- *
- * @package controller
- * @author Frederic Guillot
- */
-class Timetable extends User
-{
- /**
- * Display timetable for the user
- *
- * @access public
- */
- public function index()
- {
- $user = $this->getUser();
- $from = $this->request->getStringParam('from', date('Y-m-d'));
- $to = $this->request->getStringParam('to', date('Y-m-d', strtotime('next week')));
- $timetable = $this->timetable->calculate($user['id'], new DateTime($from), new DateTime($to));
-
- $this->response->html($this->layout('timetable/index', array(
- 'user' => $user,
- 'timetable' => $timetable,
- 'values' => array(
- 'from' => $from,
- 'to' => $to,
- 'controller' => 'timetable',
- 'action' => 'index',
- 'user_id' => $user['id'],
- ),
- )));
- }
-}