projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename CoreLogger to PlLogger
[platal.git]
/
include
/
validations.inc.php
diff --git
a/include/validations.inc.php
b/include/validations.inc.php
index
1b05e67
..
9814510
100644
(file)
--- a/
include/validations.inc.php
+++ b/
include/validations.inc.php
@@
-153,13
+153,13
@@
abstract class Validate
// }}}
// {{{ function handle_formu()
// }}}
// {{{ function handle_formu()
- /** fonction à réaliser en cas de vali
s
tion du formulaire
+ /** fonction à réaliser en cas de vali
da
tion du formulaire
*/
public function handle_formu()
{
if (Env::has('delete')) {
$this->clean();
*/
public function handle_formu()
{
if (Env::has('delete')) {
$this->clean();
- $this->trig
('reque
te supprimée');
+ $this->trig
Success('Requê
te supprimée');
return true;
}
return true;
}
@@
-167,7
+167,7
@@
abstract class Validate
if (Env::has('edit')) {
if ($this->handle_editor()) {
$this->update();
if (Env::has('edit')) {
if ($this->handle_editor()) {
$this->update();
- $this->trig
('r
equête mise à jour');
+ $this->trig
Success('R
equête mise à jour');
return true;
}
return false;
return true;
}
return false;
@@
-202,7
+202,7
@@
abstract class Validate
$mailer->send();
$this->update();
$mailer->send();
$this->update();
- $this->trig
('c
ommentaire ajouté');
+ $this->trig
Success('C
ommentaire ajouté');
return true;
}
return true;
}
@@
-210,10
+210,10
@@
abstract class Validate
if ($this->commit()) {
$this->sendmail(true);
$this->clean();
if ($this->commit()) {
$this->sendmail(true);
$this->clean();
- $this->trig
('mail
envoyé');
+ $this->trig
Success('Mail de validation
envoyé');
return true;
} else {
return true;
} else {
- $this->trig
('e
rreur lors de la validation');
+ $this->trig
Error('E
rreur lors de la validation');
return false;
}
}
return false;
}
}
@@
-222,10
+222,10
@@
abstract class Validate
if (Env::v('comm')) {
$this->sendmail(false);
$this->clean();
if (Env::v('comm')) {
$this->sendmail(false);
$this->clean();
- $this->trig
('mail
envoyé');
+ $this->trig
Success('Mail de refus
envoyé');
return true;
} else {
return true;
} else {
- $this->trig('pas de motivation pour le refus !!!');
+ $this->trig
Error
('pas de motivation pour le refus !!!');
}
}
}
}
@@
-256,10
+256,22
@@
abstract class Validate
// }}}
// {{{ function trig()
// }}}
// {{{ function trig()
- protected function trig($msg)
+ protected function trig
Error
($msg)
{
global $page;
{
global $page;
- $page->trig($msg);
+ $page->trigError($msg);
+ }
+
+ protected function trigWarning($msg)
+ {
+ global $page;
+ $page->trigWarning($msg);
+ }
+
+ protected function trigSuccess($msg)
+ {
+ global $page;
+ $page->trigSuccess($msg);
}
// }}}
}
// }}}