/** * Gets Structure Non Scalar field from XML RPC Value parameter * * @access private * * @param structure &$oStructure to return data * @param XML_RPC_Value $oStructParam * @param string $fieldName * @param XML_RPC_Response &$responseWithError * * @return boolean shows true if method was executed successfully */ function _getStructureNonScalarField(&$oStructure, &$oStructParam, $fieldName, &$oResponseWithError) { $oParam = $oStructParam->structmem($fieldName); if (isset($oParam)) { if ($oParam->kindOf() != 'scalar') { return XmlRpcUtils::_getNonScalarValue($oStructure->{$fieldName}, $oParam, $oResponseWithError); } else { $oResponseWithError = XmlRpcUtils::generateError('Structure field \'' . $fieldName . '\' should be non-scalar type '); return false; } } else { return true; } }