tp TouchPointWP ExtraValueHandler - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\ExtraValueHandler

Classes that have extra values should implement the ExtraValues trait, which provides a ExtraValues() method which returns an instance of this class and allows getting the values via its getter. That trait has the abstract methods that need to be implemented for Extra Values to be available.


  • Full name: \tp\TouchPointWP\ExtraValueHandler

Methods

__construct

public __construct(object $owner): mixed

Parameters:

Parameter Type Description
$owner object

Throws:


standardizeExtraValueName

public static standardizeExtraValueName(string $name): string
  • This method is static. Parameters:
Parameter Type Description
$name string

jsonToDataTyped

Take an array or object of Extra Values and change the values to their proper datatypes.

public static jsonToDataTyped(object $evs): object
  • This method is static. Parameters:
Parameter Type Description
$evs object

__get

public __get(mixed $what): mixed

Parameters:

Parameter Type Description
$what mixed

__isset

public __isset(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed

__call

public __call(mixed $name, mixed $arguments): mixed

Parameters:

Parameter Type Description
$name mixed
$arguments mixed