This commit is contained in:
Laurent Destailleur 2012-01-10 10:53:04 +01:00
parent c8a61a20ab
commit b2cd7018db

View File

@ -43,7 +43,14 @@ class CommActionRapport
var $title;
var $subject;
function CommActionRapport($db=0, $month, $year)
/**
* Constructor
*
* @param DoliDB $db Database handler
* @param int $month Month
* @param int $year Year
*/
function CommActionRapport($db, $month, $year)
{
global $langs;
$langs->load("commercial");
@ -71,10 +78,11 @@ class CommActionRapport
/**
* Write the object to document file to disk
* @param socid
* @param catid
* @param outputlangs Lang object for output language
* @return int 1=OK, 0=KO
*
* @param int $socid Thirdparty id
* @param int $catid Cat id
* @param Translate $outputlangs Lang object for output language
* @return int 1=OK, 0=KO
*/
function write_file($socid = 0, $catid = 0, $outputlangs='')
{
@ -143,9 +151,9 @@ class CommActionRapport
/**
* Write content of pages
*
* @param $pdf
* @param $outputlangs
* @return int 1
* @param PDF &$pdf Object pdf
* @param Translate $outputlangs Object langs
* @return int 1
*/
function _pages(&$pdf, $outputlangs)
{
@ -226,8 +234,8 @@ class CommActionRapport
/**
* Show page head
*
* @param PDF $pdf Objet PDF
* @param Translate $outputlangs Objet lang cible
* @param PDF &$pdf Object PDF
* @param Translate $outputlangs Object langs
* @param int $pagenb Page nb
* @return int Pos y
*/