public static function function_call_with_Y($function, array $extraarguments = null) {
        if ($extraarguments) {
            $extraarguments = array_map('json_encode', convert_to_array($extraarguments));
            $arguments = 'Y, ' . implode(', ', $extraarguments);
        } else {
            $arguments = 'Y';
        }
        return "$function($arguments);\n";
    }
public static function function_call_with_Y($function, array $extraarguments = null) {
        if ($extraarguments) {
            $extraarguments = array_map('json_encode', convert_to_array($extraarguments));
            $arguments = 'Y, ' . implode(', ', $extraarguments);
        } else {
            $arguments = 'Y';
        }
        return "$function($arguments);\n";
    }
public static function function_call_with_Y ( $ function , array $ extraarguments = null ) { if ( $ extraarguments ) { $ extraarguments = array_map ( 'json_encode' , convert_to_array ( $ extraarguments ) ) ; $ arguments = 'Y, ' . implode ( ', ' , $ extraarguments ) ; } else { $ arguments = 'Y' ; } return "$function($arguments);\n" ; }
Special function which adds Y as first argument of function call.

@param string $function The function to call
@param array $extraarguments Any arguments to pass to it
@return string Some JS code
Special function which adds Y as first argument of function call .