Space to separate "&&" so that all "&$var" can be made into "$var" later
[openemr.git] / library / classes / class.Handler_HL7v2.php
blob80a250325162aa21c3ce78e64fd5d404a5883aab
1 <?php
2 // $Id$
3 // $Author$
5 class Handler_HL7v2 {
7 var $parser;
9 function Handler_HL7v2 ($parser) {
10 $this->parser = &$parser;
13 function Type () {
14 return false;
17 //----- Internal methods
19 function _StripToNumeric ($string) {
20 $target = '';
21 for ($pos=0; $pos<strlen($string); $pos++) {
22 switch (substr($string, $pos, 1)) {
23 case '0': case '1': case '2': case '3':
24 case '4': case '5': case '6': case '7':
25 case '8': case '9':
26 $target .= substr($string, $pos, 1);
27 break;
28 default: // do nothing
29 break;
32 return $target;
33 } // end method _StripToNumeric
35 } // end class Handler_HL7v2