Example #1
0
 public function shutdown()
 {
     $cr = 0;
     $this->load->helper('printerstate');
     $cr = PrinterState_powerOff();
     $this->_return_cr($cr);
     return;
 }
Example #2
0
function ZimAPI_shutdown()
{
    // we leave a possibility to shutdown in ZimAPI helper, but I recommand you to load PrinterState directly
    $CI =& get_instance();
    $CI->load->helper('printerstate');
    return PrinterState_powerOff();
}
Example #3
0
 public function shutdown_ajax()
 {
     $this->load->helper('printerstate');
     PrinterState_powerOff();
 }