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 db

    used 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 db

    used various things. fired if item exists in database , record loaders have been set. can sure part.record not null part @ point , contain data fetched database.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -