class FormSocialContrib (View source)

Class to manage generation of HTML components for social contributions management

Properties

DoliDB $db
string $error

Methods

__construct(DoliDB $db)

Constructor

select_type_socialcontrib(int $selected = 0, string $htmlname = 'actioncode', $useempty = 0, $maxlen = 40, $help = 1, $morecss = 'minwidth300', $noerrorifempty = 0)

Return list of social contributions.

Details

__construct(DoliDB $db)

Constructor

Parameters

DoliDB $db

Database handler

select_type_socialcontrib(int $selected = 0, string $htmlname = 'actioncode', $useempty = 0, $maxlen = 40, $help = 1, $morecss = 'minwidth300', $noerrorifempty = 0)

Return list of social contributions.

Use mysoc->country_id or mysoc->country_code so they must be defined.

Parameters

int $selected

Preselected type

string $htmlname

Name of field in form @param int<0,1> $useempty Set to 1 if we want an empty value @param int $maxlen Max length of text in combo box @param int<0,1> $help Add or not the admin help picto @param string $morecss Add more CSS on select @param int<0,1> $noerrorifempty No print error if list is empty for the country @return void

$useempty
$maxlen
$help
$morecss
$noerrorifempty