Changeset View
Changeset View
Standalone View
Standalone View
lib/Kolab/FreeBusy/SourceAggregator.php
Show All 34 Lines | |||||
class SourceAggregator extends Source | class SourceAggregator extends Source | ||||
{ | { | ||||
/** | /** | ||||
* @see Source::getFreeBusyData() | * @see Source::getFreeBusyData() | ||||
*/ | */ | ||||
public function getFreeBusyData($user, $extended) | public function getFreeBusyData($user, $extended) | ||||
{ | { | ||||
$log = Logger::get('aggregate', intval($this->config['loglevel'])); | $log = Logger::get('aggregate', intval($this->config['loglevel'])); | ||||
# $config = $this->getUserConfig($user); | // $config = $this->getUserConfig($user); | ||||
$attr = str_replace('%', '', strval($this->config['path'] ?: $this->config['host'])); | $attr = str_replace('%', '', strval($this->config['path'] ?: $this->config['host'])); | ||||
if (!empty($user[$attr])) { | if (!empty($user[$attr])) { | ||||
$members = (array)$user[$attr]; | $members = (array)$user[$attr]; | ||||
$busy_periods = array(); | $busy_periods = array(); | ||||
$log->debug("Aggregate data for members", $members); | $log->debug("Aggregate data for members", $members); | ||||
foreach ($members as $i => $member) { | foreach ($members as $i => $member) { | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |