Documentation

HelperTrait

Helper trait for auto-completion of code in modern IDEs.

The trait provides convenience methods for view helpers, defined in the application module. It is designed to be used for type-hinting $this variable inside laminas-view templates via doc blocks.

Other traits from laminas are already chained into this trait. This includes support for the FlashMessenger, Form, and i18n view helpers.

Table of Contents

Methods

acl()  : Acl
addBreadcrumb()  : Breadcrumbs
bootstrapElementError()  : string
breadcrumbs()  : Breadcrumbs
companyIdentity()  : CompanyUser|null
diff()  : string
featuredCompanyPackage()  : CompanyFeaturedPackage|null
fileUrl()  : string
glideUrl()  : GlideUrl
hashUrl()  : HashUrl
hrefLang()  : HrefLang
jobCategories()  : array<string|int, JobCategory>
localisedTextElement()  : string
localiseText()  : string
markdown()  : string
moduleIsActive()  : bool
scriptUrl()  : ScriptUrl
truncate()  : string

Methods

acl()

public acl([string $factory = ]) : Acl
Parameters
$factory : string =
Return values
Acl

addBreadcrumb()

public addBreadcrumb([string $breadcrumb = '\'\'' ][, bool $active = true ][, string $url = '\'\'' ][, string|null $setType = null ]) : Breadcrumbs
Parameters
$breadcrumb : string = '\'\''
$active : bool = true
$url : string = '\'\''
$setType : string|null = null
Return values
Breadcrumbs

bootstrapElementError()

public bootstrapElementError([ElementInterface $element = ]) : string
Parameters
$element : ElementInterface =
Return values
string

diff()

public diff([string|null $old = ][, string|null $new = ][, string $renderer = Diff::DIFF_RENDER_COMBINED ][, array<string|int, mixed> $rendererOverwrites = [] ][, array<string|int, mixed> $differOverwrites = [] ]) : string
Parameters
$old : string|null =
$new : string|null =
$renderer : string = Diff::DIFF_RENDER_COMBINED
$rendererOverwrites : array<string|int, mixed> = []
$differOverwrites : array<string|int, mixed> = []
Return values
string

fileUrl()

public fileUrl([string $path = ]) : string
Parameters
$path : string =
Return values
string

localisedTextElement()

public localisedTextElement([ElementInterface $element = ]) : string
Parameters
$element : ElementInterface =
Return values
string

markdown()

public markdown([string $text = ][, bool $company = false ]) : string
Parameters
$text : string =
$company : bool = false
Return values
string

moduleIsActive()

public moduleIsActive([array<string|int, mixed> $conditions = ]) : bool
Parameters
$conditions : array<string|int, mixed> =
Return values
bool

truncate()

public truncate([string $text = ][, int $length = 100 ][, array<string|int, mixed> $options = [] ]) : string
Parameters
$text : string =
$length : int = 100
$options : array<string|int, mixed> = []
Return values
string

        
On this page

Search results