RT::URI::asset - Internal URIs for linking to an RT::Asset
This class should rarely be used directly, but via RT::URI instead.
Represents, parses, and generates internal RT URIs such as:
asset:42
asset://example.com/42
These URIs are used to link between objects in RT such as associating an asset with a ticket or an asset with another asset.
Much of the interface below is dictated by RT::URI and RT::URI::base.
Return the URI scheme for assets
Returns the site-specific prefix for a local asset URI
Returns a true value, the asset ID, if this object represents a local asset, undef otherwise.
Returns the URI for a local RT::Asset object
Primarily used by RT::URI to set internal state.
Figures out from an asset:
URI whether it refers to a local asset and the asset ID.
Returns the asset ID if local, otherwise returns false.
Returns the object for this URI, if it's local. Otherwise returns undef.
If this is a local asset, return an HTTP URL for it.
Otherwise, return its URI.
Returns a description of this object
← Back to index