SLP_Web_Link
extends SLPlus_BaseClass_Object
in package
Class SLP_Web_Link
Tags
Table of Contents
Properties
- $link_text : mixed
- $sentence : mixed
- $slplus : SLPlus
- $slug : string
- $slug : mixed
- $title : mixed
- $url : mixed
- $uses_slplus : bool
- $slplus : mixed
- $uses_slplus : mixed
- $anchor_tag : mixed
- $sentence_with_link : mixed
Methods
- __construct() : string
- SLP_Web_Link constructor, turn off uses_slplus.
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- __toString() : string
- Output the object as an HTML string.
- get_instance() : SLPlus_BaseClass_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- set_properties() : mixed
- Set our properties.
- initialize() : mixed
- Do these things when this object is invoked. Override in your class.
- create_hyperlink() : string
Properties
$link_text
public
mixed
$link_text
$sentence
public
mixed
$sentence
$slplus
public
SLPlus
$slplus
$slug
public
string
$slug
the slug, a sanitized key version of name
$slug
public
mixed
$slug
$title
public
mixed
$title
$url
public
mixed
$url
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slplus
protected
mixed
$slplus
$uses_slplus
protected
mixed
$uses_slplus
= \true
$anchor_tag
private
mixed
$anchor_tag
$sentence_with_link
private
mixed
$sentence_with_link
Methods
__construct()
SLP_Web_Link constructor, turn off uses_slplus.
public
__construct([array<string|int, mixed> $options = array() ]) : string
Parameters
- $options : array<string|int, mixed> = array()
Return values
string__get()
public
__get(string $property) : SLPlus_BaseClass_Object
Parameters
- $property : string
Return values
SLPlus_BaseClass_Object__isset()
public
__isset(string $property) : bool
Parameters
- $property : string
Return values
bool__toString()
Output the object as an HTML string.
public
__toString() : string
Return values
stringget_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([bool $no_global = false ][, mixed $params = array() ]) : SLPlus_BaseClass_Object
TODO: PHP7.4 and PHP8.0 the static instance variable returns an object matching $class TODO: PHP8.1 the static instance continually returns the FIRST object (SLP_Admin_Helper) every time -- it is like PHP8.1 static instance is bound to base_class-object versus the calling class object
Parameters
- $no_global : bool = false
-
set to true to skip assigning object to SLP global as a property.
- $params : mixed = array()
-
object init params
Return values
SLPlus_BaseClass_Objectset_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
initialize()
Do these things when this object is invoked. Override in your class.
protected
initialize() : mixed
create_hyperlink()
private
create_hyperlink() : string