26require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
48 public $errors = array();
69 public $active =
"NOT_SET";
89 public static function listDrivers($db, $maxfilenamelength = 0)
96 $listoffiles = array();
97 if (!empty(
$conf->modules_parts[
'printing'])) {
98 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array)
$conf->modules_parts[
'printing']);
100 $dirmodels = array(
'/core/modules/printing/');
102 foreach ($dirmodels as $dir) {
104 if (!empty($tmpfiles)) {
105 $listoffiles = array_merge($listoffiles, $tmpfiles);
108 foreach ($listoffiles as $record) {
109 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
122 $langs->load(
"printing");
123 $transstring =
"PrintingModuleDesc".$this->name;
124 if ($langs->trans($transstring) != $transstring) {
125 return $langs->trans($transstring);
138 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
140 $this->errors[] = $msg;
151 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
153 $this->errors[] = $msg;
167 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
169 $this->errors[] = $msg;
182 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
184 $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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...