Skip to content

Latest commit

 

History

History
325 lines (154 loc) · 6.18 KB

class.HTMLTemplateCore.md

File metadata and controls

325 lines (154 loc) · 6.18 KB

Class HTMLTemplateCore

Contents

Properties

Methods

Properties

$available_in_your_account

public mixed $available_in_your_account = true

$date

public mixed $date

$shop

public \Shop $shop

$smarty

public \Smarty $smarty

$title

public mixed $title

Methods

assignCommonHeaderData

mixed HTMLTemplateCore::assignCommonHeaderData()

Assign common header data to smarty variables

assignHookData

mixed HTMLTemplateCore::assignHookData(\ObjectModel $object)

Assign hook data

Arguments

  • $object ObjectModel - generally the object used in the constructor

getBulkFilename

string HTMLTemplateCore::getBulkFilename()

Returns the template filename when using bulk rendering

getContent

string HTMLTemplateCore::getContent()

Returns the template's HTML content

getFilename

string HTMLTemplateCore::getFilename()

Returns the template filename

getFooter

string HTMLTemplateCore::getFooter()

Returns the template's HTML footer

getHeader

string HTMLTemplateCore::getHeader()

Returns the template's HTML header

getLogo

mixed HTMLTemplateCore::getLogo()

Returns the invoice logo

getShopAddress

string HTMLTemplateCore::getShopAddress()

Returns the shop address

getTemplate

string HTMLTemplateCore::getTemplate($template_name)

If the template is not present in the theme directory, it will return the default template in PS_PDF_DIR directory

Arguments

  • $template_name mixed

l

string HTMLTemplateCore::l(string $string)

Translation method

Arguments

  • $string string

setShopId

mixed HTMLTemplateCore::setShopId()