Merge pull request #11184 from lekoala/patch-54

ENH Add Nice to DBField
This commit is contained in:
Guy Sartorelli 2024-03-28 09:00:54 +13:00 committed by GitHub
commit 46c5f6d9ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -516,6 +516,14 @@ abstract class DBField extends ViewableData implements DBIndexable
return $this->XML();
}
/**
* @return string
*/
public function Nice()
{
return $this->XML();
}
/**
* Returns the value to be set in the database to blank this field.
* Usually it's a choice between null, 0, and ''