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


Top ↑

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();
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.