dolibarr 21.0.0-alpha
modules_fichinter.php File Reference

File that contains parent class for PDF interventions models and parent class for interventions numbering models. More...

Go to the source code of this file.

Classes

class  ModelePDFFicheinter
 Parent class to manage intervention document templates. More...
 
class  ModeleNumRefFicheinter
 Parent class numbering models of intervention sheet references. More...
 

Functions

 fichinter_create ($db, $object, $modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
 Create an intervention document on disk using template defined into FICHEINTER_ADDON_PDF.
 

Detailed Description

File that contains parent class for PDF interventions models and parent class for interventions numbering models.

Definition in file modules_fichinter.php.

Function Documentation

◆ fichinter_create()

fichinter_create ( $db,
$object,
$modele,
$outputlangs,
$hidedetails = 0,
$hidedesc = 0,
$hideref = 0 )

Create an intervention document on disk using template defined into FICHEINTER_ADDON_PDF.

Parameters
DoliDB$dbobject base de donnee
Object$objectObject fichinter
string$modeleforce le modele a utiliser ('' par default)
Translate$outputlangsobject lang a utiliser pour traduction
int$hidedetailsHide details of lines
int$hidedescHide description
int$hiderefHide ref
Returns
int 0 if KO, 1 if OK

Definition at line 112 of file modules_fichinter.php.

References $object, dol_buildpath(), dol_delete_preview(), dol_print_error(), dol_strlen(), and getDolGlobalString().