|
@@ 604-615 (lines=12) @@
|
| 601 |
|
* |
| 602 |
|
* @return CriteriaCompo |
| 603 |
|
*/ |
| 604 |
|
public function _getEventMonthCriteria($month, $year, $cat=0) |
| 605 |
|
{ |
| 606 |
|
$user = $GLOBALS['xoopsUser']; |
| 607 |
|
|
| 608 |
|
$userStartTime = mktime(0, 0, 0, $month, 1, $year); |
| 609 |
|
$userEndTime = mktime(23, 59, 59, $month + 1, 0, $year); |
| 610 |
|
$monthStart = userTimeToServerTime($userStartTime, $this->_extcalTime->_getUserTimeZone($user)); |
| 611 |
|
$monthEnd = userTimeToServerTime($userEndTime, $this->_extcalTime->_getUserTimeZone($user)); |
| 612 |
|
$criteriaCompo = $this->_getCriteriaCompo($monthStart, $monthEnd, $cat, $user); |
| 613 |
|
|
| 614 |
|
return $criteriaCompo; |
| 615 |
|
} |
| 616 |
|
|
| 617 |
|
// Return the criteria compo object for event occuring on a given year |
| 618 |
|
|
|
@@ 625-636 (lines=12) @@
|
| 622 |
|
* |
| 623 |
|
* @return CriteriaCompo |
| 624 |
|
*/ |
| 625 |
|
public function _getEventYearCriteria($year, $cat = 0) |
| 626 |
|
{ |
| 627 |
|
$user = $GLOBALS['xoopsUser']; |
| 628 |
|
|
| 629 |
|
$userStartTime = mktime(0, 0, 0, 1, 1, $year); |
| 630 |
|
$userEndTime = mktime(23, 59, 59, 12, 31, $year); |
| 631 |
|
$yearStart = userTimeToServerTime($userStartTime, $this->_extcalTime->_getUserTimeZone($user)); |
| 632 |
|
$yearEnd = userTimeToServerTime($userEndTime, $this->_extcalTime->_getUserTimeZone($user)); |
| 633 |
|
$criteriaCompo = $this->_getListCriteriaCompo($yearStart, $yearEnd, $cat, $user); |
| 634 |
|
|
| 635 |
|
return $criteriaCompo; |
| 636 |
|
} |
| 637 |
|
|
| 638 |
|
/********************************************************************** |
| 639 |
|
* Debut de - A virer in fine |