26require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
77 public static function listDrivers($db, $maxfilenamelength = 0)
84 $listoffiles = array();
85 if (!empty($conf->modules_parts[
'printing'])) {
86 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array) $conf->modules_parts[
'printing']);
88 $dirmodels = array(
'/core/modules/printing/');
90 foreach ($dirmodels as $dir) {
92 if (!empty($tmpfiles)) {
93 $listoffiles = array_merge($listoffiles, $tmpfiles);
96 foreach ($listoffiles as $record) {
97 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
110 $langs->load(
"printing");
111 $transstring =
"PrintingModuleDesc".$this->name;
112 if ($langs->trans($transstring) != $transstring) {
113 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($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.