noalyss Version-9
|
Objec to check a double insert into the database, this duplicate occurs after a refresh of the web page in. More...
Public Member Functions | |
__construct ($p_name) | |
Constructor $p_name will be set to $this->name, it is also the name of the tag hidden in a form. More... | |
check ($p_array=null) | |
get_count ($p_array=null) | |
Count how many time we have this->id into the table tool_uos. More... | |
hidden () | |
return a string with a tag hidden and a uniq value More... | |
save ($p_array=null) | |
Try to insert into the table Single_Record. More... | |
Data Fields | |
$name | |
Objec to check a double insert into the database, this duplicate occurs after a refresh of the web page in.
Definition at line 33 of file single_record.class.php.
Single_Record::__construct | ( | $p_name | ) |
Constructor $p_name will be set to $this->name, it is also the name of the tag hidden in a form.
$p_name |
Definition at line 42 of file single_record.class.php.
References name.
Single_Record::check | ( | $p_array = null | ) |
Definition at line 91 of file single_record.class.php.
References $_POST, $cn, $count, $e, $name, $p_array, and CODE_EXCP_DUPLICATE.
Single_Record::get_count | ( | $p_array = null | ) |
Count how many time we have this->id into the table tool_uos.
$p_array | is the array where to find the key name, usually it is $_POST. The default value is $_POST |
Definition at line 82 of file single_record.class.php.
Single_Record::hidden | ( | ) |
return a string with a tag hidden and a uniq value
$hHidden | is the name of the tag hidden |
Definition at line 51 of file single_record.class.php.
References $cn, HtmlInput\hidden(), and name.
Single_Record::save | ( | $p_array = null | ) |
Try to insert into the table Single_Record.
Exception | if the value $p_id is not unique |
Definition at line 62 of file single_record.class.php.
Single_Record::$name |
Definition at line 35 of file single_record.class.php.
Referenced by check(), get_count(), and save().