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

Class to generate event report. More...

Public Member Functions

 __construct ($db, $month, $year)
 Constructor. More...
 
 write_file ($socid=0, $catid=0, $outputlangs='')
 Write the object to document file to disk. More...
 
 _pages (&$pdf, $outputlangs)
 Write content of pages. More...
 
 _pagehead (&$pdf, $outputlangs, $pagenb)
 Show top header of page. More...
 

Detailed Description

Class to generate event report.

Definition at line 36 of file rapport.pdf.php.

Constructor & Destructor Documentation

CommActionRapport::__construct (   $db,
  $month,
  $year 
)

Constructor.

Parameters
DoliDB$dbDatabase handler
int$monthMonth
int$yearYear

Definition at line 60 of file rapport.pdf.php.

References description, pdf_getFormat(), and type.

Member Function Documentation

CommActionRapport::_pagehead ( $pdf,
  $outputlangs,
  $pagenb 
)

Show top header of page.

Parameters
PDF$pdfObject PDF
Translate$outputlangsObject lang for output
int$pagenbPage nb
Returns
integer

Definition at line 317 of file rapport.pdf.php.

References pdf_getPDFFont().

Referenced by _pages().

CommActionRapport::_pages ( $pdf,
  $outputlangs 
)

Write content of pages.

Parameters
PDF$pdfObject pdf
Translate$outputlangsObject langs
Returns
int 1

Definition at line 194 of file rapport.pdf.php.

References $resql, _pagehead(), dol_get_first_day(), dol_get_last_day(), dol_htmlentitiesbr_decode(), dol_nboflines(), dol_print_date(), dol_syslog(), and dol_trunc().

Referenced by write_file().

CommActionRapport::write_file (   $socid = 0,
  $catid = 0,
  $outputlangs = '' 
)

Write the object to document file to disk.

Parameters
int$socidThirdparty id
int$catidCat id
Translate$outputlangsLang object for output language
Returns
int 1=OK, 0=KO

Definition at line 95 of file rapport.pdf.php.

References _pages(), dol_mkdir(), pdf_getInstance(), and pdf_getPDFFont().


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