/** * ------------------------------------------------------------------------------------------- * Проверяет не существует ли страницы с таким именем * @return * ------------------------------------------------------------------------------------------- */ protected static function checkByName($nParent, $szName) { $aResult = Sitemap_Sample::getByNameAndParent($nParent, $szName); if (!empty($aResult)) { throw new SiteMapException('Page with name "' . $szName . '" already exists'); } }