dolibarr 20.0.0
FormListWebPortal Class Reference

Class to manage generation of HTML components Only common components for WebPortal must be here. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 init ($elementEn)
 Init.
 
 doActions ()
 Do actions.
 
 elementList ($context)
 List for an element in the page context.
 

Static Public Member Functions

static generatePageListNav (string $url, int $nbPages, int $currentPage)
 Generate with pagination navigaion.
 

Detailed Description

Class to manage generation of HTML components Only common components for WebPortal must be here.

Definition at line 38 of file html.formlistwebportal.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormListWebPortal::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 116 of file html.formlistwebportal.class.php.

Member Function Documentation

◆ doActions()

FormListWebPortal::doActions ( )

Do actions.

Returns
void

Definition at line 225 of file html.formlistwebportal.class.php.

References GETPOST().

◆ elementList()

FormListWebPortal::elementList ( $context)

List for an element in the page context.

Parameters
Context$contextContext object
Returns
string Html output

Definition at line 255 of file html.formlistwebportal.class.php.

References dol_escape_htmltag(), dol_mktime(), dol_print_error(), dol_sanitizeFileName(), getDolGlobalInt(), getEntity(), GETPOSTINT(), natural_search(), price2num(), Facture\STATUS_CLOSED, and Facture\TYPE_CREDIT_NOTE.

◆ generatePageListNav()

static FormListWebPortal::generatePageListNav ( string $url,
int $nbPages,
int $currentPage )
static

Generate with pagination navigaion.

Parameters
string$urlUrl of current page
int$nbPagesTotal of pages results
int$currentPageNumber of current page
Returns
string

Definition at line 770 of file html.formlistwebportal.class.php.

References dol_escape_htmltag().

◆ init()

FormListWebPortal::init ( $elementEn)

Init.

Parameters
string$elementEnElement (english) : "propal", "order", "invoice"
Returns
void

Definition at line 128 of file html.formlistwebportal.class.php.

References dol_eval(), dol_include_once(), dol_sort_array(), GETPOST(), and GETPOSTINT().


The documentation for this class was generated from the following file: