public static function act_getAllSystemJobPower($where = '1') { if (!Auth::checkAccess(__CLASS__, __FUNCTION__)) { self::$errCode = '5405'; self::$errMsg = 'You have no access to get all system job power'; echo json_encode(array('errCode' => self::$errCode, 'errMsg' => self::$errMsg)); return false; } $data = Jobpower::getJobpower($where); if (!$data) { self::$errCode = '5406'; self::$errMsg = 'No data or get all system JobPower error'; echo json_encode(array('errCode' => self::$errCode, 'errMsg' => self::$errMsg)); return false; } return $data; }