Loading Stats events from the database
Last updated
Was this helpful?
Last updated
Was this helpful?
Just like when , you can use the provided class to retrieve and work with lists of objects.
For example, let's load the last fifty StatsEventHomeView
objects from our , using what we learned in the section of the :
As you can see, the class accepts some additional keys on top of the usual keys:
type
Retrieves only objects of this class name. Must include the full namespace route to the class.
fromTimestamp
Retrieves objects triggered after this timestamp.
toTimestamp
Retrieves objects triggered up to this timestamp.
See examples of loading StatsEvent object from the database in the and examples.