26require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
48 public $errors = array();
83 public static function listDrivers($db, $maxfilenamelength = 0)
90 $listoffiles = array();
91 if (!empty($conf->modules_parts[
'printing'])) {
92 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array) $conf->modules_parts[
'printing']);
94 $dirmodels = array(
'/core/modules/printing/');
96 foreach ($dirmodels as $dir) {
98 if (!empty($tmpfiles)) {
99 $listoffiles = array_merge($listoffiles, $tmpfiles);
102 foreach ($listoffiles as $record) {
103 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
116 $langs->load(
"printing");
117 $transstring =
"PrintingModuleDesc".$this->name;
118 if ($langs->trans($transstring) != $transstring) {
119 return $langs->trans($transstring);
132 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
134 $this->errors[] = $msg;
145 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
147 $this->errors[] = $msg;
161 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
163 $this->errors[] = $msg;
176 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
178 $this->errors[] = $msg;
Parent class of emailing target selectors modules.
listJobs($module=null)
List jobs print.
listAvailablePrinters()
Return list of available printers.
printFile($file, $module, $subdir='')
Print selected file.
static listDrivers($db, $maxfilenamelength=0)
Return list of printing driver.
__construct($db)
Constructor.
getDesc()
Return description of Printing Module.
getlistAvailablePrinters()
Return list of available printers.
dol_dir_list($utf8_path, $types="all", $recursive=0, $filter="", $excludefilter=null, $sortcriteria="name", $sortorder=SORT_ASC, $mode=0, $nohook=0, $relativename="", $donotfollowsymlinks=0, $nbsecondsold=0)
Scan a directory and return a list of files/directories.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.