return $noun->asString('activity:' . $element);
}
+ /**
+ * Returns the profile's canonical url, not necessarily a uri/unique id
+ *
+ * @return string $profileurl
+ */
+ public function getUrl()
+ {
+ if (empty($this->profileurl) ||
+ !filter_var($this->profileurl, FILTER_VALIDATE_URL)) {
+ throw new InvalidUrlException($this->profileurl);
+ }
+ return $this->profileurl;
+ }
+
/**
* Returns the best URI for a profile. Plugins may override.
*
* @return string $uri
*/
- function getUri()
+ public function getUri()
{
$uri = null;