projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typos
[platal.git]
/
include
/
validations
/
nl.inc.php
diff --git
a/include/validations/nl.inc.php
b/include/validations/nl.inc.php
index
9740848
..
fe4114e
100644
(file)
--- a/
include/validations/nl.inc.php
+++ b/
include/validations/nl.inc.php
@@
-27,21
+27,22
@@
class NLReq extends Validate
{
// {{{ properties
{
// {{{ properties
-
var
$art;
-
var
$rules = "Laisser valider par le NL-MASTER";
-
+
public
$art;
+
public
$rules = "Laisser valider par le NL-MASTER";
+
// }}}
// {{{ constructor
// }}}
// {{{ constructor
- function NlReq($uid, $title, $body, $append) {
- $this->Validate($uid, false, 'nl');
+ public function __construct($uid, $title, $body, $append)
+ {
+ parent::__construct($uid, false, 'nl');
$this->art = new NLArticle($title, $body, $append);
}
// }}}
// {{{ function formu()
$this->art = new NLArticle($title, $body, $append);
}
// }}}
// {{{ function formu()
- function formu()
+
public
function formu()
{
return 'include/form.valid.nl.tpl';
}
{
return 'include/form.valid.nl.tpl';
}
@@
-49,7
+50,7
@@
class NLReq extends Validate
// }}}
// {{{ function editor()
// }}}
// {{{ function editor()
- function editor()
+
public
function editor()
{
return 'include/form.valid.edit-nl.tpl';
}
{
return 'include/form.valid.edit-nl.tpl';
}
@@
-57,7
+58,7
@@
class NLReq extends Validate
// }}}
// {{{ function handle_editor()
// }}}
// {{{ function handle_editor()
- function handle_editor()
+
protected
function handle_editor()
{
$this->art->_body = Env::v('nl_body');
$this->art->_title = Env::v('nl_title');
{
$this->art->_body = Env::v('nl_body');
$this->art->_title = Env::v('nl_title');
@@
-67,8
+68,8
@@
class NLReq extends Validate
// }}}
// {{{ function _mail_subj
// }}}
// {{{ function _mail_subj
-
- function _mail_subj()
+
+
protected
function _mail_subj()
{
return "[Polytechnique.org/NL] Proposition d'article dans la NL";
}
{
return "[Polytechnique.org/NL] Proposition d'article dans la NL";
}
@@
-76,7
+77,7
@@
class NLReq extends Validate
// }}}
// {{{ function _mail_body
// }}}
// {{{ function _mail_body
- function _mail_body($isok)
+
protected
function _mail_body($isok)
{
if ($isok) {
return ' L\'article que tu avais proposé ('.$this->art->title().') vient d\'être validé.';
{
if ($isok) {
return ' L\'article que tu avais proposé ('.$this->art->title().') vient d\'être validé.';
@@
-88,7
+89,7
@@
class NLReq extends Validate
// }}}
// {{{ function commit()
// }}}
// {{{ function commit()
- function commit()
+
public
function commit()
{
$nl = new Newsletter();
$nl->saveArticle($this->art);
{
$nl = new Newsletter();
$nl->saveArticle($this->art);