update POD for OO only interface

This commit is contained in:
Colin Kuskie 2006-01-16 22:38:28 +00:00
parent 35c4ad353d
commit 5fadc70eac

View file

@ -29,15 +29,9 @@ This package provides an interface to the internationalization system.
=head1 SYNOPSIS =head1 SYNOPSIS
use WebGUI::International; use WebGUI::International;
$string = WebGUI::International::get($internationalId,$namespace); my $i = WebGUI::International->new($session, $namespace);
$hashRef = WebGUI::International::getLanguage($lang); $hashRef = $i->getLanguage($lang);
$hashRef = WebGUI::International::getLanguages(); $hashRef = $i->getLanguages();
$url = WebGUI::International::makeUrlCompliant($url);
This package can also be used in object-oriented (OO) style.
use WebGUI::International;
my $i = WebGUI::International->new($namespace);
$string = $i->get($internationalId); $string = $i->get($internationalId);
$url = $i->makeUrlCompliant($url); $url = $i->makeUrlCompliant($url);
@ -187,9 +181,9 @@ sub makeUrlCompliant {
=head2 new ( session, [ namespace, language ] ) =head2 new ( session, [ namespace, language ] )
The constructor for the International function if using it in OO mode. Note The constructor for the International function if using it in OO mode.
that namespace and languages are defaults; they may be overridden in Note that namespace and languages are defaults; they may be overridden
all accessor methods, (get, getLanguage). in all accessor methods, (get, getLanguage).
=head3 session =head3 session