/** * Configures additional parameters for content selection * * @param ContentParameters $contentparameters * * @access public * @return boolean * @throws StatusException */ public function ConfigContentParameters($contentparameters) { $filtertype = $contentparameters->GetFilterType(); switch ($contentparameters->GetContentClass()) { case "Email": $this->cutoffdate = $filtertype ? Utils::GetCutOffDate($filtertype) : false; break; case "Calendar": $this->cutoffdate = $filtertype ? Utils::GetCutOffDate($filtertype) : false; break; default: case "Contacts": case "Tasks": $this->cutoffdate = false; break; } $this->contentClass = $contentparameters->GetContentClass(); }
/** * Configures additional parameters used for content synchronization * * @param ContentParameters $contentparameters * * @access public * @return boolean * @throws StatusException */ public function ConfigContentParameters($contentparameters) { $filtertype = $contentparameters->GetFilterType(); switch ($contentparameters->GetContentClass()) { case "Email": $this->restriction = $filtertype || !Utils::CheckMapiExtVersion('7') ? MAPIUtils::GetEmailRestriction(Utils::GetCutOffDate($filtertype)) : false; break; case "Calendar": $this->restriction = $filtertype || !Utils::CheckMapiExtVersion('7') ? MAPIUtils::GetCalendarRestriction($this->store, Utils::GetCutOffDate($filtertype)) : false; break; default: case "Contacts": case "Tasks": $this->restriction = false; break; } $this->contentParameters = $contentparameters; }