contentbox.models

Class BaseEntityMethods

lucee.Component
    extended by contentbox.models.BaseEntityMethods
Direct Known Subclasses:
BaseEntity , BaseContent , BaseMenuItem , BaseSubscription

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- This is an abstract class that represents base entity methods. We created this due to the stupid bug in ACF 9-2016, where the mapped super class is not respected in table inheritance

Class Attributes:
  • mappedsuperclass : true
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
          Constructor.
    Method Summary
    private struct getBaseMemento(array properties, [any excludes=''])
         Build out property mementos.
    string getDisplayCreatedDate()
         Get formatted createdDate.
    string getDisplayModifiedDate()
         Get formatted modified date.
    boolean isLoaded()
         Verify if entity is loaded or not.
    void preInsert()
    void preUpdate([struct oldData])
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Method Detail

    getBaseMemento

    private struct getBaseMemento(array properties, [any excludes=''])

    Build out property mementos Date/Time objects are produced as UTC milliseconds since January 1, 1970 (Epoch)

    Parameters:
    properties - The array properties to incorporate into the base memento
    excludes - The properties to exclude from the memento

    getDisplayCreatedDate

    public string getDisplayCreatedDate()

    Get formatted createdDate


    getDisplayModifiedDate

    public string getDisplayModifiedDate()

    Get formatted modified date


    isLoaded

    public boolean isLoaded()

    Verify if entity is loaded or not


    preInsert

    public void preInsert()


    preUpdate

    public void preUpdate([struct oldData])

    Parameters:
    oldData