Timezonable
User Extended by Shawn Clake Class Timezonable User Extended is licensed under the MIT license.
Tags
Table of Contents
- bootTimezonable() : mixed
- Called by the system on runtime, Binds an event to the model to adjust timezones
- getTime() : mixed
- Returns a timestamp adjusted by the logged in users Timezone
- getTimezonableAttributes() : array<string|int, mixed>
- Returns a collection of fields that will be encrypted.
- timezonify() : mixed
- Returns a timestamp adjusted by the logged in users Timezone Alias for getTime()
Methods
bootTimezonable()
Called by the system on runtime, Binds an event to the model to adjust timezones
public
static bootTimezonable() : mixed
Tags
Return values
mixed —getTime()
Returns a timestamp adjusted by the logged in users Timezone
public
getTime( $timestamp[, UserExtended|null $user = null ]) : mixed
Parameters
- $timestamp :
- $user : UserExtended|null = null
Return values
mixed —getTimezonableAttributes()
Returns a collection of fields that will be encrypted.
public
getTimezonableAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed> —timezonify()
Returns a timestamp adjusted by the logged in users Timezone Alias for getTime()
public
timezonify( $timestamp) : mixed