1 |
nhaye |
5043 |
<?php |
2 |
|
|
/** |
3 |
softime |
7996 |
* DBFORM - 'plaignant' - Surcharge obj. |
4 |
|
|
* |
5 |
nhaye |
5043 |
* @package openads |
6 |
softime |
6929 |
* @version SVN : $Id: plaignant.class.php 6565 2017-04-21 16:14:15Z softime $ |
7 |
nhaye |
5043 |
*/ |
8 |
|
|
require_once("../obj/demandeur.class.php"); |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
/** |
12 |
|
|
* Les plaignants héritent des demandeurs. |
13 |
|
|
*/ |
14 |
|
|
class plaignant extends demandeur { |
15 |
|
|
|
16 |
|
|
/** |
17 |
|
|
* |
18 |
|
|
*/ |
19 |
softime |
7996 |
protected $_absolute_class_name = "plaignant"; |
20 |
nhaye |
5043 |
|
21 |
nhaye |
5051 |
/** |
22 |
|
|
* Cache les champs de notification, fréquent et type_demandeur. |
23 |
|
|
* |
24 |
|
|
* @param formulaire $form Instance de la classe om_formulaire. |
25 |
|
|
* @param integer $maj Identifiant de l'action. |
26 |
|
|
*/ |
27 |
|
|
function setType(&$form, $maj) { |
28 |
|
|
parent::setType($form, $maj); |
29 |
|
|
|
30 |
|
|
$form->setType('type_demandeur', 'hidden'); |
31 |
|
|
$form->setType('notification', 'hidden'); |
32 |
|
|
$form->setType('frequent', 'hidden'); |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
/** |
36 |
softime |
8989 |
* SETTER_FORM - setVal (setVal). |
37 |
|
|
* |
38 |
|
|
* @return void |
39 |
nhaye |
5051 |
*/ |
40 |
softime |
8989 |
function setVal(&$form, $maj, $validation, &$dnu1 = null, $dnu2 = null) { |
41 |
|
|
// parent::setVal($form, $maj, $validation); |
42 |
|
|
// |
43 |
|
|
if ($maj == 0) { |
44 |
|
|
$form->setVal("type_demandeur", "plaignant"); |
45 |
nhaye |
5051 |
} |
46 |
|
|
} |
47 |
softime |
8989 |
|
48 |
|
|
/** |
49 |
|
|
* SETTER_FORM - setValsousformulaire (setVal). |
50 |
|
|
* |
51 |
|
|
* @return void |
52 |
nhaye |
5051 |
*/ |
53 |
|
|
function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) { |
54 |
softime |
8989 |
parent::setValsousformulaire($form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire); |
55 |
|
|
// |
56 |
nhaye |
5051 |
$form->setVal("type_demandeur", "plaignant"); |
57 |
|
|
} |
58 |
nhaye |
5043 |
} |