Manage_Table_SQL : Improve Documentation + add function count_error
This commit is contained in:
parent
a685ec54a6
commit
97c6c1e007
1 changed files with 9 additions and 3 deletions
|
|
@ -179,7 +179,13 @@ class Manage_Table_SQL
|
|||
{
|
||||
$this->aerror[$p_col]=$p_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the nb of errors found
|
||||
*/
|
||||
function count_error()
|
||||
{
|
||||
return count($this->aerror);
|
||||
}
|
||||
/**
|
||||
* @brief retrieve the error message
|
||||
* @param $p_col column name
|
||||
|
|
@ -200,9 +206,9 @@ class Manage_Table_SQL
|
|||
* Usually , you get the row of the table (get_table) , you check the conditions
|
||||
* if an condition is not met then you set the error with $this->set_error
|
||||
*
|
||||
* if there are error returns false otherwise true
|
||||
* if there are error (returns false otherwise true
|
||||
*
|
||||
* @see set_error get_error
|
||||
* @see set_error get_error count_error
|
||||
* @return boolean
|
||||
* @code
|
||||
function check()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue