25require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
62 public static function listDrivers($db, $maxfilenamelength = 0)
69 $listoffiles = array();
70 if (!empty($conf->modules_parts[
'printing'])) {
71 $dirmodels = array_merge(array(
'/core/modules/printing/'), (array) $conf->modules_parts[
'printing']);
73 $dirmodels = array(
'/core/modules/printing/');
75 foreach ($dirmodels as $dir) {
77 if (!empty($tmpfiles)) {
78 $listoffiles = array_merge($listoffiles, $tmpfiles);
81 foreach ($listoffiles as $record) {
82 $list[$record[
'fullname']] = str_replace(
'.modules.php',
'', $record[
'name']);
95 $langs->load(
"printing");
96 $transstring =
"PrintingModuleDesc".$this->name;
97 if ($langs->trans($transstring) != $transstring) {
98 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.