/** * ------------------------------------------------------------------------------------------- * Проверяет не занят ли такой url уже в этой папке * @return * ------------------------------------------------------------------------------------------- */ protected static function seekPageByUrlInParent($szUrl, $nParent) { $aFoundPage = Sitemap_Sample::seekByUrlInParent($szUrl, $nParent); if (!empty($aFoundPage)) { throw new SiteMapException('Page exists'); } return $aFoundPage; }