tp TouchPointWP Interfaces involvementMeetingCommon - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\Interfaces\involvementMeetingCommon

This class contains the elements common between the Involvement and Meeting classes.


Methods

isPast

Indicates if the meeting is in the past.

public isPast(): bool

Inherited methods

hasGeo

Indicates whether a map of a single item can be displayed.

public hasGeo(): bool

asGeoIFace

Returns a standardized stdObject, or null if not viable.

public asGeoIFace(string $type = "unknown"): object|null

Return object properties are lat, lng, human, and type.

Parameters:

Parameter Type Description
$type string 'loc' for navigator location, or 'ip' for ip address location

locationName

Get the name of the location.

public locationName(): ?string

getActionButtons

public getActionButtons(string|null $context = null, string $btnClass = "", bool $withTouchPointLink = true, bool $absoluteLinks = false): \tp\TouchPointWP\Utilities\StringableArray

Parameters:

Parameter Type Description
$context string|null A string that gives filters some context for where the request is coming from
$btnClass string HTML class names to put into the buttons/links
$withTouchPointLink bool Whether to include a link to the item within TouchPoint.
$absoluteLinks bool Set true to make the links absolute, so they work from apps or emails.

getParent

Get the parent of this object which may be an object of a different class.

public getParent(): mixed

Returns null if there is no parent.


scheduleString

Get a description of the schedule in a human-friendly phrase, e.g. Sunday, March 31 at 2:00pm.

public static scheduleString(int $objId, mixed $obj = null): ?string

These strings should be cached.

  • This method is static. Parameters:
Parameter Type Description
$objId int
$obj mixed Needs to be of the type that implements this interface.