From: Reini U. <ru...@x-...> - 2004-06-25 09:16:09
|
Scott Yilek schrieb: > My name is Scott Yilek and I'm working on wikilens with Dan Frankowski. > We've recently been trying to integrate wikilens with phpwiki and we are > still having a few issues with the new pagelist custom columns. > > The main problem is that we need to send each column more parameters > than are currently allowed. Currently each custom pagelist column's > constructor gets $params which is always assumed to be length 4 with > $params[3] as the reference back to the pagelist object. If any other > parameters are needed, the constructor gets them from the pagelist > object: $this->_pagelist->getOption('user') for example. This doesn't > quite work for us because we need each column to get its parameters > independently from the other columns. For example, we can't do > getOption('user') if we want a column for each buddy; we need to send in > the buddy as a parameter. > > What would be great is if each column's constructor could accept more > parameters as necessary. The way Dan Frankowski proposed originally > worked well for this because we could create our own column objects how > we liked them and just sent them into pagelist to be added. Do you > think we should go back to this or do you see a better solution? Have you updated your source, so that I can see it? I thought putting the required column options to the pagelist object is enough, so that the columns can get it from the pagelist object. you need more usernames? cannot you put the needed array of buddies to the $pagelist->_options then? -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |