public static function getPreview() { $result = lC_Products_Admin::preview($_GET['pid']); $result['rpcStatus'] = RPC_STATUS_SUCCESS; echo json_encode($result); }