class pdf_standard_actions (View source)

Class to generate event report

Properties

DoliDB $db
string $error
string[] $errors
string[] $warnings
string $description
int $date_edition
int $year
int $month
string $title
string $subject
int $marge_gauche
int $marge_droite
int $marge_haute
int $marge_basse
array{0: float, 1: float} $format
string $type
int $page_hauteur
int $page_largeur
int $corner_radius
array{fullpath: string} $result

Methods

__construct(DoliDB $db, int $month, int $year)

Constructor

int<-1, 1>
write_file(CommonObject $object, Translate $outputlangs)

Write the object to document file to disk

Details

__construct(DoliDB $db, int $month, int $year)

Constructor

Parameters

DoliDB $db

Database handler

int $month Month
int $year Year

int<-1, 1> write_file(CommonObject $object, Translate $outputlangs)

Write the object to document file to disk

Parameters

CommonObject $object Order/...
Translate $outputlangs

Lang object for output language

Return Value

int<-1, 1>

1 => OK, <=0 => KO