...
The called build()-method expects an associative array wich has to have at least a value for the key 'lang' but any parameter can be appended. If another builder than cUriBuilderFrontcontent is used (see below) further keys may be required.
$url = cUri::getInstance()->build("front_content.php?idart=$idart&lang=$lang";
$url = cUri::getInstance()->build($url);
URI to current article
If you like to create a link to the current article you can use this snippet instead which gets the values for the current language and article from the registry:
...