IReference
extends
JsonSerializable
in
Tags
Table of Contents
Methods
- getAccessible() : bool
- Accessible flag indicates if the user has access to the provided reference
- getDescription() : string|null
- getId() : string
- getImageContentType() : string|null
- getImageUrl() : string|null
- getOpenGraphObject() : array<string|int, mixed>
- Returns the opengraph rich object representation
- getRichObject() : array<string|int, mixed>
- Returns the reference specific rich object representation
- getRichObjectType() : string
- Returns the type of the reference specific rich object
- getTitle() : string
- getUrl() : string
-
jsonSerialize()
: array{richObjectType: string, richObject: array
, openGraphObject: array{id: string, name: string, description: ?string, thumb: ?string, link: string}, accessible: bool} - setAccessible() : void
- Accessible flag indicates if the user has access to the provided reference
- setDescription() : void
- setImageContentType() : void
- setImageUrl() : void
- setRichObject() : void
- Set the reference specific rich object representation
- setTitle() : void
- setUrl() : void
Methods
getAccessible()
Accessible flag indicates if the user has access to the provided reference
public
getAccessible() : bool
Tags
Return values
boolgetDescription()
public
getDescription() : string|null
Tags
Return values
string|nullgetId()
public
getId() : string
Tags
Return values
stringgetImageContentType()
public
getImageContentType() : string|null
Tags
Return values
string|nullgetImageUrl()
public
getImageUrl() : string|null
Tags
Return values
string|nullgetOpenGraphObject()
Returns the opengraph rich object representation
public
getOpenGraphObject() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getRichObject()
Returns the reference specific rich object representation
public
getRichObject() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getRichObjectType()
Returns the type of the reference specific rich object
public
getRichObjectType() : string
Tags
Return values
stringgetTitle()
public
getTitle() : string
Tags
Return values
stringgetUrl()
public
getUrl() : string
Tags
Return values
stringjsonSerialize()
public
jsonSerialize() : array{richObjectType: string, richObject: array, openGraphObject: array{id: string, name: string, description: ?string, thumb: ?string, link: string}, accessible: bool}
Tags
Return values
array{richObjectType: string, richObject: arraysetAccessible()
Accessible flag indicates if the user has access to the provided reference
public
setAccessible(bool $accessible) : void
Parameters
- $accessible : bool
Tags
setDescription()
public
setDescription(string|null $description) : void
Parameters
- $description : string|null
Tags
setImageContentType()
public
setImageContentType(string|null $contentType) : void
Parameters
- $contentType : string|null
Tags
setImageUrl()
public
setImageUrl(string|null $imageUrl) : void
Parameters
- $imageUrl : string|null
Tags
setRichObject()
Set the reference specific rich object representation
public
setRichObject(string $type, array<string|int, mixed>|null $richObject) : void
Parameters
- $type : string
- $richObject : array<string|int, mixed>|null
Tags
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string
Tags
setUrl()
public
setUrl(string|null $url) : void
Parameters
- $url : string|null