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 $cn Db connxion. | |
| check ($p_array=null) | |
| get_count ($p_array=null) | |
| Count how many time we have this->id into the table tool_uos $cn Database connx. | |
| hidden () | |
| return a string with a tag hidden and a uniq value | |
| save ($p_array=null) | |
| Try to insert into the table tool_uos $cn Database connx. | |
Objec to check a double insert into the database, this duplicate occurs after a refresh of the web page in.
Definition at line 35 of file class_tool_uos.php.
| Tool_Uos::__construct | ( | $p_name | ) |
Constructor $p_name will be set to $this->name, it is also the name of the tag hidden in a form $cn Db connxion.
| $p_name |
Definition at line 43 of file class_tool_uos.php.
References name.
| Tool_Uos::check | ( | $p_array = null | ) |
Definition at line 92 of file class_tool_uos.php.
References $_POST, $cn, $count, $e, $name, $p_array, and CODE_EXCP_DUPLICATE.
| Tool_Uos::get_count | ( | $p_array = null | ) |
Count how many time we have this->id into the table tool_uos $cn Database connx.
| $p_array | is the array where to find the key name, usually it is $_POST. The default value is $_POST |
Definition at line 83 of file class_tool_uos.php.
| Tool_Uos::hidden | ( | ) |
return a string with a tag hidden and a uniq value
| $hHidden | is the name of the tag hidden |
Definition at line 52 of file class_tool_uos.php.
References $cn, HtmlInput\hidden(), and name.
| Tool_Uos::save | ( | $p_array = null | ) |
Try to insert into the table tool_uos $cn Database connx.
| Exception | if the value $p_id is not unique |
Definition at line 63 of file class_tool_uos.php.