Store Locator Plus®

SLP_Web_Link extends SLPlus_BaseClass_Object

Class SLP_Web_Link

Tags
author

Lance Cleveland lance@charlestonsw.com

copyright

2016 Charleston Software Associates, LLC

since
4.6.2

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

$slug

public string $slug

the slug, a sanitized key version of name

$uses_slplus

public bool $uses_slplus

Set to true (default) if the object needs access to the SLPlus plugin object.

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

__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
string

get_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_Object

set_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
private create_hyperlink() : string
Return values
string

        
On this page

Search results