iflrandevu/application/controllers/Backend.php

104 lines
2.7 KiB
PHP
Raw Normal View History

<?php defined('BASEPATH') or exit('No direct script access allowed');
/* ----------------------------------------------------------------------------
2023-12-31 21:46:27 +03:00
* IFLRandevu - İzmir Fen Lisesi Randevu Portalı
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
2021-12-18 19:43:45 +03:00
* @copyright Copyright (c) Alex Tselegidis
2020-11-14 22:36:25 +03:00
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
* @link https://easyappointments.org
* @since v1.0.0
* ---------------------------------------------------------------------------- */
/*
|------------------------------------------------------------------------------
| Deprecation Notice
|------------------------------------------------------------------------------
|
| This file is still in the project for backwards compatibility reasons and for
| providing additional information on how to migrate your code to the latest
| codebase state.
|
| Visit the Easy!Appointments Developers website for more information:
|
| https://developers.easyappointments.org
|
| Since v1.5, the methods of this controller were ported to standalone controller
| classes, that can both handle the page rendering and all asynchronous HTTP
| requests.
|
*/
/**
2021-11-06 18:21:27 +03:00
* Backend controller.
*
* Handles the backend related operations.
*
* @package Controllers
*
* @deprecated Since 1.5
*/
class Backend extends EA_Controller
{
/**
* Display the calendar page.
*
* @param string $appointment_hash Appointment edit dialog will appear when the page loads (default '').
*/
public function index(string $appointment_hash = '')
{
if (empty($appointment_hash)) {
redirect('calendar');
} else {
redirect('calendar/reschedule/' . $appointment_hash);
}
}
/**
* Display the customers page.
*/
public function customers()
{
redirect('customers');
}
/**
* Display the services page.
*/
public function services()
{
redirect('services');
}
/**
* Display the users page.
*
* Notice: Since the "users" page is split into multiple pages (providers, secretaries, admins), this method will
* redirect to "providers" page by default
*/
public function users()
{
redirect('providers');
}
/**
* Display settings page.
*
* Notice: Since the "settings" page is split into multiple pages (general, business, booking etc), this method will
* redirect to "general" page by default.
*/
public function settings()
{
redirect('general_settings');
}
/**
* Display the update page.
*/
public function update()
{
redirect('update');
}
}