Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item175: added bridges for Meta, Time and OopsException
git-svn-id: http://svn.foswiki.org/trunk@1038 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
MichaelDaum
authored and
MichaelDaum
committed
Nov 28, 2008
1 parent
b9a116c
commit cdb2931
Showing
6 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
TWikiCompatibilityPlugin/lib/Foswiki/Plugins/TWikiCompatibilityPlugin.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package TWiki::Meta; | ||
|
||
use Foswiki::Meta; | ||
|
||
sub new { | ||
shift; | ||
return new Foswiki::Meta(@_); | ||
} | ||
|
||
1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package TWiki::OopsException; | ||
use Error; | ||
use Assert; | ||
use base 'Error'; | ||
|
||
use Foswiki::OopsException; | ||
|
||
sub new { | ||
shift; | ||
return new Foswiki::OopsException(@_); | ||
} | ||
|
||
1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package TWiki::Time; | ||
|
||
# Bridge between TWiki::Time and Foswiki::Time | ||
|
||
use strict; | ||
|
||
use Foswiki::Time; | ||
|
||
use vars qw( @ISOMONTH @WEEKDAY @MONTHLENS %MON2NUM ); | ||
|
||
@ISOMONTH = @Foswiki::Time::ISOMONTH; | ||
@WEEKDAY = @Foswiki::Time::WEEKDAY; | ||
@MONTHLENS = @Foswiki::Time::MONTHLENS; | ||
@MON2NUM = @Foswiki::Time::MON2NUM; | ||
|
||
sub parseTime { Foswiki::Time::parseTime(@_) } | ||
sub formatTime { Foswiki::Time::formatTime(@_) } | ||
sub _weekNumber { Foswiki::Time::_weekNumber(@_) } | ||
sub formatDelta { Foswiki::Time::formatDelta(@_) } | ||
sub parseInterval { Foswiki::Time::parseInterval(@_) } | ||
sub _parseDuration { Foswiki::Time::_parseDuration(@_) } | ||
|
||
1; |