[TYPO3-calendar] findAllWithin

Peter Jame james004 at gmx.de
Thu Jun 9 01:39:14 CEST 2011


Hello,

I can't get findAllWithin to work according to my needs. I'm extending
yearview and trying to get events from lets say 20110501 until 20121101.
I've been trying it this way:

$type = $this->conf['type'];
$pidList = $this->conf['pidList'];
$getdate = $this->conf['getdate'];
$eventType='0,1,2,3';

$modelObj = &tx_cal_registry::Registry('basic','modelcontroller');

$timeStartObj = new tx_cal_date('20110501'.'000000');
$timeStartObj->setTZbyId('UTC');

$timeEndObj = new tx_cal_date('20121101'.'000000');
$timeEndObj->setTZbyId('UTC');

$master_array = $modelObj->findAllWithin('cal_event_model',
$timeStartObj, $timeEndObj, $type, 'event', $pidList, $eventType);

$timeStartObj seems to have some (correct) effect, $timeEndObj doesn't
at all.

Hoping on a huge hint on what I'm doing wrong...

Thanks a lot
Peter


More information about the TYPO3-project-calendar mailing list