Documentation

view
in package

Class view

Tags
author

Lutz Boldt boldt@bitstore-online.de

Table of Contents

Methods

generateaccordion()  : string
Generates the HTML markup for an accordion based on the provided ticket number and type.
generatebox()  : string
Generates the HTML markup for a box based on the provided type.
generatemessage()  : string
generatesbuttonsinview()  : string
Generates the HTML markup for the buttons to be displayed in a view based on the provided ticket number and type.
generateticketsbox()  : string
Generates the HTML markup for a ticket box based on the provided ticket data.
getshortstatistics()  : string|bool
Retrieves a short statistics of ticket statuses and generates the HTML markup to display them.
generatefilterbox()  : string
Generates the HTML markup for a filter box based on the provided status.
generatelegendsbox()  : string
Generates the HTML markup for a legends box.

Methods

generateaccordion()

Generates the HTML markup for an accordion based on the provided ticket number and type.

public generateaccordion(string $tnum[, string $type = '0' ]) : string
Parameters
$tnum : string

The ticket number.

$type : string = '0'

The type of accordion to generate. (Default: '0')

Return values
string

The generated HTML markup for the accordion.

generatebox()

Generates the HTML markup for a box based on the provided type.

public generatebox([string $type = '1' ]) : string
Parameters
$type : string = '1'

The type of box to generate. Default is '1'.

Return values
string

The generated HTML markup for the box.

generatemessage()

public generatemessage(array<string|int, mixed> $tm) : string
Parameters
$tm : array<string|int, mixed>
Return values
string

generatesbuttonsinview()

Generates the HTML markup for the buttons to be displayed in a view based on the provided ticket number and type.

public generatesbuttonsinview(string $tnum[, string $type = '0' ]) : string
Parameters
$tnum : string

The ticket number.

$type : string = '0'

The type of the ticket. Default value is '0'.

Return values
string

The generated HTML markup for the buttons.

generateticketsbox()

Generates the HTML markup for a ticket box based on the provided ticket data.

public generateticketsbox(array<string|int, mixed> $t) : string
Parameters
$t : array<string|int, mixed>

The ticket data.

Return values
string

The generated HTML markup for the ticket box.

getshortstatistics()

Retrieves a short statistics of ticket statuses and generates the HTML markup to display them.

public getshortstatistics() : string|bool
Return values
string|bool

The generated HTML markup for the short statistics, or false if an error occurred.

generatefilterbox()

Generates the HTML markup for a filter box based on the provided status.

private generatefilterbox([string $status = '' ]) : string
Parameters
$status : string = ''

(optional) The status of the tickets to filter. Default is ''.

Return values
string

The generated HTML markup for the filter box.

generatelegendsbox()

Generates the HTML markup for a legends box.

private generatelegendsbox() : string

This method generates the HTML markup for displaying legends in a box. The legends represent the different status and types of tickets for better understanding and visualization.

Return values
string

The generated HTML markup for the legends box.


        
On this page

Search results