[TYPO3-ect] TODO

Christian Welzel gawain at camlann.de
Sat Jan 27 14:42:17 CET 2007


Daniel Brüßler wrote:

> And what would a 3-year-old child do?

Define ACTION as group of ACTIONITEMs without inner sorting.
Define ACTIONITEM as object like this:

ACTIONITEM {
  name = <ident>
  inputformat = {txt,pdf,db,doc,...}
  outputformat = {txt,pdf,db,doc,...}
  before = <ident> || NULL
  after = <ident> || NULL
  priority = -<int> ... 0 ... <int>
}

define DBACTIONITEM to be inputformat='' && outputformat='db'
On execution sort the ACTIONITEMS in a chain so that 

a(n+1).inputformat == a(n).outputformat &&
pos(a.before) > pos(a[name]) &&
pos(a.after) < pos(a[name]) &&
a(n+1).priority > a(n).priority.

Process this chain.

-- 
 MfG, Christian Welzel

  GPG-Key:     http://www.camlann.de/key.asc
  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15


More information about the TYPO3-team-extension-coordination mailing list