/** * Saves the page paramters after the page url is saved * @param PageUrl $pageUrl The page url */ private function SaveParams(PageUrl $pageUrl) { $this->ClearParams($pageUrl); $params = $this->serializer->LinesToArray($this->Value('Params')); $prev = null; foreach ($params as $name => $value) { $param = new PageUrlParameter(); $param->SetPageUrl($pageUrl); $param->SetPrevious($prev); $param->SetName($name); $param->SetValue($value); $param->Save(); $prev = $param; } }