# StatsEvents methods

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

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

* **`p`** Specifications on how to fill the [StatsEvents](https://cherrycake.tin.cat/version-0.x/reference/core-classes/statsevents) object, with the possible keys below plus any other setup keys from [Items::fillFromParameters](https://cherrycake.tin.cat/version-0.x/reference/items/items-methods#fillfromparameters), or an array of [StatsEvent](https://cherrycake.tin.cat/version-0.x/reference/core-classes/statsevent) 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.
