onOffice WP Plugin

TemplateMocker extends Template
in package

Table of Contents

KEY_ADDRESSLIST  = 'addresslist'
KEY_ESTATELIST  = 'estatelist'
KEY_FORM  = 'form'
$_dir  : string
$_pAddressList  : AddressList|null
$_pEstateList  : EstateListBase|null
$_pForm  : Form|null
$_templateName  : string
__construct()  : mixed
render()  : string
withAddressList()  : $this
withEstateList()  : $this
withForm()  : $this
withTemplateName()  : self
buildFilePath()  : string
getTemplateName()  : string
getIncludeContents()  : string
Method that provides important variables to template Must not expose $this

Constants

KEY_ADDRESSLIST

public mixed KEY_ADDRESSLIST = 'addresslist'

KEY_ESTATELIST

public mixed KEY_ESTATELIST = 'estatelist'

Properties

$_templateName

private string $_templateName = ''

Methods

__construct()

public __construct([string $dir = null ]) : mixed
Parameters
$dir : string = null
Return values
mixed

render()

public render() : string
Tags
throws
DependencyException
throws
NotFoundException
throws
Exception
Return values
string

withForm()

public withForm(Form $pForm) : $this
Parameters
$pForm : Form
Return values
$this

withTemplateName()

public withTemplateName(string $templateName) : self
Parameters
$templateName : string
Return values
self

buildFilePath()

protected buildFilePath() : string
Return values
string

getTemplateName()

protected getTemplateName() : string
Return values
string

getIncludeContents()

Method that provides important variables to template Must not expose $this

private static getIncludeContents(array<string|int, mixed> $templateData, string $templatePath, Container $pContainer) : string
Parameters
$templateData : array<string|int, mixed>
$templatePath : string
$pContainer : Container
Tags
throws
DependencyException
throws
NotFoundException
Return values
string

Search results