public function BindResourceFilter(ISchedulePage $page, ScheduleResourceFilter $filter, $resourceCustomAttributes, $resourceTypeCustomAttributes) { if ($filter->ResourceAttributes != null) { foreach ($filter->ResourceAttributes as $attributeFilter) { $this->SetAttributeValue($attributeFilter, $resourceCustomAttributes); } } if ($filter->ResourceTypeAttributes != null) { foreach ($filter->ResourceTypeAttributes as $attributeFilter) { $this->SetAttributeValue($attributeFilter, $resourceTypeCustomAttributes); } } $page->SetResourceCustomAttributes($resourceCustomAttributes); $page->SetResourceTypeCustomAttributes($resourceTypeCustomAttributes); ServiceLocator::GetServer()->SetCookie(new Cookie('resource_filter' . $filter->ScheduleId, json_encode($filter))); $page->SetFilter($filter); }