Commit 2abd054ff9fe6564e899ae99fb2e4cf1c75ff0b7
1 parent
7ae610f0
Add subDispatch, which deals with dispatchers that call other
dispatchers, and makes sure breadcrumbs and transaction support works properly. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4895 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
0 deletions
lib/dispatcher.inc.php
| ... | ... | @@ -52,6 +52,12 @@ class KTDispatcher { |
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + function subDispatch(&$oOrigDispatcher) { | |
| 56 | + $this->aBreadcrumbs = $oOrigDispatcher; | |
| 57 | + $this->bTransactionStarted = $oOrigDispatcher->bTransactionStarted; | |
| 58 | + return $this->dispatch(); | |
| 59 | + } | |
| 60 | + | |
| 55 | 61 | function startTransaction() { |
| 56 | 62 | DBUtil::startTransaction(); |
| 57 | 63 | $this->bTransactionStarted = true; | ... | ... |