Update docs for GroupAdd.

Internationalize error message for File Url
Add POD to 3 macros.
This commit is contained in:
Colin Kuskie 2005-12-17 21:54:34 +00:00
parent f007395c50
commit 8aafc5a3ad
5 changed files with 86 additions and 6 deletions

View file

@ -14,6 +14,30 @@ use strict;
use WebGUI::Asset;
use WebGUI::Session;
use WebGUI::Storage;
use WebGUI::International;
=head1 NAME
Package WebGUI::Macro::FileUrl
=head1 DESCRIPTION
Macro for displaying returning the file system URL to a File, Image or Snippet Asset,
identified by it's asset URL.
=head2 process ( url )
returns the file system URL if url is the URL for an Asset in the
system that has storageId and filename properties. If no Asset
with that URL exists, then an internationalized error message will
be returned.
=head3 url
The URL to the Asset.
=cut
#-------------------------------------------------------------------
sub process {
@ -23,7 +47,7 @@ sub process {
my $storage = WebGUI::Storage->get($asset->get("storageId"));
return $storage->getUrl($asset->get("filename"));
} else {
return "Invalid Asset URL";
return WebGUI::International::get('invalid url', 'Macro_FileUrl');
}
}