26require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
47 public $errors = array();
67 public $active =
"NOT_SET";
87 public static function listDrivers($db, $maxfilenamelength = 0)
94 $listoffiles = array();
95 if (!empty(
$conf->modules_parts[
'printing'])) {
96 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array)
$conf->modules_parts[
'printing']);
98 $dirmodels = array(
'/core/modules/printing/');
100 foreach ($dirmodels as $dir) {
102 if (!empty($tmpfiles)) {
103 $listoffiles = array_merge($listoffiles, $tmpfiles);
106 foreach ($listoffiles as $record) {
107 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
120 $langs->load(
"printing");
121 $transstring =
"PrintingModuleDesc".$this->name;
122 if ($langs->trans($transstring) != $transstring) {
123 return $langs->trans($transstring);
136 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
138 $this->errors[] = $msg;
149 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
151 $this->errors[] = $msg;
165 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
167 $this->errors[] = $msg;
180 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
182 $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.