Docs Goabase

JsonLD
in package

Class JsonLD

Table of Contents

getEvent()  : string
Returns a json string on schema.org
getImage()  : array<string|int, mixed>
getOffer()  : array<string|int, mixed>
getPage()  : string
JsonLD for the page
getPartyLinksList()  : string
getImageObj()  : array<string|int, mixed>

Methods

getEvent()

Returns a json string on schema.org

public static getEvent([array<string|int, mixed> $party = [] ][, bool $bScript = false ]) : string
Parameters
$party : array<string|int, mixed> = []
  • the party
$bScript : bool = false
  • true returns with script-tags
Return values
string

getImage()

public static getImage(string $strFlyer) : array<string|int, mixed>
Parameters
$strFlyer : string
Return values
array<string|int, mixed>

getOffer()

public static getOffer(array<string|int, mixed> $party) : array<string|int, mixed>
Parameters
$party : array<string|int, mixed>
Return values
array<string|int, mixed>

getPage()

JsonLD for the page

public static getPage([array<string|int, mixed> $page = [] ][, bool $bScript = false ]) : string
Parameters
$page : array<string|int, mixed> = []
$bScript : bool = false
  • true returns with script-tags
Return values
string
public static getPartyLinksList(array<string|int, mixed> $saParty[, bool $bScript = true ]) : string
Parameters
$saParty : array<string|int, mixed>
$bScript : bool = true
Return values
string

getImageObj()

private static getImageObj( $img,  $img_size) : array<string|int, mixed>
Parameters
$img :
$img_size :
Return values
array<string|int, mixed>

Search results