> For the complete documentation index, see [llms.txt](https://cherrycake.tin.cat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cherrycake.tin.cat/version-1.x-beta/reference/core-classes/statsevents/statsevents-methods.md).

# StatsEvents methods

## fillFromParameters( p ) <a href="#fillfromparameters" id="fillfromparameters"></a>

Overloads the [Items::fillFromParameters](/version-1.x-beta/reference/core-classes/items/items-methods.md#fillfromparameters) method to provide an easy way to load [StatsEvent](/version-1.x-beta/reference/core-classes/statsevent.md) items when instantiating this class.

* **`p`** Specifications on how to fill the [StatsEvents](/version-1.x-beta/reference/core-classes/statsevents.md) object, with the possible keys below plus any other setup keys from [Items::fillFromParameters](/version-1.x-beta/reference/core-classes/items/items-methods.md#fillfromparameters), or an array of [StatsEvent](/version-1.x-beta/reference/core-classes/statsevent.md) objects to fill the list with.
  * **`type`** The class name of the StatsEvent objects to get.
  * **`fromTimestamp`** The starting timestamp for the time frame to get StatsEvent objects from.
  * **`toTimestamp`** The finishing timestamp for the time frame to get StatsEvent objects from.

**Returns:** `true` if everything went ok, `false` otherwise.
