Lines Matching refs:schedule

94         $this->defaultSchedule = new schedule ();
270 foreach ($this->memberSchedules [$member] as $id => $schedule) {
273 … $event->appendChild ($xml->createElement ($field, htmlspecialchars ($schedule->$field)));
293 foreach ($this->allProposals as $id => $schedule) {
296 … $event->appendChild ($xml->createElement ($field, htmlspecialchars ($schedule->$field)));
297 … $event->appendChild ($xml->createElement ('member', htmlspecialchars ($schedule->member)));
307 function whereMigrate ($schedule, $sep) { argument
309 if (!$schedule)
311 if (preg_match ('/[0-9]/', $schedule->where)) {
316 foreach (explode ($sep, $schedule->where) as $city) {
328 $schedule->where = $newWhere;
345 $schedule = new schedule ();
349 $schedule->$field = $element->item (0)->nodeValue;
354 $schedule->member = $element->item (0)->nodeValue;
356 $schedule->member = $member;
358 ($this->whereMigrate ($schedule, ',') ||
359 $this->whereMigrate ($schedule, '/') ||
360 $this->whereMigrate ($schedule, ' - ') ||
361 $this->whereMigrate ($schedule, ' ')))
364 $schedule->shared = ($schedule->shared == true);
365 $schedule->repeatFlag = $schedule->to != '' && $schedule->from != $schedule->to;
367 $this->allProposals [$schedule->id] = $schedule;
369 $this->allSchedules [$schedule->id] = $schedule;
487 $schedule = new schedule ();
493 $schedule = &$this->allSchedules [$id];
494 $oldMember = $schedule->member;
496 $others = $this->getOtherSharedEvents ($schedule);
499 $schedule->$field = trim (str_replace (array ('"'), '', $request [$field]));
501 …$schedule->requestMembers = explode (',', trim (str_replace (',,', ',', $request ['member']), ',')…
502 $schedule->member = trim ($schedule->requestMembers [0]);
504 $schedule->title = strtr ($schedule->title, '"', "''");
505 $schedule->lead = strtr ($schedule->lead, '"', "''");
506 $schedule->remark = strtr ($schedule->remark, '"', "''");
508 $schedule->weekDays = scheduleRoot::array2string ($request ['weekDays']);
509 $schedule->from = $this->scheduleRoot->df2ds ($request ['from']);
510 $schedule->to = $this->scheduleRoot->df2ds ($request ['to']);
511 if ('' == $schedule->from) {
512 $schedule->from = $schedule->to;
513 $schedule->to = '';
515 if ($schedule->from == $schedule->to)
516 $schedule->to = '';
517 if ('' == $schedule->from && '' == $schedule->where && '' == $schedule->title) {
518 $this->defaultSchedule = $schedule;
522 … if (!$this->printProp && $schedule->member && !$this->isMemberOfAll ($schedule->requestMembers)) {
524 $this->defaultSchedule = $schedule;
530 if (!$schedule->member)
532 if ('' == $schedule->what)
534 if ('' == $schedule->title)
536 if ('' == $schedule->where)
538 if (!$this->scheduleRoot->checkDS ($schedule->from))
540 if ($schedule->to && !$this->scheduleRoot->checkDS ($schedule->to))
542 else if ($this->after && ($schedule->to ? $schedule->to : $schedule->from) < $this->after)
544 else if ($schedule->to != '' && $schedule->from > $schedule->to)
548 $this->defaultSchedule = $schedule;
552 $schedule->repeatFlag = $schedule->to != '' && $schedule->from != $schedule->to;
555 if (!$schedule->id || in_array ($request['action'],
559 $schedule->id = date ('Ymdhis.0');
565 $this->defaultSchedule = $schedule;
568 $schedule->member = implode (',', $schedule->requestMembers);
569 $this->allProposals [] = $schedule;
580 $schedule->user = $_SERVER['REMOTE_USER'];
581 $this->addSchedule ($schedule);
589 $other->$field = $schedule->$field;
593 $sharedMembers = $this->getMembersSharedEvents ($schedule);
595 foreach ($schedule->requestMembers as $newMember) {
601 $newSchedule = new schedule ();
603 $newSchedule->$field = $schedule->$field;
610 $pageId = $this->scheduleRoot->getPageId ($schedule);
618 $place = trim ($this->makeListPlaceForMap ($schedule));
643 $schedule = $this->allSchedules [$id];
644 $sharedMembers = $this->getMembersSharedEvents ($schedule);
653 '====== '.$schedule->title.' ======'.NL.NL;
654 if ($schedule->lead)
656 str_replace ("''", '"', $schedule->lead).NL.NL;
659 ($schedule->repeatFlag ?
660 $this->makeRepeatString ($schedule, true) :
661 ('Le '. $this->scheduleRoot->ds2ln ($schedule->from, true))).
662 $this->makePrettyAt ($schedule->at).NL.NL.
665 $this->makeListPlaceForMap ($schedule).
668 if (!$schedule->remark)
671 if ($schedule->posterURL)
673 '{{ '.$schedule->posterURL.'?direct&200|}}'.NL;
674 if ($schedule->paperURL)
676 '[['.$schedule->paperURL.' |]]'.NL;
677 if ($schedule->remark)
679 str_replace ("''", '"', $schedule->remark).NL.NL;
680 if ($schedule->rate)
683 $schedule->rate.NL;
693 function addSchedule (&$schedule) { argument
694 if (isset ($this->allSchedules [$schedule->id]))
695 unset ($this->allSchedules [$schedule->id]);
696 $this->membersToSave [$schedule->member] = true;
698 if (isset ($this->memberSchedules [$schedule->member]))
699 foreach ($this->memberSchedules [$schedule->member] as $event)
700 if ($event->from == $schedule->from &&
701 $event->to == $schedule->to &&
702 $event->at == $schedule->at &&
703 $event->shared == $schedule->shared &&
704 $event->title == $schedule->title &&
705 $event->id != $schedule->id) {
708 $this->allSchedules [$schedule->id] = $schedule;
733 foreach ($this->allSchedules as $id => $schedule) {
734 $this->memberSchedules [$schedule->member][$id] = $schedule;
735 $this->datedSchedules [$schedule->from][] = $schedule;
736 if ($schedule->repeatFlag)
737 $this->repeatedSchedules [$schedule->from][] = $schedule;
739 $this->fixedSchedules [$schedule->from][] = $schedule;
1157 function makeListPlaceForMap ($schedule) { argument
1160 $cities = explode (',', $schedule->where);
1161 $lats = explode (',', $schedule->lat);
1162 $lons = explode (',', $schedule->lon);
1163 $addrs = explode ('|', $schedule->addr);