5use \Bitrix\Landing\Internals\UrlRewriteTable;
16 public static function set($siteId, $rule, $landingId =
null)
21 $check = SiteTable::getList([
27 '=DELETED' => [
'Y',
'N']
36 $check = SiteTable::getList([
42 '=DELETED' => [
'Y',
'N']
58 $filter[
'!LANDING_ID'] = $landingId;
61 $res = UrlRewriteTable::getList([
67 if ($row = $res->fetch())
72 'LANDING_ID' => $landingId
77 UrlRewriteTable::delete(
87 'LANDING_ID' => $landingId
98 public static function remove($siteId, $rule)
121 $res = UrlRewriteTable::getList([
129 while ($row = $res->fetch())
131 UrlRewriteTable::delete($row[
'ID']);
142 $res = UrlRewriteTable::getList([
147 'LANDING_ID' => $landingId
150 while ($row = $res->fetch())
152 UrlRewriteTable::delete($row[
'ID']);
static update($id, array $fields=array())
static add(array $fields)
static removeForLanding($landingId)
static removeForSite($siteId)
static set($siteId, $rule, $landingId=null)
static matchUrl($siteId, $url)