/**
  * Get scalar values from parameters
  *
  * @access public
  *
  * @param array $aReferencesOnVariables array of references to variables
  * @param array $aRequired array of boolean values to indicate which field is required
  * @param XML_RPC_Message  $oParams
  * @param XML_RPC_Response &$oResponseWithError
  * @param integer $idxStart Index of parameter from which values start
  *
  * @return boolean  shows true if method was executed successfully
  */
 function getScalarValues($aReferencesOnVariables, $aRequired, &$oParams, &$oResponseWithError, $idxStart = 0)
 {
     if (count($aReferencesOnVariables) != count($aRequired)) {
         Max::raiseError('$aReferencesOnVariables & $aRequired arrays should have the same length');
         exit;
     }
     $cVariables = count($aReferencesOnVariables);
     for ($i = 0; $i < $cVariables; $i++) {
         if ($aRequired[$i]) {
             if (!XmlRpcUtils::getRequiredScalarValue($aReferencesOnVariables[$i], $oParams, $i + $idxStart, $oResponseWithError)) {
                 return false;
             }
         } else {
             if (!XmlRpcUtils::_getNotRequiredScalarValue($aReferencesOnVariables[$i], $oParams, $i + $idxStart, $oResponseWithError)) {
                 return false;
             }
         }
     }
     return true;
 }