DBClassNameTrait
trait DBClassNameTrait (View source)
Properties
protected | string|null | $baseClass | Base classname of class to enumerate. |
|
protected | DataObject|null | $record | Parent object |
Methods
public
__construct(string $name = null, string|null $baseClass = null, array $options = [])
Create a new DBClassName field
public
string|null
getShortName()
Get the base name of the current class Useful as a non-fully qualified CSS Class name in templates.
Details
__construct(string $name = null, string|null $baseClass = null, array $options = [])
Create a new DBClassName field
string
getBaseClass()
Get the base dataclass for the list of subclasses
string|null
getShortName()
Get the base name of the current class Useful as a non-fully qualified CSS Class name in templates.
$this
setBaseClass(string $baseClass)
Assign the base class
array
getEnum()
Get list of classnames that should be selectable
setValue($value, $record = null, $markChanged = true)
No description