26require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
48 public $errors = array();
68 public $active =
"NOT_SET";
88 public static function listDrivers($db, $maxfilenamelength = 0)
95 $listoffiles = array();
96 if (!empty(
$conf->modules_parts[
'printing'])) {
97 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array)
$conf->modules_parts[
'printing']);
99 $dirmodels = array(
'/core/modules/printing/');
101 foreach ($dirmodels as $dir) {
103 if (!empty($tmpfiles)) {
104 $listoffiles = array_merge($listoffiles, $tmpfiles);
107 foreach ($listoffiles as $record) {
108 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
121 $langs->load(
"printing");
122 $transstring =
"PrintingModuleDesc".$this->name;
123 if ($langs->trans($transstring) != $transstring) {
124 return $langs->trans($transstring);
137 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
139 $this->errors[] = $msg;
150 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
152 $this->errors[] = $msg;
166 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
168 $this->errors[] = $msg;
181 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
183 $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.