PGresource - Store information for an auxiliary resource.
Usage: PGresource->new($parent_alias, $id, $type, %options)
The PGresource constructor. The $parent_alias, $id, and $type parameters are required. The $parent_alias must be the parent PGalias object that calls this constructor (and this is the only situation where this object should be constructed). The $id should be the file name (or external URL) of the auxiliary resource to be represented by this PGresource object. The $type should be the file extension. The %options should contain WARNING_messages and DEBUG_messages which should be array references. These are used to store warning and debug messages.
Usage: $pgResource->create_unique_id($ext)
This is the primary method of the PGresource module. This generates a unique id for the auxiliary resource that it represents. That id takes into account the unique id stub of the parent PGalias object, the full path to the resource, the problem file name, and the resource file name.
Usage: $pgResource->uri($uri)
Get or set the URI of the resource.
Usage: $pgResource->path($path)
Get or set the path of the resource.
Usage: $pgResource->unique_id
Get the unique id of the resource. Note that the unique id is set by calling create_unique_id.
Usage: $pgResource->fileName($fileName)
Get or set the file name (or id) of the resource.