RT-Extension-MandatoryFields
view release on metacpan or search on metacpan
inc/Module/Install/RTx/Factory.pm view on Meta::CPAN
$CreateSub
$FieldsPod
sub _CoreAccessible {
{
$ClassAccessible
}
};
.
print "About to make $RecordClassPath, $CollectionClassPath\n";
`mkdir -p $path`;
open( RECORD, ">$RecordClassPath" );
print RECORD $RecordClass;
close(RECORD);
open( COL, ">$CollectionClassPath" );
print COL $CollectionClass;
close(COL);
}
}
sub _magic_import {
my $self = shift;
my $class = ref($self) || $self;
#if (exists \$warnings::{unimport}) {
# no warnings qw(redefine);
my $path = $class;
$path =~ s#::#/#gi;
my $content = $self->_pod(<<".");
eval \"require ${class}_Overlay\";
if (\$@ && \$@ !~ qr{^Can't locate ${path}_Overlay.pm}) {
die \$@;
};
eval \"require ${class}_Vendor\";
if (\$@ && \$@ !~ qr{^Can't locate ${path}_Vendor.pm}) {
die \$@;
};
eval \"require ${class}_Local\";
if (\$@ && \$@ !~ qr{^Can't locate ${path}_Local.pm}) {
die \$@;
};
^head1 SEE ALSO
This class allows \"overlay\" methods to be placed
into the following files _Overlay is for a System overlay by the original author,
_Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
These overlay files can contain new subs or subs to replace existing subs in this module.
If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
no warnings qw(redefine);
so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
${class}_Overlay, ${class}_Vendor, ${class}_Local
^cut
1;
.
return $content;
}
sub _pod {
my ($self, $text) = @_;
$text =~ s/^\^/=/mg;
return $text;
}
( run in 1.626 second using v1.01-cache-2.11-cpan-39bf76dae61 )