doxygen
This commit is contained in:
parent
81f6a7abb6
commit
06325f9422
@ -30,19 +30,54 @@ include_once DOL_DOCUMENT_ROOT.'/core/modules/printing/modules_printing.php';
|
|||||||
*/
|
*/
|
||||||
class printing_printipp extends PrintingDriver
|
class printing_printipp extends PrintingDriver
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string module name
|
||||||
|
*/
|
||||||
public $name = 'printipp';
|
public $name = 'printipp';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string module description
|
||||||
|
*/
|
||||||
public $desc = 'PrintIPPDesc';
|
public $desc = 'PrintIPPDesc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
|
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
|
||||||
*/
|
*/
|
||||||
public $picto = 'printer';
|
public $picto = 'printer';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Constant name
|
||||||
|
*/
|
||||||
public $active = 'PRINTING_PRINTIPP';
|
public $active = 'PRINTING_PRINTIPP';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array array of setup value
|
||||||
|
*/
|
||||||
public $conf = array();
|
public $conf = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string host
|
||||||
|
*/
|
||||||
public $host;
|
public $host;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string port
|
||||||
|
*/
|
||||||
public $port;
|
public $port;
|
||||||
public $userid; /* user login */
|
|
||||||
|
/**
|
||||||
|
* @var string username
|
||||||
|
*/
|
||||||
|
public $userid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string login for printer host
|
||||||
|
*/
|
||||||
public $user;
|
public $user;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string password for printer host
|
||||||
|
*/
|
||||||
public $password;
|
public $password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -115,7 +150,7 @@ class printing_printipp extends PrintingDriver
|
|||||||
$obj = $this->db->fetch_object($result);
|
$obj = $this->db->fetch_object($result);
|
||||||
if ($obj)
|
if ($obj)
|
||||||
{
|
{
|
||||||
dol_syslog("Found a default printer for user ".$user->id." = ".$obj->printer_id);
|
dol_syslog("Found a default printer for user ".$user->id." = ".$obj->printer_id);
|
||||||
$ipp->setPrinterURI($obj->printer_id);
|
$ipp->setPrinterURI($obj->printer_id);
|
||||||
} else {
|
} else {
|
||||||
if (!empty($conf->global->PRINTIPP_URI_DEFAULT))
|
if (!empty($conf->global->PRINTIPP_URI_DEFAULT))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user