private static function lti_extract_parameters($parameters) {

        $params = array();
        foreach ($parameters as $parameter) {
            if (isset($parameter->variable)) {
                $value = '$' . $parameter->variable;
            } else {
                $value = $parameter->fixed;
                if (strlen($value) > 0) {
                    $first = substr($value, 0, 1);
                    if (($first == '$') || ($first == '\\')) {
                        $value = '\\' . $value;
                    }
                }
            }
            $params[] = "{$parameter->name}={$value}";
        }

        return implode("\n", $params);

    }
private static function lti_extract_parameters($parameters) {

        $params = array();
        foreach ($parameters as $parameter) {
            if (isset($parameter->variable)) {
                $value = '$' . $parameter->variable;
            } else {
                $value = $parameter->fixed;
                if (strlen($value) > 0) {
                    $first = substr($value, 0, 1);
                    if (($first == '$') || ($first == '\\')) {
                        $value = '\\' . $value;
                    }
                }
            }
            $params[] = "{$parameter->name}={$value}";
        }

        return implode("\n", $params);

    }
private static function lti_extract_parameters ( $ parameters ) { $ params = array ( ) ; foreach ( $ parameters as $ parameter ) { if ( isset ( $ parameter -> variable ) ) { $ value = '$' . $ parameter -> variable ; } else { $ value = $ parameter -> fixed ; if ( strlen ( $ value ) > 0 ) { $ first = substr ( $ value , 0 , 1 ) ; if ( ( $ first == '$' ) || ( $ first == '\\' ) ) { $ value = '\\' . $ value ; } } } $ params [ ] = "{$parameter->name}={$value}" ; } return implode ( "\n" , $ params ) ; }
Extracts the message parameters from the tool proxy entry

@param array $parameters     Parameter section of a message

@return String  containing parameters
Extracts the message parameters from the tool proxy entry