projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implements the first API handler (/api/1/user/<user>/isRegistered). It
[platal.git]
/
include
/
validations
/
marketing.inc.php
diff --git
a/include/validations/marketing.inc.php
b/include/validations/marketing.inc.php
index
3d724d5
..
c0d2707
100644
(file)
--- a/
include/validations/marketing.inc.php
+++ b/
include/validations/marketing.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-31,6
+31,7
@@
class MarkReq extends Validate
public $m_relance;
public $m_type;
public $m_data;
public $m_relance;
public $m_type;
public $m_data;
+ public $m_personal_notes;
public $rules = "Accepter si l'adresse email parait correcte, et pas absurde (ou si le marketeur est de confiance). Si le
demandeur marque sa propre adresse email, refuser dans tous les cas.
public $rules = "Accepter si l'adresse email parait correcte, et pas absurde (ou si le marketeur est de confiance). Si le
demandeur marque sa propre adresse email, refuser dans tous les cas.
@@
-39,7
+40,7
@@
class MarkReq extends Validate
// }}}
// {{{ constructor
// }}}
// {{{ constructor
- public function __construct(User &$sender, User &$mark, $email, $perso, $type, $data)
+ public function __construct(User &$sender, User &$mark, $email, $perso, $type, $data
, $personal_notes
)
{
parent::__construct($sender, false, 'marketing');
$this->m_user = &$mark;
{
parent::__construct($sender, false, 'marketing');
$this->m_user = &$mark;
@@
-47,6
+48,7
@@
class MarkReq extends Validate
$this->perso = $perso;
$this->m_type = $type;
$this->m_data = $data;
$this->perso = $perso;
$this->m_type = $type;
$this->m_data = $data;
+ $this->m_personal_notes = $personal_notes;
}
// }}}
}
// }}}