/** * Хелпер для сохранения станицы без изменения его parent-а, т.е. только для изменения титула страницы и её url_key * * @param array $aPage */ public static function savePage($aPage) { try { ArrayHelper::indexesExists(array('document_name', 'document_id', 'name', 'url_key'), $aPage); } catch (Exception $e) { throw new SiteMapException('Save page failed. Argument data incomplete'); } // try { // Получаем документ $aDocument = self::seekRegisteredDocumentById($aPage['document_name'], $aPage['document_id'], true); } catch (SiteMapException $e) { throw new SiteMapException('Page ("' . $aPage['document_name'] . '","' . $aPage['document_id'] . '") not found'); } self::updatePageInBD($aDocument['id'], $aPage['name'], $aPage['url_key'], $aDocument['parent']); // self::restoreUrl($aDocument['id']); // Sitemap_History::add($aDocument['id'], $aPage['name']); }