LLMS_Event::__construct( int $id = null, bool $hydrate = false )
Constructor
Parameters Parameters
- $id
-
(int) (Optional) Event ID.
Default value: null
- $hydrate
-
(bool) (Optional) If true, hydrates the object on instantiation if an ID is supplied.
Default value: false
Source Source
File: includes/models/class-llms-event.php
72 73 74 75 76 77 78 79 80 81 82 | public function __construct( $id = null, $hydrate = false ) { $this ->id = $id ; if ( $this ->id && $hydrate ) { $this ->hydrate(); } // Adds created and updated dates on instantiation. parent::__construct(); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.36.0 | Introduced. |