Little fixes
This commit is contained in:
parent
1c88f85a99
commit
243767bc12
4 changed files with 28 additions and 1 deletions
|
|
@ -120,6 +120,11 @@ class PhangoField {
|
|||
|
||||
public $update=0;
|
||||
|
||||
/**
|
||||
* A property for set if error
|
||||
*/
|
||||
|
||||
public $error=0;
|
||||
|
||||
/**
|
||||
* Method used for internal tasks related with searchs. You can overwrite this method in your PhangoField object if you need translate the value that the user want search to a real value into the database.
|
||||
|
|
@ -178,6 +183,17 @@ class PhangoField {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic check for sql things
|
||||
*/
|
||||
|
||||
public function check($value)
|
||||
{
|
||||
|
||||
return str_replace('"', '"', $value);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Method for create a form, you only need subclass the field if you want another form different to default
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue