mysql 8 fixes (#1639)
[openemr.git] / library / classes / class.Handler_HL7v2.php
blob02435638803b4ceec327f537e2e90aff85f4ca5e
1 <?php
2 // $Id$
3 // $Author$
5 class Handler_HL7v2
8 var $parser;
10 function __construct($parser)
12 $this->parser = &$parser;
15 function Type()
17 return false;
20 //----- Internal methods
22 function _StripToNumeric($string)
24 $target = '';
25 for ($pos=0; $pos<strlen($string); $pos++) {
26 switch (substr($string, $pos, 1)) {
27 case '0':
28 case '1':
29 case '2':
30 case '3':
31 case '4':
32 case '5':
33 case '6':
34 case '7':
35 case '8':
36 case '9':
37 $target .= substr($string, $pos, 1);
38 break;
39 default: // do nothing
40 break;
44 return $target;
45 } // end method _StripToNumeric
46 } // end class Handler_HL7v2