SLP_Premier_Schedule_Item
extends SLPlus_BaseClass_Object
in package
Class SLP_Premier_Schedule_Item
An item for Premier Schedule Manager.
NOTE: Remember only private properties are run through the __get(), __set(), and __isset() magic methods.
Table of Contents
Properties
- $addon : object
- $callback : mixed
- $interval : mixed
- $myslp : MySLP
- $next_event_text : string
- $slplus : SLPlus
- $slug : mixed
- $uses_myslp : bool
- $uses_slplus : mixed
- $next_event : mixed
Methods
- __construct() : mixed
- __get() : mixed
- Get the value, running it through a filter.
- __isset() : bool
- Allow isset to be called on private properties.
- __set() : SLP_Option
- Allow value to be set directly.
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- set_properties() : mixed
- Set our properties.
- initialize() : mixed
- Do these things when this object is invoked. Override in your class.
- format_time() : string
- Return nice text for timestamps.
- time_to_next_event() : string
- Return nice text for amount of time until the next event occurs.
Properties
$addon
public
object
$addon
$callback
public
mixed
$callback
$interval
public
mixed
$interval
= 'never'
$myslp
public
MySLP
$myslp
$next_event_text
public
string
$next_event_text
Special nice text format for the next_event timestamp.
$slplus
public
SLPlus
$slplus
$slug
public
mixed
$slug
$uses_myslp
public
bool
$uses_myslp
Set to true to add a $myslp property pointing to global $myslp
$uses_slplus
protected
mixed
$uses_slplus
= \false
$next_event
private
mixed
$next_event
Methods
__construct()
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
__get()
Get the value, running it through a filter.
public
__get(string $property) : mixed
Parameters
- $property : string
Return values
mixed —null if not set or the value
__isset()
Allow isset to be called on private properties.
public
__isset(mixed $property) : bool
Parameters
- $property : mixed
Return values
bool__set()
Allow value to be set directly.
public
__set(mixed $property, mixed $value) : SLP_Option
Parameters
- $property : mixed
- $value : mixed
Return values
SLP_Optionget_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([bool $no_global = false ][, mixed $params = array() ]) : static
Parameters
- $no_global : bool = false
-
set to true to skip assigning object to SLP global as a property.
- $params : mixed = array()
-
object init params
Return values
staticset_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
initialize()
Do these things when this object is invoked. Override in your class.
protected
initialize() : mixed
format_time()
Return nice text for timestamps.
private
format_time(mixed $timestamp) : string
Parameters
- $timestamp : mixed
Return values
stringtime_to_next_event()
Return nice text for amount of time until the next event occurs.
private
time_to_next_event(mixed $timestamp) : string
Parameters
- $timestamp : mixed