Class:SmartestExternalUrl

From The Smartest Wiki
Jump to: navigation, search

SmartestExternalUrl is a class that, as its name suggests, stores a URL to a http resource outside of Smartest.

This class is one of Smartest's basic types, and is essentially a wrapper for a string that begins 'http://' or 'https://'.

Offsets

  • $url.host: The host name part of the URL
  • $url.encoded or $url.urlencoded: An encoded version of the URL that can be safely stores as ASCII or passed via other URLs.
  • $url.empty: Boolean true it the SmartestExternalUrl object is empty and has not been given a value yet.
  • $url.url or $url.string The value as a string.