orchardcms - What are the definitions of each of the Lifecycle Events in Orchard's CMS? -
the documentation content handlers in orchard mentions lifecycle events (http://docs.orchardproject.net/documentation/understanding-content-handlers).
most events self explanatory, wondering if can tell me differences between onactivated, oninitializing, , onloading?
in firing order:
onactivated- content item object hierarchy has been created, not yet fetched dbused preparing content part further usage. eg. setting getters , setters lazy loaded objects, setting delegates etc. think of of "constructor" given part.
oninitializing- content item object hierarchy has been created, not yet fetched db.used setting initial/default property values given part.
onloading- content item loaded db.used various things. fired if item exists in database , loaded. orchard core uses event set lazy loaders part records.
onloaded- content item has been loaded dbused various things. fired if item exists in database , record loaders have been set. can sure
part.recordnot null part @ point , contain data fetched database.
Comments
Post a Comment