Changeset 6183
- Timestamp:
- 05/14/12 22:52:20 (12 years ago)
- Location:
- trunk/prototype/modules/calendar/interceptors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r6177 r6183 9 9 10 10 public function encodeCreateSchedulable(&$uri, &$params, &$criteria, $original) { 11 self::encodeSchedulable($params); 12 } 13 14 static function encodeSchedulable(&$params) { 11 15 $params['type_id'] = EVENT_ID; 12 16 … … 31 35 $params['lastUpdate'] = (isset($params['lastUpdate'])) ? $params['lastUpdate'] : time() . '000'; 32 36 $params['type'] = EVENT_ID; 33 $params['uid'] = isset($params['uid']) ? $params['uid'] : $this->_makeUid();37 $params['uid'] = isset($params['uid']) ? $params['uid'] : self::_makeUid(); 34 38 } 35 39 … … 922 926 } 923 927 924 private function _makeUid() {928 private static function _makeUid() { 925 929 926 930 $date = date('Ymd\THisT'); -
trunk/prototype/modules/calendar/interceptors/Notifications.php
r6177 r6183 503 503 $alt = false; 504 504 505 // DBMapping::encodeSchedulable($params); 506 505 507 foreach ($params as $i => $v) //Verifica se ouve alteração no evento 506 508 if (isset($schedulableOld[$i]) && $schedulableOld[$i] != $v && $i != 'participants') { … … 508 510 $alt = true; 509 511 } 510 512 self::lg( $schedulable, '$schedulable' ); 511 513 if (($alt === true) && (Config::regGet('noAlarm') === false) && (self::futureEvent($schedulable['startTime'], $schedulable['rangeEnd'], $schedulable['id']))) { 512 514 $method = 'REQUEST';
Note: See TracChangeset
for help on using the changeset viewer.