Lines Matching refs:val
1056 function XML_RPC_Response($val, $fcode = 0, $fstr = '') argument
1062 $this->xv = $val;
1560 function XML_RPC_Value($val = -1, $type = '') argument
1564 if ($val != -1 || $type != '') {
1572 $this->addScalar($val, $type);
1574 $this->addArray($val);
1576 $this->addStruct($val);
1584 function addScalar($val, $type = 'string') argument
1599 if (strcasecmp($val, 'true') == 0
1600 || $val == 1
1601 || ($val == true && strcasecmp($val, 'false')))
1603 $val = 1;
1605 $val = 0;
1612 $ar[] = new XML_RPC_Value($val, $type);
1616 $this->me[$type] = $val;
1660 foreach ($ar as $key => $val) {
1661 echo "$key => $val<br />";
1663 foreach ($val as $key2 => $val2) {
1693 function serializedata($typ, $val) argument
1705 reset($val);
1706 foreach ($val as $key2 => $val2) {
1717 foreach ($val as $value) {
1726 $rs .= "<${typ}>" . base64_encode($val) . "</${typ}>";
1729 $rs .= "<${typ}>" . ($val ? '1' : '0') . "</${typ}>";
1732 $rs .= "<${typ}>" . htmlspecialchars($val). "</${typ}>";
1735 $rs .= "<${typ}>${val}</${typ}>";
1759 list($typ, $val) = each($ar);
1760 return '<value>' . $this->serializedata($typ, $val) . "</value>\n";
1871 * @param mixed $val the variable to be evaluated
1878 function isValue($val) argument
1880 return (strtolower(get_class($val)) == 'xml_rpc_value');