define('SIZE_MAX', 32768);
+__autoload('XDB');
+
/**
* Iterator class, that lists objects through the database
*/
function ValidateIterator ()
{
- parent::XOrgDBIterator('SELECT data,stamp FROM requests ORDER BY stamp', MYSQL_NUM);
+ parent::__construct('SELECT data,stamp FROM requests ORDER BY stamp', MYSQL_NUM);
}
// }}}
var $unique;
// enable the refuse button
var $refuse = true;
+
var $type;
var $comments = Array();
// the validations rules : comments for admins
return true;
}
+ // mise à jour des informations
+ if (Env::has('edit')) {
+ if ($this->handle_editor()) {
+ $this->update();
+ $this->trig('requête mise à jour');
+ return true;
+ }
+ return false;
+ }
+
// ajout d'un commentaire
if (Env::has('hold') && Env::has('comm')) {
$formid = Env::i('formid');
{ return null; }
// }}}
+ // {{{ function editor()
+
+ /** nom du formulaire d'édition */
+ function editor()
+ { return null; }
+
+ // }}}
// {{{ function answers()
/** automatic answers table for this type of validation */
}
// }}}
+ // {{{ function id()
+
+ function id()
+ {
+ return $this->uid . '_' . $this->type . '_' . $this->stamp;
+ }
+
+ // }}}
}
foreach (glob(dirname(__FILE__).'/validations/*.inc.php') as $file) {