1
|
|
|
<?php |
2
|
|
|
/************************************************************************ |
3
|
|
|
* OVIDENTIA http://www.ovidentia.org * |
4
|
|
|
************************************************************************ |
5
|
|
|
* Copyright (c) 2003 by CANTICO ( http://www.cantico.fr ) * |
6
|
|
|
* * |
7
|
|
|
* This file is part of Ovidentia. * |
8
|
|
|
* * |
9
|
|
|
* Ovidentia is free software; you can redistribute it and/or modify * |
10
|
|
|
* it under the terms of the GNU General Public License as published by * |
11
|
|
|
* the Free Software Foundation; either version 2, or (at your option) * |
12
|
|
|
* any later version. * |
13
|
|
|
* * |
14
|
|
|
* This program is distributed in the hope that it will be useful, but * |
15
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of * |
16
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * |
17
|
|
|
* See the GNU General Public License for more details. * |
18
|
|
|
* * |
19
|
|
|
* You should have received a copy of the GNU General Public License * |
20
|
|
|
* along with this program; if not, write to the Free Software * |
21
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,* |
22
|
|
|
* USA. * |
23
|
|
|
************************************************************************/ |
24
|
|
|
|
25
|
|
|
require_once dirname(__FILE__).'/request.ui.php'; |
26
|
|
|
|
27
|
|
|
|
28
|
|
|
class absences_deleteVacationRequestCls extends absences_vacationRequestDetail |
29
|
|
|
{ |
30
|
|
|
|
31
|
|
|
public function __construct($id, $manager_view) |
32
|
|
|
{ |
33
|
|
|
parent::__construct($id); |
34
|
|
|
|
35
|
|
|
$this->id_entry = (int) $id; |
|
|
|
|
36
|
|
|
|
37
|
|
|
$this->t_delete_folder = absences_translate("Delete all periods from the recurring request"); |
|
|
|
|
38
|
|
|
$this->t_deleteconfirm = absences_translate("Do you really want to delete the vacation request ?"); |
|
|
|
|
39
|
|
|
|
40
|
|
|
$this->initDelete($manager_view); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
|
46
|
|
|
class absences_deleteCetDepositRequestCls extends absences_CetDepositRequestDetail |
47
|
|
|
{ |
48
|
|
|
|
49
|
|
View Code Duplication |
public function __construct($id, $manager_view) |
|
|
|
|
50
|
|
|
{ |
51
|
|
|
parent::__construct($id); |
52
|
|
|
|
53
|
|
|
$this->id_deposit = (int) $id; |
|
|
|
|
54
|
|
|
|
55
|
|
|
$this->t_deleteconfirm = absences_translate("Do you really want to delete the time saving account deposit ?"); |
|
|
|
|
56
|
|
|
|
57
|
|
|
$this->initDelete($manager_view); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
|
63
|
|
|
class absences_deleteWpRecoveryRequestCls extends absences_WpRecoveryDetail |
64
|
|
|
{ |
65
|
|
|
|
66
|
|
View Code Duplication |
public function __construct($id, $manager_view) |
|
|
|
|
67
|
|
|
{ |
68
|
|
|
parent::__construct($id); |
69
|
|
|
|
70
|
|
|
$this->id_recovery = (int) $id; |
|
|
|
|
71
|
|
|
|
72
|
|
|
$this->t_deleteconfirm = absences_translate("Do you really want to delete the work period recover request ?"); |
|
|
|
|
73
|
|
|
|
74
|
|
|
$this->initDelete($manager_view); |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
} |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: