1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Site
Граф наследования:Site:
BaseTable

Открытые статические члены

static ping (int $id, bool $deleted=false)
static getPublicUrl ($id, bool $full=true, bool $hostInclude=true, bool $previewForNotActive=false)
static getPreview (int $siteId, bool $skipCloud=false)
static getHooks ($id)
static getVersion ($siteId)
static getAdditionalFields ($id)
static saveAdditionalFields ($id, array $data)
static getTypes ()
static getDefaultType ()
static delete ($id, $pagesDelete=false)
static markDelete ($id)
static markUnDelete ($id)
static copy ($siteId)
static fullExport ($siteForExport, $params=array())
static getPublicHash ($id, $domain=null)
static switchDomain (int $siteId1, int $siteId2)
static randomizeDomain (int $siteId)
static copyFolders (int $fromSite, int $toSite, array &$folderMap=[])
static addFolder (int $siteId, array $fields)
static updateFolder (int $siteId, int $folderId, array $fields)
static publicationFolder (int $folderId, bool $mark=true)
static moveFolder (int $folderId, ?int $toFolderId, ?int $toSiteId=null)
static getFolders (int $siteId, array $filter=[])
static getFolder (int $folderId, string $accessLevel=Rights::ACCESS_TYPES['read'])
static markFolderDelete (int $id)
static markFolderUnDelete (int $id)
static addLandingToMenu (int $siteId, array $data)
static touch (int $id)
static publication (int $id, bool $mark=true, ?Metrika\FieldsDto $metrikaFields=null)
static unpublic (int $id)
static getSiteIdByTemplate (string $tplCode)
static onBeforeMainSiteDelete ($siteId)
static onMainSiteDelete ($siteId)
static changeType (int $id, string $type)
static changeCode (int $id, string $code)
Открытые статические члены унаследованные от BaseTable
static callback ($code, $callback)

Статические открытые данные

static $internalClass = 'SiteTable'
Статические открытые данные унаследованные от BaseTable
static $internalClass = null

Защищенные статические члены

static clearPing (int $id)

Статические защищенные данные

static $pings = []

Подробное описание

См. определение в файле site.php строка 12

Методы

◆ addFolder()

addFolder ( int $siteId,
array $fields )
static

Creates folder into the site.

Аргументы
int$siteIdSite id.
array$fieldsFolder's fields.
Возвращает
\Bitrix\Main\Entity\AddResult

См. определение в файле site.php строка 1155

◆ addLandingToMenu()

addLandingToMenu ( int $siteId,
array $data )
static

Tries to add page to the all menu on the site. Detects blocks with menu-manifests only.

Аргументы
int$siteIdSite id.
array$dataLanding data ([ID, TITLE]).
Возвращает
void

См. определение в файле site.php строка 1596

◆ changeCode()

changeCode ( int $id,
string $code )
static

Change code for the site.

Аргументы
int$idSite id.
string$codeCode.
Возвращает
void

См. определение в файле site.php строка 1945

◆ changeType()

changeType ( int $id,
string $type )
static

Change type for the site.

Аргументы
int$idSite id.
string$typeType.
Возвращает
void

См. определение в файле site.php строка 1929

◆ clearPing()

clearPing ( int $id)
staticprotected

Removes sites id that was pinged.

Аргументы
int$idSite id.
Возвращает
void

См. определение в файле site.php строка 63

◆ copy()

copy ( $siteId)
static

Copy site without site's pages.

Аргументы
int$siteIdSite id.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 437

◆ copyFolders()

copyFolders ( int $fromSite,
int $toSite,
array & $folderMap = [] )
static

Copies folders from one site to another without pages.

Аргументы
int$fromSiteSource site id.
int$toSiteDestination site id.
array$folderMapExternal references old<>new ids.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1077

◆ delete()

delete ( $id,
$pagesDelete = false )
static

Delete site by id.

Аргументы
int$idSite id.
bool$pagesDeleteDelete all pages before.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 318

◆ fullExport()

fullExport ( $siteForExport,
$params = array() )
static

Get full data for site with pages.

Аргументы
int$siteForExportSite id.
array$paramsSome params.
Возвращает
array

См. определение в файле site.php строка 498

◆ getAdditionalFields()

getAdditionalFields ( $id)
static

Get additional fields of Landing.

Аргументы
int$idLanding id.
Возвращает
array Array of Field.

См. определение в файле site.php строка 253

◆ getDefaultType()

getDefaultType ( )
static

Get default site type.

Возвращает
string

См. определение в файле site.php строка 307

◆ getFolder()

getFolder ( int $folderId,
string $accessLevel = Rights::ACCESS_TYPES['read'] )
static

Returns folder's info.

Аргументы
int$folderIdFolder id.
string$accessLevelAccess level to folder.
Возвращает
array|null

См. определение в файле site.php строка 1412

◆ getFolders()

getFolders ( int $siteId,
array $filter = [] )
static

Returns folder's list of site.

Аргументы
int$siteIdSite id.
array$filterFolder's filter.
Возвращает
array

См. определение в файле site.php строка 1379

◆ getHooks()

getHooks ( $id)
static

Get hooks of Site.

Аргументы
int$idSite id.
Возвращает
array Array of Hook.

См. определение в файле site.php строка 203

◆ getPreview()

getPreview ( int $siteId,
bool $skipCloud = false )
static

Get preview picture of the site's main page.

Аргументы
int$siteIdSite id.
bool$skipCloudSkip getting picture from cloud.
Возвращает
string

См. определение в файле site.php строка 177

◆ getPublicHash()

getPublicHash ( $id,
$domain = null )
static

Get md5 hash for site, using http host.

Аргументы
int$idSite id.
string$domainDomain name for this site.
Возвращает
string

См. определение в файле site.php строка 941

◆ getPublicUrl()

getPublicUrl ( $id,
bool $full = true,
bool $hostInclude = true,
bool $previewForNotActive = false )
static

Get public url for site.

Аргументы
int[] | int$idSite id or array of ids.
boolean$fullReturn full site url with relative path.
boolean$hostIncludeInclude host name in full path.
boolean$previewForNotActiveIf true and site is not active, url will be with preview hash.
Возвращает
string|array

См. определение в файле site.php строка 79

◆ getSiteIdByTemplate()

getSiteIdByTemplate ( string $tplCode)
static

Returns site id by template code.

Аргументы
string$tplCodeTemplate code.
Возвращает
int|null

См. определение в файле site.php строка 1825

◆ getTypes()

getTypes ( )
static

Get existed site types.

Возвращает
array

См. определение в файле site.php строка 282

◆ getVersion()

getVersion ( $siteId)
static

Get version of site for updater

Аргументы
$siteId
Возвращает
int

См. определение в файле site.php строка 218

◆ markDelete()

markDelete ( $id)
static

Mark site as deleted.

Аргументы
int$idSite id.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 360

◆ markFolderDelete()

markFolderDelete ( int $id)
static

Mark folder as deleted.

Аргументы
int$idFolder id.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1436

◆ markFolderUnDelete()

markFolderUnDelete ( int $id)
static

Mark folder as restored.

Аргументы
int$idFolder id.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1511

◆ markUnDelete()

markUnDelete ( $id)
static

Mark site as restored.

Аргументы
int$idSite id.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 401

◆ moveFolder()

moveFolder ( int $folderId,
?int $toFolderId,
?int $toSiteId = null )
static

Moves folder.

Аргументы
int$folderIdCurrent folder id.
int | null$toFolderIdDestination folder id (or null for root folder of current folder's site).
int | null$toSiteIdDestination site id (if different from current).
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1262

◆ onBeforeMainSiteDelete()

onBeforeMainSiteDelete ( $siteId)
static

Event handler for check existing pages of main module's site.

Аргументы
string$siteIdMain site id.
Возвращает
bool

См. определение в файле site.php строка 1847

◆ onMainSiteDelete()

onMainSiteDelete ( $siteId)
static

Event handler for delete pages of main module's site.

Аргументы
string$siteIdMain site id.
Возвращает
void

См. определение в файле site.php строка 1876

◆ ping()

ping ( int $id,
bool $deleted = false )
static

Returns true if site exists and available.

Аргументы
int$idSite id.
bool$deletedAnd from recycle bin.
Возвращает
bool

См. определение в файле site.php строка 32

◆ publication()

publication ( int $id,
bool $mark = true,
?Metrika\FieldsDto $metrikaFields = null )
static

Makes site public.

Аргументы
int$idSite id.
bool$markMark.
Metrika\FieldsDto | null$metrikaFields- params for analytic. If not set anything - analytic not sent
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1667

◆ publicationFolder()

publicationFolder ( int $folderId,
bool $mark = true )
static

Public all folder's breadcrumb.

Аргументы
int$folderIdFolder id.
bool$markPublication / depublication.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1205

◆ randomizeDomain()

randomizeDomain ( int $siteId)
static

Sets new random domain to site. Actual for Bitrix24 only.

Аргументы
int$siteIdSite id.
Возвращает
bool

См. определение в файле site.php строка 1014

◆ saveAdditionalFields()

saveAdditionalFields ( $id,
array $data )
static

Save additional fields for Site.

Аргументы
int$idSite id.
array$dataData array.
Возвращает
void

См. определение в файле site.php строка 272

◆ switchDomain()

switchDomain ( int $siteId1,
int $siteId2 )
static

Switch domains between two sites. Returns true on success.

Аргументы
int$siteId1First site id.
int$siteId2Second site id.
Возвращает
bool

См. определение в файле site.php строка 1004

◆ touch()

touch ( int $id)
static

Change modified user and date for the site.

Аргументы
int$idSite id.
Возвращает
void

См. определение в файле site.php строка 1642

◆ unpublic()

unpublic ( int $id)
static

Marks site unpublic.

Аргументы
int$idSite id.
Возвращает
\Bitrix\Main\Result

См. определение в файле site.php строка 1781

◆ updateFolder()

updateFolder ( int $siteId,
int $folderId,
array $fields )
static

Updates folder of the site.

Аргументы
int$siteIdSite id.
int$folderIdFolder id.
array$fieldsFolder's fields.
Возвращает
\Bitrix\Main\Entity\UpdateResult

См. определение в файле site.php строка 1180

Поля

◆ $internalClass

$internalClass = 'SiteTable'
static

См. определение в файле site.php строка 18

◆ $pings

$pings = []
staticprotected

См. определение в файле site.php строка 24


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/landing/lib/site.php