composer package updates
[openemr.git] / vendor / adldap2 / adldap2 / src / Models / Printer.php
blob18ffb1e7fb42b2c69a186943058b73c610af1664
1 <?php
3 namespace Adldap\Models;
5 /**
6 * Class Printer
8 * Represents an LDAP printer.
10 * @package Adldap\Models
12 class Printer extends Entry
14 /**
15 * Returns the printers name.
17 * @link https://msdn.microsoft.com/en-us/library/ms679385(v=vs.85).aspx
19 * @return string
21 public function getPrinterName()
23 return $this->getFirstAttribute($this->schema->printerName());
26 /**
27 * Returns the printers share name.
29 * @link https://msdn.microsoft.com/en-us/library/ms679408(v=vs.85).aspx
31 * @return string
33 public function getPrinterShareName()
35 return $this->getFirstAttribute($this->schema->printerShareName());
38 /**
39 * Returns the printers memory.
41 * @link https://msdn.microsoft.com/en-us/library/ms679396(v=vs.85).aspx
43 * @return string
45 public function getMemory()
47 return $this->getFirstAttribute($this->schema->printerMemory());
50 /**
51 * Returns the printers URL.
53 * @return string
55 public function getUrl()
57 return $this->getFirstAttribute($this->schema->url());
60 /**
61 * Returns the printers location.
63 * @link https://msdn.microsoft.com/en-us/library/ms676839(v=vs.85).aspx
65 * @return string
67 public function getLocation()
69 return $this->getFirstAttribute($this->schema->location());
72 /**
73 * Returns the server name that the
74 * current printer is connected to.
76 * @link https://msdn.microsoft.com/en-us/library/ms679772(v=vs.85).aspx
78 * @return string
80 public function getServerName()
82 return $this->getFirstAttribute($this->schema->serverName());
85 /**
86 * Returns true / false if the printer can print in color.
88 * @link https://msdn.microsoft.com/en-us/library/ms679382(v=vs.85).aspx
90 * @return null|bool
92 public function getColorSupported()
94 return $this->convertStringToBool(
95 $this->getFirstAttribute(
96 $this->schema->printerColorSupported()
102 * Returns true / false if the printer supports duplex printing.
104 * @link https://msdn.microsoft.com/en-us/library/ms679383(v=vs.85).aspx
106 * @return null|bool
108 public function getDuplexSupported()
110 return $this->convertStringToBool(
111 $this->getFirstAttribute(
112 $this->schema->printerDuplexSupported()
118 * Returns an array of printer paper types that the printer supports.
120 * @link https://msdn.microsoft.com/en-us/library/ms679395(v=vs.85).aspx
122 * @return array
124 public function getMediaSupported()
126 return $this->getAttribute($this->schema->printerMediaSupported());
130 * Returns true / false if the printer supports stapling.
132 * @link https://msdn.microsoft.com/en-us/library/ms679410(v=vs.85).aspx
134 * @return null|bool
136 public function getStaplingSupported()
138 return $this->convertStringToBool(
139 $this->getFirstAttribute(
140 $this->schema->printerStaplingSupported()
146 * Returns an array of the printers bin names.
148 * @link https://msdn.microsoft.com/en-us/library/ms679380(v=vs.85).aspx
150 * @return array
152 public function getPrintBinNames()
154 return $this->getAttribute($this->schema->printerBinNames());
158 * Returns the printers maximum resolution.
160 * @link https://msdn.microsoft.com/en-us/library/ms679391(v=vs.85).aspx
162 * @return string
164 public function getPrintMaxResolution()
166 return $this->getFirstAttribute($this->schema->printerMaxResolutionSupported());
170 * Returns the printers orientations supported.
172 * @link https://msdn.microsoft.com/en-us/library/ms679402(v=vs.85).aspx
174 * @return string
176 public function getPrintOrientations()
178 return $this->getFirstAttribute($this->schema->printerOrientationSupported());
182 * Returns the driver name of the printer.
184 * @link https://msdn.microsoft.com/en-us/library/ms675652(v=vs.85).aspx
186 * @return string
188 public function getDriverName()
190 return $this->getFirstAttribute($this->schema->driverName());
194 * Returns the printer drivers version number.
196 * @link https://msdn.microsoft.com/en-us/library/ms675653(v=vs.85).aspx
198 * @return string
200 public function getDriverVersion()
202 return $this->getFirstAttribute($this->schema->driverVersion());
206 * Returns the priority number of the printer.
208 * @link https://msdn.microsoft.com/en-us/library/ms679413(v=vs.85).aspx
210 * @return string
212 public function getPriority()
214 return $this->getFirstAttribute($this->schema->priority());
218 * Returns the printers start time.
220 * @link https://msdn.microsoft.com/en-us/library/ms679411(v=vs.85).aspx
222 * @return string
224 public function getPrintStartTime()
226 return $this->getFirstAttribute($this->schema->printerStartTime());
230 * Returns the printers end time.
232 * @link https://msdn.microsoft.com/en-us/library/ms679384(v=vs.85).aspx
234 * @return string
236 public function getPrintEndTime()
238 return $this->getFirstAttribute($this->schema->printerEndTime());
242 * Returns the port name of printer.
244 * @link https://msdn.microsoft.com/en-us/library/ms679131(v=vs.85).aspx
246 * @return string
248 public function getPortName()
250 return $this->getFirstAttribute($this->schema->portName());
254 * Returns the printers version number.
256 * @link https://msdn.microsoft.com/en-us/library/ms680897(v=vs.85).aspx
258 * @return string
260 public function getVersionNumber()
262 return $this->getFirstAttribute($this->schema->versionNumber());
266 * Returns the print rate.
268 * @link https://msdn.microsoft.com/en-us/library/ms679405(v=vs.85).aspx
270 * @return string
272 public function getPrintRate()
274 return $this->getFirstAttribute($this->schema->printerPrintRate());
278 * Returns the print rate unit.
280 * @link https://msdn.microsoft.com/en-us/library/ms679406(v=vs.85).aspx
282 * @return string
284 public function getPrintRateUnit()
286 return $this->getFirstAttribute($this->schema->printerPrintRate());