dolibarr  7.0.0-beta
Public Member Functions | List of all members
FormIntervention Class Reference

Class to manage generation of HTML components for contract module. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 select_interventions ($socid=-1, $selected='', $htmlname='interventionid', $maxlength=16, $showempty=1)
 Show a combo list with contracts qualified for a third party. More...
 

Detailed Description

Class to manage generation of HTML components for contract module.

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

Constructor & Destructor Documentation

FormIntervention::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 39 of file html.formintervention.class.php.

Member Function Documentation

FormIntervention::select_interventions (   $socid = -1,
  $selected = '',
  $htmlname = 'interventionid',
  $maxlength = 16,
  $showempty = 1 
)

Show a combo list with contracts qualified for a third party.

Parameters
int$socidId third party (-1=all, 0=only interventions not linked to a third party, id=intervention not linked or linked to third party id)
int$selectedId intervention preselected
string$htmlnameNom de la zone html
int$maxlengthMaximum length of label
int$showemptyShow empty line
Returns
int Nbre of project if OK, <0 if KO

Definition at line 55 of file html.formintervention.class.php.

References $resql, dol_print_error(), dol_syslog(), and dol_trunc().


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