Added new fields and forms

This commit is contained in:
Antonio de la Rosa 2015-08-28 23:43:08 +02:00
parent 52d75b8029
commit 9db16a5edd
27 changed files with 832 additions and 34 deletions

View file

@ -90,6 +90,12 @@ class PhangoField {
public $form='PhangoApp\PhaModels\Forms\BaseForm';
/**
* Variable where save a copy of form created from this Field
*/
public $form_loaded;
/**
* Array for create initial parameters for form..
*/
@ -109,6 +115,7 @@ class PhangoField {
public $default_value='';
/**
* 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.
*/
@ -140,7 +147,7 @@ class PhangoField {
public function get_type_sql()
{
return 'VARCHAR('.$this->size.') NOT NULL';
return 'VARCHAR('.$this->size.') NOT NULL DEFAULT "0"';
}
@ -151,7 +158,7 @@ class PhangoField {
public function get_parameters_default()
{
return array($this->name_component, '', '');
}