Printers/Utility/Printaitor.php
public static function __createOutput ( $printerId  ) {
        // cargar datos de la impresora
        $Printer = ClassRegistry::init("Printers.Printer");
        $Printer->recursive = -1;
        $printer = $Printer->read(null, $printerId);
        if ( empty($printer['Printer']['output']) ) {
            return false;
        }
        $outputName = $printer['Printer']['output'] . 'PrinterOutput';


        // cargar la Salida correspondiente segun la configuracion de la impresora
        App::uses($outputName, 'Printers.Lib/PrinterOutput');
        self::$Output = new $outputName;
        return true;
    }
public static function __createOutput ( $printerId  ) {
        // cargar datos de la impresora
        $Printer = ClassRegistry::init("Printers.Printer");
        $Printer->recursive = -1;
        $printer = $Printer->read(null, $printerId);
        if ( empty($printer['Printer']['output']) ) {
            return false;
        }
        $outputName = $printer['Printer']['output'] . 'PrinterOutput';


        // cargar la Salida correspondiente segun la configuracion de la impresora
        App::uses($outputName, 'Printers.Lib/PrinterOutput');
        self::$Output = new $outputName;
        return true;
    }
public static function __createOutput ( $ printerId ) { // cargar datos de la impresora $ Printer = ClassRegistry :: init ( "Printers.Printer" ) ; $ Printer -> recursive = - 1 ; $ printer = $ Printer -> read ( null , $ printerId ) ; if ( empty ( $ printer [ 'Printer' ] [ 'output' ] ) ) { return false ; } $ outputName = $ printer [ 'Printer' ] [ 'output' ] . 'PrinterOutput' ; // cargar la Salida correspondiente segun la configuracion de la impresora App :: uses ( $ outputName , 'Printers.Lib/PrinterOutput' ) ; self :: $ Output = new $ outputName ; return true ; }
Gets the name of the printer engine

@return boolean true si hay outut false si no la hay
Gets the name of the printer engine