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

Class of file to build cheque deposit receipts. More...

+ Inheritance diagram for BordereauChequeBlochet:
+ Collaboration diagram for BordereauChequeBlochet:

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 write_file ($object, $_dir, $number, $outputlangs)
 Fonction to generate document on disk. More...
 
 Header (&$pdf, $page, $pages, $outputlangs)
 Generate Header. More...
 
 Body (&$pdf, $pagenb, $pages, $outputlangs)
 Output array. More...
 
 _pagefoot (&$pdf, $object, $outputlangs, $hidefreetext=0)
 Show footer of page. More...
 
- Public Member Functions inherited from CommonDocGenerator
 __construct ($db)
 Constructor. More...
 
 get_substitutionarray_user ($user, $outputlangs)
 Define array with couple subtitution key => subtitution value. More...
 
 get_substitutionarray_mysoc ($mysoc, $outputlangs)
 Define array with couple subtitution key => subtitution value. More...
 
 get_substitutionarray_thirdparty ($object, $outputlangs)
 Define array with couple subtitution key => subtitution value. More...
 
 get_substitutionarray_contact ($object, $outputlangs, $array_key= 'object')
 Define array with couple subtitution key => subtitution value. More...
 
 get_substitutionarray_other ($outputlangs)
 Define array with couple subtitution key => subtitution value. More...
 
 get_substitutionarray_object ($object, $outputlangs, $array_key='object')
 Define array with couple substitution key => substitution value. More...
 
 get_substitutionarray_lines ($line, $outputlangs)
 Define array with couple substitution key => substitution value. More...
 
 get_substitutionarray_shipment ($object, $outputlangs, $array_key='object')
 Define array with couple substitution key => substitution value. More...
 
 get_substitutionarray_shipment_lines ($line, $outputlangs)
 Define array with couple substitution key => substitution value. More...
 
 get_substitutionarray_each_var_object (&$object, $outputlangs, $recursive=true)
 Define array with couple subtitution key => subtitution value. More...
 
 fill_substitutionarray_with_extrafields ($object, $array_to_fill, $extrafields, $array_key, $outputlangs)
 Fill array with couple extrafield key => extrafield value. More...
 
 printRect ($pdf, $x, $y, $l, $h, $hidetop=0, $hidebottom=0)
 Rect pdf. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ModeleChequeReceipts
static liste_modeles ($db, $maxfilenamelength=0)
 Return list of active generation modules. More...
 

Detailed Description

Class of file to build cheque deposit receipts.

Definition at line 35 of file pdf_blochet.class.php.

Constructor & Destructor Documentation

BordereauChequeBlochet::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 44 of file pdf_blochet.class.php.

References name, pdf_getFormat(), and type.

Member Function Documentation

BordereauChequeBlochet::_pagefoot ( $pdf,
  $object,
  $outputlangs,
  $hidefreetext = 0 
)

Show footer of page.

Need this->emetteur object

Parameters
PDF$pdfPDF
Object$objectObject to show
Translate$outputlangsObject lang for output
int$hidefreetext1=Hide free text
Returns
void

Definition at line 376 of file pdf_blochet.class.php.

References make_substitutions(), pdf_getPDFFontSize(), and pdf_pagefoot().

Referenced by write_file().

BordereauChequeBlochet::Body ( $pdf,
  $pagenb,
  $pages,
  $outputlangs 
)

Output array.

Parameters
PDF$pdfPDF object
int$pagenbPage nb
int$pagesPages
Translate$outputlangsObject lang
Returns
void

Definition at line 318 of file pdf_blochet.class.php.

References dol_trunc(), Header(), pdf_getPDFFontSize(), and price().

Referenced by write_file().

BordereauChequeBlochet::Header ( $pdf,
  $page,
  $pages,
  $outputlangs 
)

Generate Header.

Parameters
PDF$pdfPdf object
int$pageCurrent page number
int$pagesTotal number of pages
Translate$outputlangsObject language for output
Returns
void

Definition at line 212 of file pdf_blochet.class.php.

References $title, dol_print_date(), pdf_bank(), pdf_getPDFFontSize(), and price().

Referenced by Body(), and write_file().

BordereauChequeBlochet::write_file (   $object,
  $_dir,
  $number,
  $outputlangs 
)

Fonction to generate document on disk.

Parameters
RemiseCheque$objectObject RemiseCheque
string$_dirDirectory
string$numberNumber
Translate$outputlangsLang output object
Returns
int 1=ok, 0=ko

Definition at line 86 of file pdf_blochet.class.php.

References _pagefoot(), Body(), dol_mkdir(), Header(), pdf_getInstance(), and pdf_getPDFFont().


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