3 namespace Adldap\Models
;
8 * Represents an LDAP printer.
10 * @package Adldap\Models
12 class Printer
extends Entry
15 * Returns the printers name.
17 * @link https://msdn.microsoft.com/en-us/library/ms679385(v=vs.85).aspx
21 public function getPrinterName()
23 return $this->getFirstAttribute($this->schema
->printerName());
27 * Returns the printers share name.
29 * @link https://msdn.microsoft.com/en-us/library/ms679408(v=vs.85).aspx
33 public function getPrinterShareName()
35 return $this->getFirstAttribute($this->schema
->printerShareName());
39 * Returns the printers memory.
41 * @link https://msdn.microsoft.com/en-us/library/ms679396(v=vs.85).aspx
45 public function getMemory()
47 return $this->getFirstAttribute($this->schema
->printerMemory());
51 * Returns the printers URL.
55 public function getUrl()
57 return $this->getFirstAttribute($this->schema
->url());
61 * Returns the printers location.
63 * @link https://msdn.microsoft.com/en-us/library/ms676839(v=vs.85).aspx
67 public function getLocation()
69 return $this->getFirstAttribute($this->schema
->location());
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
80 public function getServerName()
82 return $this->getFirstAttribute($this->schema
->serverName());
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
284 public function getPrintRateUnit()
286 return $this->getFirstAttribute($this->schema
->printerPrintRate());