Support of date and time custom formats... for custom fields !!

SVN:trunk[4023]
This commit is contained in:
Denis Flaven
2016-05-03 15:17:46 +00:00
parent 668e822fc6
commit 3579f557d1
8 changed files with 189 additions and 9 deletions

View File

@@ -4025,6 +4025,20 @@ class AttributeDate extends AttributeDateTime
public function GetEditClass() {return "Date";}
protected function GetSQLCol($bFullSpec = false) {return "DATE";}
/**
* Override to specify Field class
*
* When called first, $oFormField is null and will be created (eg. Make). Then when the ::parent is called and the $oFormField is passed, MakeFormField behave more like a Prepare.
*/
public function MakeFormField(DBObject $oObject, $oFormField = null)
{
$oFormField = parent::MakeFormField($oObject, $oFormField);
$oFormField->SetDateOnly(true);
return $oFormField;
}
}
/**