diff --git a/dblayer.php b/dblayer.php index af6e38b..c6fde44 100644 --- a/dblayer.php +++ b/dblayer.php @@ -43,8 +43,12 @@ class dblayer extends PDO protected $foreign = array (); /** The db connection */ protected $db = null; - /** The verify stack */ + /** The verify unitary stack + @param string $field The name of the field to test + @param string $val The value of the field to test */ protected function verifyOne ($field, $val) {} + /** The verify global stack + @param array $datas The associative array of contents */ protected function verifyAll ($datas) {} /** Debug of the SQL */ public $debug = FALSE; diff --git a/form.php b/form.php index 63c957d..5127a75 100644 --- a/form.php +++ b/form.php @@ -21,6 +21,7 @@ class form It can be disabled if needed. An Exception is raised if the form is send back without the token */ public $csrf=TRUE; + /** Name of the CSRF hidden field in HTML page */ public $csrfField = "CSRF_TOKEN"; /** The method used to send the values */ @@ -161,7 +162,9 @@ die ("FORM/VERIFY : UNUSED and dirty\n"); $method is the method written in method field of