public function printgcode_temp() { $exchange_extruder = 0; $array_temper = array(); $gid = (int) $this->input->get('id'); $this->get_extra_info($array_temper, $exchange_extruder); if ($gid) { $gcode_info = array(); $this->load->helper(array('printerstoring', 'printer', 'corestatus')); $gcode_info = PrinterStoring_getInfo("gcode", $gid); if (!is_null($gcode_info)) { $this->set_led(); $cr = Printer_printFromLibrary($gid, $exchange_extruder, $array_temper); if ($cr == ERROR_OK) { $this->output->set_header('Location: /printdetail/status?id=' . CORESTATUS_VALUE_MID_PREFIXGCODE . $gid); return; } } } $this->output->set_header('Location: /printerstoring/listgcode'); return; }
public function libprintgcode() { $cr = ERROR_OK; $id = $this->input->get('id'); $this->load->helper('printer'); if ($id) { $id = (int) $id; if ($id < 1) { $cr = ERROR_WRONG_PRM; } else { $cr = Printer_printFromLibrary($id); } } else { $cr = ERROR_MISS_PRM; } $this->_return_cr($cr); return; }
function PrinterStoring_printGcode($id_gcode, $exchange_extruder = FALSE, $array_temper = array()) { $CI =& get_instance(); $CI->load->helper('printer'); return Printer_printFromLibrary($id_gcode, $exchange_extruder, $array_temper); }