Milkyway\SS\Core\Extensions\DataObject
Synopsis
class DataObject
extends DataExtension
{
- // members
- private array $inheritedObjCache = ;
- // methods
- public mixed i18n_description()
- public DataObject firstOrMake()
- public DataObject firstOrCreate()
- public bool is_a()
- public bool is_not_a()
- public mixed|null InheritedObj()
Hierarchy
Extends
- DataExtension
Members
private
- $inheritedObjCache
Methods
public
- InheritedObj() — Get an inherited object (dot notation allowed), it will check in order: 1. cache 2. method on current object 3. if object has parent method (or extends @Hierarchy), it will check the parents 4. check home page 5. check @SiteConfig if it exists
- firstOrCreate() — Alias of ->firstOrMake
- firstOrMake() — Find a record using a filter, or create it if it doesn't exist
- i18n_description() — Add a nice description of @DataObject if you want to
- is_a() — Check if dataobject is instance of class
- is_not_a() — Check if dataobject is not instance of class