====== __construct ====== {#JAPI Joomla.Framework Environment JURI::__construct #} This is the class constructor. You can pass a URI string to the constructor to initialize it to a specific URI. ===== Syntax ===== JURI __construct ( **$uri** ) | **$uri** | string | is a string containing the URI. This parameter is optional and if omitted defaults to null. | ===== Examples ===== global $mainframe; $uri = new JURI( $mainframe->getBaseURL() );