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