25require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
76 public static function listDrivers($db, $maxfilenamelength = 0)
83 $listoffiles = array();
84 if (!empty($conf->modules_parts[
'printing'])) {
85 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array) $conf->modules_parts[
'printing']);
87 $dirmodels = array(
'/core/modules/printing/');
89 foreach ($dirmodels as $dir) {
91 if (!empty($tmpfiles)) {
92 $listoffiles = array_merge($listoffiles, $tmpfiles);
95 foreach ($listoffiles as $record) {
96 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
109 $langs->load(
"printing");
110 $transstring =
"PrintingModuleDesc".$this->name;
111 if ($langs->trans($transstring) != $transstring) {
112 return $langs->trans($transstring);
Parent class of emailing target selectors modules.
static listDrivers($db, $maxfilenamelength=0)
Return list of printing driver.
__construct($db)
Constructor.
getDesc()
Return description of Printing Module.
dol_dir_list($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.