dolibarr  9.0.0
Public Member Functions | List of all members
FormWebsite Class Reference

Class to manage component html for module website. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 selectWebsite ($selected='', $htmlname='exportmodelid', $useempty=0)
 Return HTML select list of export models. More...
 
 selectTypeOfContainer ($htmlname, $selected='', $useempty=0, $moreattrib='')
 Return a HTML select list of a dictionary. More...
 
 selectSampleOfContainer ($htmlname, $selected='', $useempty=0, $moreattrib='')
 Return a HTML select list of a dictionary. More...
 

Detailed Description

Class to manage component html for module website.

Definition at line 28 of file html.formwebsite.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormWebsite::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 43 of file html.formwebsite.class.php.

Member Function Documentation

◆ selectSampleOfContainer()

FormWebsite::selectSampleOfContainer (   $htmlname,
  $selected = '',
  $useempty = 0,
  $moreattrib = '' 
)

Return a HTML select list of a dictionary.

Parameters
string$htmlnameName of select zone
string$selectedSelected value
int$useempty1=Add an empty value in list
string$moreattribMore attributes on HTML select tag
Returns
void

Definition at line 173 of file html.formwebsite.class.php.

◆ selectTypeOfContainer()

FormWebsite::selectTypeOfContainer (   $htmlname,
  $selected = '',
  $useempty = 0,
  $moreattrib = '' 
)

Return a HTML select list of a dictionary.

Parameters
string$htmlnameName of select zone
string$selectedSelected value
int$useempty1=Add an empty value in list, 2=Add an empty value in list only if there is more than 2 entries.
string$moreattribMore attributes on HTML select tag
Returns
void

Definition at line 110 of file html.formwebsite.class.php.

◆ selectWebsite()

FormWebsite::selectWebsite (   $selected = '',
  $htmlname = 'exportmodelid',
  $useempty = 0 
)

Return HTML select list of export models.

Parameters
string$selectedId modele pre-selectionne
string$htmlnameName of HTML select
int$useemptyShow empty value or not
Returns
string Html component

Definition at line 57 of file html.formwebsite.class.php.


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