SLP_Template
extends SLP_Base_Object
in package
Class SLP_Template
Tags
Table of Contents
Properties
- $plugin_dir : mixed
- $ext : mixed
- $fq_file : mixed
- $fq_files : mixed
- $src_dir : mixed
Methods
- __construct() : mixed
- SLP_Base_Object constructor.
- display() : mixed
- Display the contents.
- get_content() : bool|string
- Return the contents.
- 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.
- set_fq_file() : mixed
- The the fully qualified filename.
- valid_file() : bool
- Check if file is valid (exists and is readable).
Properties
$plugin_dir
public
mixed
$plugin_dir
= \SLPLUS_PLUGINDIR
$ext
protected
mixed
$ext
= ''
$fq_file
protected
mixed
$fq_file
$fq_files
protected
mixed
$fq_files
= array()
$src_dir
protected
mixed
$src_dir
= ''
Methods
__construct()
SLP_Base_Object constructor.
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
display()
Display the contents.
public
display(string $file) : mixed
Parameters
- $file : string
get_content()
Return the contents.
public
get_content(string $file) : bool|string
Parameters
- $file : string
Return values
bool|stringget_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([mixed $options = array() ]) : SLPlus_BaseClass_Object
Parameters
- $options : 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
set_fq_file()
The the fully qualified filename.
private
set_fq_file(string $file) : mixed
Parameters
- $file : string
valid_file()
Check if file is valid (exists and is readable).
private
valid_file(string $file) : bool
Parameters
- $file : string