/[openfoncier]/trunk/obj/plaignant.class.php
ViewVC logotype

Contents of /trunk/obj/plaignant.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8989 - (show annotations)
Thu Oct 31 15:09:51 2019 UTC (5 years, 3 months ago) by softime
File size: 1566 byte(s)
* Merge de la branche d'intégration 4.12.0-develop vers le trunk

1 <?php
2 /**
3 * DBFORM - 'plaignant' - Surcharge obj.
4 *
5 * @package openads
6 * @version SVN : $Id: plaignant.class.php 6565 2017-04-21 16:14:15Z softime $
7 */
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 protected $_absolute_class_name = "plaignant";
20
21 /**
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 * SETTER_FORM - setVal (setVal).
37 *
38 * @return void
39 */
40 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 }
46 }
47
48 /**
49 * SETTER_FORM - setValsousformulaire (setVal).
50 *
51 * @return void
52 */
53 function setValsousformulaire(&$form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire, &$dnu1 = null, $dnu2 = null) {
54 parent::setValsousformulaire($form, $maj, $validation, $idxformulaire, $retourformulaire, $typeformulaire);
55 //
56 $form->setVal("type_demandeur", "plaignant");
57 }
58 }

Properties

Name Value
svn:keywords "Id"

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26