X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fdocs%2Fdesign_docs%2FTransactionTypes.txt;fp=rt%2Fdocs%2Fdesign_docs%2FTransactionTypes.txt;h=0000000000000000000000000000000000000000;hp=6edc408de0dd5de18664063e65fa4d1bda485ecc;hb=43a06151e47d2c59b833cbd8c26d97865ee850b6;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4 diff --git a/rt/docs/design_docs/TransactionTypes.txt b/rt/docs/design_docs/TransactionTypes.txt deleted file mode 100755 index 6edc408de..000000000 --- a/rt/docs/design_docs/TransactionTypes.txt +++ /dev/null @@ -1,48 +0,0 @@ -This is some loose scrabbling made by TobiX, they might eventually be relevant -for 2.1. - -INTERFACES, in general - -should: - -- provide the user (client?) with a list of possible actions (methods). -- let the user execute those actions (methods). -- Return information to the user/client. - -There are two kind of actions/methods: - -- Information retrieval -- Transactions - -For the first, I think the best thing is to just provide a lot of -methods for it in the libraries, and let it be an Interface Design -Issue what to show and how to show it. - -For the second, I think we can win in the long run on having a -generalized methods for - -- listing transaction types. -- creating & committing transactions. - -..with the possibility of just deploying new custom-developed modules -when new transaction types are needed. - - -RT->Config->Get('TransactionTypes') ...and... -RT->Config->Get('TransactionTypes') - - global object which contains all TransactionTypes - - used by all UIs to create menues of possible (user) actions (one TransactionType is a user action) - -The UIs should call sth like -$Ticket->AddTransaction($TransactionName), which should be equivalent -with i.e. $Ticket->Correspond when $TransactionName is 'Correspond' -(AUTOLOAD should call the do-sub if exists -RT->Config->Get('TransactionTypes')->{$TransactionName}) - -The RT::Ticket::AddTransaction will create a new transaction of the -right TransactionClass (maybe via a sub -RT::TransactionTypes::NewTransaction). Then $Transaction->do is -called. - -TransactionType->do initializes a new object of the right TransactionClass, and -