Mercurial > pub > Impl
view Lib/IMPL/ORM/Helpers.pm @ 59:0f3e369553bd
Rewritten property implementation (probably become slower but more flexible)
Configuration infrastructure in progress (in the aspect of the lazy activation)
Initial concept for the code generator
author | wizard |
---|---|
date | Tue, 09 Mar 2010 02:50:45 +0300 |
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;