Little fixes

This commit is contained in:
Antonio de la Rosa 2015-12-16 15:28:10 +01:00
parent 1c88f85a99
commit 243767bc12
4 changed files with 28 additions and 1 deletions

View file

@ -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
*/