示例#1
0
文件: rest.php 项目: Jaesin/zim-web
 public function shutdown()
 {
     $cr = 0;
     $this->load->helper('printerstate');
     $cr = PrinterState_powerOff();
     $this->_return_cr($cr);
     return;
 }
示例#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();
}
示例#3
0
文件: manage.php 项目: Jaesin/zim-web
 public function shutdown_ajax()
 {
     $this->load->helper('printerstate');
     PrinterState_powerOff();
 }