\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector}{}\section{Mike42\textbackslash{}Escpos\textbackslash{}Print\+Connectors\textbackslash{}Cups\+Print\+Connector Class Reference}
\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector}\index{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector@{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector}}


Inheritance diagram for Mike42\textbackslash{}Escpos\textbackslash{}Print\+Connectors\textbackslash{}Cups\+Print\+Connector\+:
% FIG 0


Collaboration diagram for Mike42\textbackslash{}Escpos\textbackslash{}Print\+Connectors\textbackslash{}Cups\+Print\+Connector\+:
% FIG 1
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_ac1132838e25a1521c714d7e9b5341f4e}{\+\_\+\+\_\+construct} (\$dest)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a910d02d262fda32f97061950defff4ef}{\+\_\+\+\_\+destruct} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a7f36415ba67d39a05747989d5faecb4c}{finalize} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_ad69b61d01054e6a29eb2c95d0fcb91fb}{read} (\$len)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a00f342b5c11d71ccd05c55029ca04247}{write} (\$data)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a682f3d6100be114e1e587c89b2444d43}{get\+Cmd\+Output} (\$cmd)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a2607c56d448a817aaa5f9a79b77b6334}{get\+Local\+Printers} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Print connector that passes print data to C\+U\+P\+S print commands. Your printer mut be installed on the local C\+U\+P\+S instance to use this connector. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_ac1132838e25a1521c714d7e9b5341f4e}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}}
\index{\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{\+\_\+\+\_\+construct}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::\+\_\+\+\_\+construct (
\begin{DoxyParamCaption}
\item[{}]{\$dest}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_ac1132838e25a1521c714d7e9b5341f4e}
Construct new C\+U\+P\+S print connector.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$dest} & The C\+U\+P\+S printer name to print to. This must be loaded using a raw driver. \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em Bad\+Method\+Call\+Exception} & \\
\hline
\end{DoxyExceptions}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a910d02d262fda32f97061950defff4ef}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!\+\_\+\+\_\+destruct@{\+\_\+\+\_\+destruct}}
\index{\+\_\+\+\_\+destruct@{\+\_\+\+\_\+destruct}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{\+\_\+\+\_\+destruct}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::\+\_\+\+\_\+destruct (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a910d02d262fda32f97061950defff4ef}
Cause a N\+O\+T\+I\+C\+E if deconstructed before the job was printed. 

Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_a55b7f305e73ba0d617a47eb2ab5b405a}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.



\subsection{Member Function Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a7f36415ba67d39a05747989d5faecb4c}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!finalize@{finalize}}
\index{finalize@{finalize}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{finalize}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::finalize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a7f36415ba67d39a05747989d5faecb4c}
Send job to printer. 

Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_a1cb3ab37b06121fcafdb9d2d0679baa2}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.

\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a682f3d6100be114e1e587c89b2444d43}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!get\+Cmd\+Output@{get\+Cmd\+Output}}
\index{get\+Cmd\+Output@{get\+Cmd\+Output}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{get\+Cmd\+Output}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::get\+Cmd\+Output (
\begin{DoxyParamCaption}
\item[{}]{\$cmd}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a682f3d6100be114e1e587c89b2444d43}
Run a command and throw an exception if it fails, or return the output if it works. (Basically exec() with good error handling)


\begin{DoxyParams}[1]{Parameters}
string & {\em \$cmd} & Command to run \\
\hline
\end{DoxyParams}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a2607c56d448a817aaa5f9a79b77b6334}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!get\+Local\+Printers@{get\+Local\+Printers}}
\index{get\+Local\+Printers@{get\+Local\+Printers}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{get\+Local\+Printers}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::get\+Local\+Printers (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a2607c56d448a817aaa5f9a79b77b6334}
Load a list of C\+U\+P\+S printers.

\begin{DoxyReturn}{Returns}
array A list of printer names installed on this system. Any item on this list is valid for constructing a printer. 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_ad69b61d01054e6a29eb2c95d0fcb91fb}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!read@{read}}
\index{read@{read}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::read (
\begin{DoxyParamCaption}
\item[{}]{\$len}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_ad69b61d01054e6a29eb2c95d0fcb91fb}
Read data from the printer.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$len} & Length of data to read. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Data read from the printer, or false where reading is not possible. 
\end{DoxyReturn}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_aec57437e3927972269f0803e9f86782e}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.

\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a00f342b5c11d71ccd05c55029ca04247}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}!write@{write}}
\index{write@{write}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Cups\+Print\+Connector}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Cups\+Print\+Connector\+::write (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1CupsPrintConnector_a00f342b5c11d71ccd05c55029ca04247}

\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & \\
\hline
\end{DoxyParams}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_afcfd2d805f8de8eb9c9d2abfbed232ab}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
C\+:/www/aplusnet/incahellas.\+com/public\+\_\+html/lib/escpos-\/php-\/development/src/\+Mike42/\+Escpos/\+Print\+Connectors/Cups\+Print\+Connector.\+php\end{DoxyCompactItemize}
