by Andrew Normore.
This is the result of a var_dump($url);
object(moodle_url)[4308]protected 'scheme' =>
string
'http'(length=4)protected 'host' =>
string
'rts.dev'(length=7)protected 'port' =>
string
''(length=0)protected 'user' =>
string
''(length=0)protected 'pass' =>
string
''(length=0)protected 'path' =>
string
'/pluginfile.php'(length=15)protected 'slashargument' =>
string
'/1/local_webinars/dashboard/1202/rptpietest_1_9.png'(length=51)protected 'anchor' =>nullprotected 'params' =>array(size=0)empty