Extending rt3 classes?

Can someone point me to some documentation for extending rt3 classes? We
have a type of class we’d like to implement, that is similar to a ticket,
and the idea I had in mind was to subclass Ticket.pm, but, I’m not sure
that’s possible because of the *_Overlay structure.

I checked the documentation here (http://bestpractical.com/rt/docs.html)
and did not see anything like a developer guide, etc. I also checked some
of the perldocs for the RT::* libraries, but maybe I missed one. Any help
would be appreciated.

Thanks,

–Alex

  • Alex Porras [2003-10-09 13:18]:

Can someone point me to some documentation for extending rt3 classes?
We have a type of class we’d like to implement, that is similar to a
ticket, and the idea I had in mind was to subclass Ticket.pm, but, I’m
not sure that’s possible because of the *_Overlay structure.

The *_Local.pm files are where you would add your local changes. If
the _Local.pm file doesn’t exist, you can simply make it. The end of
each .pm file has something like:

    eval "require RT::Tickets_Local";
    if ($@ && $@ !~ qr{^Can't locate RT/Tickets_Local.pm}) {
        die $@;
    };

The compiler will drag in your _Local version if it exists. Also, it
simply has to be somewhere that the compiler can find it, and not
necessarily in the same directory as the module you are extending.

(darren)

One man’s “magic” is another man’s engineering. “Supernatural” is a
null word.
– Robert Heinlein