2020-04-22 22:48:56 +03:00
|
|
|
|
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
2015-12-02 00:39:31 +02:00
|
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
2024-01-01 01:14:38 +03:00
|
|
|
|
* MaketRandevu - MAKET Randevu Portalı
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*
|
|
|
|
|
* @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
|
2015-12-02 00:39:31 +02:00
|
|
|
|
* @since v1.0.0
|
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
|
2022-01-18 13:45:44 +03:00
|
|
|
|
/*
|
|
|
|
|
|------------------------------------------------------------------------------
|
|
|
|
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2015-12-02 00:39:31 +02:00
|
|
|
|
/**
|
2021-11-06 18:21:27 +03:00
|
|
|
|
* Backend controller.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*
|
2021-10-28 15:01:17 +03:00
|
|
|
|
* Handles the backend related operations.
|
2020-04-22 22:48:56 +03:00
|
|
|
|
*
|
2015-12-02 00:39:31 +02:00
|
|
|
|
* @package Controllers
|
2023-11-29 12:24:09 +03:00
|
|
|
|
*
|
2022-01-18 14:06:20 +03:00
|
|
|
|
* @deprecated Since 1.5
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2023-11-29 12:24:09 +03:00
|
|
|
|
class Backend extends EA_Controller
|
|
|
|
|
{
|
2016-04-27 09:21:40 +03:00
|
|
|
|
/**
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Display the calendar page.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*
|
2017-09-06 16:22:11 +03:00
|
|
|
|
* @param string $appointment_hash Appointment edit dialog will appear when the page loads (default '').
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2021-10-28 15:01:17 +03:00
|
|
|
|
public function index(string $appointment_hash = '')
|
2017-09-15 14:36:37 +03:00
|
|
|
|
{
|
2023-11-29 12:24:09 +03:00
|
|
|
|
if (empty($appointment_hash)) {
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('calendar');
|
2023-11-29 12:24:09 +03:00
|
|
|
|
} else {
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('calendar/reschedule/' . $appointment_hash);
|
2015-12-02 00:39:31 +02:00
|
|
|
|
}
|
2020-04-22 22:48:56 +03:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-02 00:39:31 +02:00
|
|
|
|
/**
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Display the customers page.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2017-09-15 14:36:37 +03:00
|
|
|
|
public function customers()
|
|
|
|
|
{
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('customers');
|
2015-12-02 00:39:31 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Display the services page.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2017-09-15 14:36:37 +03:00
|
|
|
|
public function services()
|
|
|
|
|
{
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('services');
|
2015-12-02 00:39:31 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Display the users page.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Notice: Since the "users" page is split into multiple pages (providers, secretaries, admins), this method will
|
|
|
|
|
* redirect to "providers" page by default
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2017-09-15 14:36:37 +03:00
|
|
|
|
public function users()
|
|
|
|
|
{
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('providers');
|
2015-12-02 00:39:31 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Display settings page.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Notice: Since the "settings" page is split into multiple pages (general, business, booking etc), this method will
|
|
|
|
|
* redirect to "general" page by default.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2017-09-15 14:36:37 +03:00
|
|
|
|
public function settings()
|
|
|
|
|
{
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('general_settings');
|
2015-12-02 00:39:31 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-18 13:45:44 +03:00
|
|
|
|
* Display the update page.
|
2015-12-02 00:39:31 +02:00
|
|
|
|
*/
|
2017-09-15 14:36:37 +03:00
|
|
|
|
public function update()
|
|
|
|
|
{
|
2022-01-18 13:45:44 +03:00
|
|
|
|
redirect('update');
|
2015-12-02 00:39:31 +02:00
|
|
|
|
}
|
|
|
|
|
}
|