Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: deciphering RT source code layout

by eXile (Priest)
on Oct 08, 2005 at 13:41 UTC ( #498414=note: print w/replies, xml ) Need Help??


in reply to deciphering RT source code layout

RT uses DBIx::SearchBuilder for it's SQL, you can look into $RT/lib/RT/SearchBuilder.pm for how exactly (where $RT is your RT installation dir).

One thing that took me a while to figure out is that methods for all RT objects (Queues,Tickets, ..) are a little scattered across files. I haven't found a good description for it's API yet, so I'm using the source to find what methods can be called on certain objects. For instance for Tickets, there is $RT/lib/RT/Ticket.pm $RT/lib/RT/Ticket_Overlay.pm , $RT/lib/RT/Tickets.pm $RT/lib/RT/Tickets_Overlay.pm , $RT/lib/RT/Tickets_Overlay_SQL.pm , and inheritance of course.

I created myself a quick-and-dirty overview of methods like this (while in the $RT/lib dir):

  find . -name "*.pm" | xargs egrep '^sub'

Replies are listed 'Best First'.
Re^2: deciphering RT source code layout
by nite_man (Deacon) on Nov 15, 2005 at 14:21 UTC
    Have a look RT wiki:

    http://wiki.bestpractical.com/index.cgi?Documentation

    Maybe it helps you.

    ---
    Michael Stepanov aka nite_man

    It's only my opinion and it doesn't have pretensions of absoluteness!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://498414]
help
Chatterbox?
[1nickt]: chacham I have wanted to, and dones so, and so stated in a reply, and been roundly downvoted 2-1. (I assume for attempting to censor.)
[1nickt]: pryrt yes, I see. There is no way to differentiate without forcing to a string and all sort of weird stuff. It is enough. User 42 can get creative if s/he wishes.
[chacham]: i sent him a private message expressing my displeasure.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2017-05-24 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?