Lines Matching refs:val

345 	    	$val = str_replace("'", ''', $val);
346 $val = str_replace('"', '"', $val);
451 if (is_null($val)) {
472 if (is_bool($val)) {
474 $val = $val ? 'true' : 'false';
475 } elseif (! $val) {
476 $val = 0;
478 } else if (is_string($val)) {
479 $val = $this->expandEntities($val);
482 $xml = "<$name$xmlns$atts>$val</$name>";
486 $xml = "<$name$xmlns xsi:type=\"xsd:$type\"$atts>$val</$name>";
494 case (is_bool($val) || $type == 'boolean'):
497 $val = $val ? 'true' : 'false';
498 } elseif (! $val) {
499 $val = 0;
502 $xml .= "<$name$xmlns$atts>$val</$name>";
504 $xml .= "<$name$xmlns xsi:type=\"xsd:boolean\"$atts>$val</$name>";
507 case (is_int($val) || is_long($val) || $type == 'int'):
510 $xml .= "<$name$xmlns$atts>$val</$name>";
512 $xml .= "<$name$xmlns xsi:type=\"xsd:int\"$atts>$val</$name>";
515 case (is_float($val)|| is_double($val) || $type == 'float'):
518 $xml .= "<$name$xmlns$atts>$val</$name>";
520 $xml .= "<$name$xmlns xsi:type=\"xsd:float\"$atts>$val</$name>";
523 case (is_string($val) || $type == 'string'):
525 $val = $this->expandEntities($val);
527 $xml .= "<$name$xmlns$atts>$val</$name>";
529 $xml .= "<$name$xmlns xsi:type=\"xsd:string\"$atts>$val</$name>";
532 case is_object($val):
534 if (get_class($val) == 'soapval') {
536 $pXml = $val->serialize($use);
537 $this->appendDebug($val->getDebug());
538 $val->clearDebug();
541 $name = get_class($val);
544 …ebug("In serialize_val, do not override name $name for element name for class " . get_class($val));
546 foreach(get_object_vars($val) as $k => $v){
562 case (is_array($val) || $type):
564 $valueType = $this->isArraySimpleOrStruct($val);
568 if(is_array($val) && count($val)> 0){
569 foreach($val as $v){
639 foreach($val as $k => $v){