1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Landing

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

static getPreview ($lid)
static getPublicUrl ($lid)
static resolveIdByPublicUrl (string $landingUrl, int $siteId)
static getAdditionalFields ($lid)
static publication ($lid)
static unpublic ($lid)
static addBlock ($lid, array $fields, bool $preventHistory=false)
static deleteBlock ($lid, $block)
static markDeletedBlock (int $lid, int $block, bool $mark=true, bool $preventHistory=false)
static markUnDeletedBlock (int $lid, int $block, bool $preventHistory=false)
static upBlock (int $lid, int $block, bool $preventHistory=false)
static downBlock (int $lid, int $block, bool $preventHistory=false)
static favoriteBlock (int $lid, int $block, array $meta=[])
static unFavoriteBlock (int $blockId)
static showBlock ($lid, $block)
static hideBlock ($lid, $block)
static copyBlock ($lid, $block, array $params=array())
static moveBlock ($lid, $block, array $params=array())
static removeEntities ($lid, array $data)
static getList (array $params=[])
static add (array $fields)
static addByTemplate ($siteId, $code, array $fields=[])
static update ($lid, array $fields)
static delete ($lid)
static move (int $lid, ?int $toSiteId=null, ?int $toFolderId=null)
static copy (int $lid, ?int $toSiteId=null, ?int $toFolderId=null, bool $skipSystem=false)
static markDelete ($lid, $mark=true)
static markUnDelete ($lid)
static uploadFile ($lid, $picture, $ext=false, array $params=array())
static updateHead ($lid, $content)

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

static clearDisallowFields (array $fields)
static checkAddingInMenu (array $fields, ?bool &$willAdded=null)

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

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

Методы

◆ add()

add ( array $fields)
static

Create new landing.

Аргументы
array$fieldsLanding data.
Возвращает
PublicActionResult

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

◆ addBlock()

addBlock ( $lid,
array $fields,
bool $preventHistory = false )
static

Add new block to the landing.

Аргументы
int$lidId of landing.
array$fieldsData array of block.
bool$preventHistoryTrue if no need save history
Возвращает
PublicActionResult

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

◆ addByTemplate()

addByTemplate ( $siteId,
$code,
array $fields = [] )
static

Create a page by template.

Аргументы
int$siteIdSite id.
string$codeCode of template.
array$fieldsLanding fields.
Возвращает
PublicActionResult

Creates new page in the site by template.

Аргументы
int$siteIdSite id.
string$codeTemplate code.
array$fieldsLanding fields.
Возвращает
\Bitrix\Main\Entity\AddResult

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

◆ checkAddingInMenu()

checkAddingInMenu ( array $fields,
?bool & $willAdded = null )
staticprotected

Checks that page also adding in some menu.

Аргументы
array$fieldsLanding data array.
bool$willAddedFlag that menu item will be added.
Возвращает
array

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

◆ clearDisallowFields()

clearDisallowFields ( array $fields)
staticprotected

Clear disallow keys from add/update fields.

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

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

◆ copy()

copy ( int $lid,
?int $toSiteId = null,
?int $toFolderId = null,
bool $skipSystem = false )
static

Copy landing.

Аргументы
int$lidLanding id.
int | null$toSiteIdSite id (if you want copy in another site).
int | null$toFolderIdFolder id (if you want copy in some folder).
bool$skipSystemIf true, don't copy system flag.
Возвращает
PublicActionResult

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

◆ copyBlock()

copyBlock ( $lid,
$block,
array $params = array() )
static

Copy other block to this landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
array$paramsParams array.
Возвращает
PublicActionResult

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

◆ delete()

delete ( $lid)
static

Delete landing.

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

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

◆ deleteBlock()

deleteBlock ( $lid,
$block )
static

Delete the block from the landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
Возвращает
PublicActionResult

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

◆ downBlock()

downBlock ( int $lid,
int $block,
bool $preventHistory = false )
static

Sort down the block on the landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
bool$preventHistoryTrue if no need save history
Возвращает
PublicActionResult

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

◆ favoriteBlock()

favoriteBlock ( int $lid,
int $block,
array $meta = [] )
static

Save the block in favorites.

Аргументы
int$lidLanding id.
int$blockBlock id.
array$metaMeta info.
Возвращает
PublicActionResult

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

◆ getAdditionalFields()

getAdditionalFields ( $lid)
static

Get additional fields of landing.

Аргументы
int$lidId of landing.
Возвращает
PublicActionResult

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

◆ getList()

getList ( array $params = [])
static

Get available landings.

Аргументы
array$paramsParams ORM array.
Возвращает
PublicActionResult

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

◆ getPreview()

getPreview ( $lid)
static

Get preview picture of landing.

Аргументы
int$lidId of landing.
Возвращает
PublicActionResult

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

◆ getPublicUrl()

getPublicUrl ( $lid)
static

Get public url of landing.

Аргументы
int$lidId of landing.
Возвращает
PublicActionResult

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

◆ hideBlock()

hideBlock ( $lid,
$block )
static

Dectivate the block on the landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
Возвращает
PublicActionResult

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

◆ markDelete()

markDelete ( $lid,
$mark = true )
static

Mark entity as deleted.

Аргументы
int$lidEntity id.
boolean$markMark.
Возвращает
PublicActionResult

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

◆ markDeletedBlock()

markDeletedBlock ( int $lid,
int $block,
bool $mark = true,
bool $preventHistory = false )
static

Mark delete or not the block.

Аргументы
int$lidId of landing.
int$blockBlock id.
boolean$markMark.
bool$preventHistoryTrue if no need save history
Возвращает
PublicActionResult

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

◆ markUnDelete()

markUnDelete ( $lid)
static

Mark entity as undeleted.

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

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

◆ markUnDeletedBlock()

markUnDeletedBlock ( int $lid,
int $block,
bool $preventHistory = false )
static

Mark undelete the block.

Аргументы
int$lidId of landing.
int$blockBlock id.
bool$preventHistoryTrue if no need save history
Возвращает
PublicActionResult

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

◆ move()

move ( int $lid,
?int $toSiteId = null,
?int $toFolderId = null )
static

Move the page to site/folder.

Аргументы
int$lidLanding id.
int | null$toSiteIdSite id.
int | null$toFolderIdFolder id (optional).
Возвращает
PublicActionResult

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

◆ moveBlock()

moveBlock ( $lid,
$block,
array $params = array() )
static

Move other block to this landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
array$paramsParams array.
Возвращает
PublicActionResult

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

◆ publication()

publication ( $lid)
static

Publication of landing.

Аргументы
int$lidId of landing.
Возвращает
PublicActionResult

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

◆ removeEntities()

removeEntities ( $lid,
array $data )
static

Remove entities of Landing - images / blocks.

Аргументы
int$lidLanding id.
array$dataData for remove.
Возвращает
PublicActionResult

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

◆ resolveIdByPublicUrl()

resolveIdByPublicUrl ( string $landingUrl,
int $siteId )
static

Returns landing id resolves by landing public url.

Аргументы
string$landingUrlLanding public url.
int$siteIdLanding's site id.
Возвращает
PublicActionResult

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

◆ showBlock()

showBlock ( $lid,
$block )
static

Activate the block on the landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
Возвращает
PublicActionResult

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

◆ unFavoriteBlock()

unFavoriteBlock ( int $blockId)
static

Remove block from favorites. Only if block created by current user.

Аргументы
int$blockId- id of deleted block
Возвращает
PublicActionResult

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

◆ unpublic()

unpublic ( $lid)
static

Cancel publication of landing.

Аргументы
int$lidId of landing.
Возвращает
PublicActionResult

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

◆ upBlock()

upBlock ( int $lid,
int $block,
bool $preventHistory = false )
static

Sort up the block on the landing.

Аргументы
int$lidId of landing.
int$blockBlock id.
bool$preventHistoryTrue if no need save history
Возвращает
PublicActionResult

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

◆ update()

update ( $lid,
array $fields )
static

Update landing.

Аргументы
int$lidLanding id.
array$fieldsLanding new data.
Возвращает
PublicActionResult

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

◆ updateHead()

updateHead ( $lid,
$content )
static

Set some content to the Head section.

Аргументы
int$lidLanding id.
string$contentSome content.
Возвращает
PublicActionResult

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

◆ uploadFile()

uploadFile ( $lid,
$picture,
$ext = false,
array $params = array() )
static

Upload file by url or from FILE.

Аргументы
int$lidLanding id.
string$pictureFile url / file array.
string$extFile extension.
array$paramsSome file params.
Возвращает
PublicActionResult

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


Объявления и описания членов классов находятся в файлах: