Mercurial > pub > Impl
view Lib/IMPL/ORM/Helpers.pm @ 166:4267a2ac3d46
Added Class::Template,
Rewritten SQL::Schema
'use parent' directive instead of 'use base'
author | wizard |
---|---|
date | Sat, 23 Apr 2011 23:12:06 +0400 |
parents | 16ada169ca75 |
children |
line wrap: on
line source
package IMPL::ORM::Helpers; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(&Map &Box); sub Map($$) { my ($TKey,$TValue) = @_; $TKey =~ s/:://g; $TValue =~ s/:://g; return "IMPL::ORM::Map::${TKey}${TValue}"; } sub Box($) { my ($TValue) = @_; $TValue =~ s/:://g; return "IMPL::ORM::Box::$TValue"; } 1;