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

Открытые члены

 __construct ($id, $data=[], array $params=[])
 exist ()
 getId ()
 getLandingId ()
 getSiteId ()
 getCode ()
 getLocalAnchor ()
 getContent ()
 getBlockClass ()
 setAllowedByTariff (bool $mark)
 resetContent ()
 isActive ()
 isPublic ()
 isDesigned ()
 getAccess ()
 setAccess ($letter)
 setActive ($active)
 getRepoId ()
 getSite ()
 getPreview ()
 getError ()
 getManifest (bool $extended=false, bool $missCache=false, array $params=array())
 getAsset ($type=null)
 getCSS ()
 getJS ()
 getExt ()
 getClass ()
 view ($edit=false, \Bitrix\Landing\Landing $landing=null, array $params=array())
 saveAssets (array $assets)
 getAssets ()
 saveContent (string $content, $designed=false)
 save (array $additionalFields=[])
 changeLanding ($lid)
 changeFavoriteMeta (array $meta)
 unlink ()
 markDeleted ($mark)
 setSort ($sort)
 setAnchor ($anchor)
 saveSort ($sort)
 getSort ()
 getDynamicParams ($id=null)
 saveDynamicParams (array $sourceParams=[], array $params=[])
 clearDynamic ()
 getRuntimeRequiredUserAction ()
 setRuntimeRequiredUserAction (array $action)
 getDom ($clear=false)
 getMeta ()
 adjustCards ($selector, $count, &$changed=false)
 cloneCard ($selector, $position, $content='')
 setCardContent ($selector, $position, $content)
 getCardContent ($selector, $position)
 getCardCount ($selector)
 removeCard ($selector, $position)
 changeNodeName ($data)
 updateNodes ($data, $additional=array())
 updateCards (array $data=array())
 setClasses ($data)
 setAttributes ($data)

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

static fillLanding (Landing $landing, $limit=0, array $params=array())
static cloneForEdit (\Bitrix\Landing\Landing $landing)
static publicationBlocks (\Bitrix\Landing\Landing $landing)
static getLandingIdByBlockId ($id)
static getLandingRowByBlockId ($id, array $select=array('ID'))
static getRowByBlockId ($id, array $select=array('ID'))
static getContentFromRepository (string $code, string $namespace=null)
static createFromRepository (Landing $landing, string $code, array $data=array())
static clearRepositoryCache ()
static getRepository ()
static getLastUsed (int $count=15)
static markAsUsed (string $blockCode)
static removeAsUsed (string $blockCode)
static getStyle ()
static getSemantic ()
static getAttrs ()
static getBlockContent ($id, $editMode=false, array $params=array())
static getAnchor ($id)
static getManifestFile ($code)
static deleteByCode ($code)
static deleteAll ($lid)
static search ($query, array $filter=[], array $select=['LID'], array $group=['LID'])
static add ($fields)
static update ($id, $fields=array())
static delete ($id)
static getFavorites (?string $tplCode)
static getList ($fields=array())
static isContains (int $entityId, string $needed, bool $isLanding=false)
static checkComponentExists (string $componentName)
Открытые статические члены унаследованные от BaseTable
static callback ($code, $callback)

Поля данных

const PREVIEW_FILE_NAME = 'preview.jpg'
const CSS_FILE_NAME = 'style.css'
const JS_FILE_NAME = 'script.js'
const REPO_MASK = '/^repo_([\d]+)$/'
const ACCESS_A = 'A'
const ACCESS_D = 'D'
const ACCESS_V = 'V'
const ACCESS_W = 'W'
const ACCESS_X = 'X'
const CARD_SYM_CODE = 'card'
const PRESET_SYM_CODE = 'preset'
const DEFAULT_WRAPPER_STYLE = ['block-default']

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

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

Защищенные члены

 getTypeClass ($type)
 parseManifest ()
 checkDesignedManifest (array $manifest)
 localizationManifest (array &$manifest, array $lang)
 includeBlockClass ($path)
 setDynamic ($edit)
 getMenuHtml ($data, $manifestNode, $level='root')
 removeStyle (DOM\Node $node, array $styleToRemove)

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

static getNormalizedBlock (string $code)
static prepareBlockContentFromRepository ($block)
static isNewBlock ($block)
static getSpecialManifest (string $type)
static getBlockNamespace ($code)
static getBlockPath ($code, $namespace=null)
static getMessageBlock ($params, $template='')
static collectAllowedAttrs (array $mixed, array &$allowed, $selector=null)
static replaceMetaMarkers ($content)
static getAjaxInitiatedAssets ()

Защищенные данные

 $id = 0
 $lid = 0
 $parentId = 0
 $siteId = 0
 $sort = 0
 $repoId = 0
 $repoInfo = []
 $code = ''
 $anchor = ''
 $content = ''
 $runtimeRequiredUserAction = []
 $access = 'X'
 $metaData = array()
 $assets = array()
 $active = false
 $landingActive = false
 $deleted = false
 $designed = false
 $public = false
 $allowedByTariff = true
 $docRoot = ''
 $error = null
 $dynamicParams = []
array $allowedExtensions
array $allowedRepoExtensions

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

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

Конструктор(ы)

◆ __construct()

__construct ( $id,
$data = [],
array $params = [] )

Constructor.

Аргументы
int$idBlock id.
array$dataData row from BlockTable (by default get from DB).
array$paramsSome additional params.

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

Методы

◆ add()

add ( $fields)
static

Add block row.

Аргументы
array$fieldsBlock data.
Возвращает
\Bitrix\Main\Result

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

◆ adjustCards()

adjustCards ( $selector,
$count,
& $changed = false )

Adjust cards count by selector.

Аргументы
string$selectorSelector.
int$countNeeded cards count.
bool&$changedChanged.
Возвращает
boolean Success or failure.

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

◆ changeFavoriteMeta()

changeFavoriteMeta ( array $meta)

Set meta information for favorite block.

Аргументы
array$metaMeta information.
Возвращает
bool

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

◆ changeLanding()

changeLanding ( $lid)

Change landing of current block.

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

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

◆ changeNodeName()

changeNodeName ( $data)

Set new names for nodes of block.

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

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

◆ checkComponentExists()

checkComponentExists ( string $componentName)
static

Temporary function for check components, when includeModule check is not enough

Возвращает
bool

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

◆ checkDesignedManifest()

checkDesignedManifest ( array $manifest)
protected

Checks that current block are designed and adds new manifest parts.

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

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

◆ clearDynamic()

clearDynamic ( )

Make block not dynamic.

Возвращает
void

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

◆ clearRepositoryCache()

clearRepositoryCache ( )
static

Clear cache repository.

Возвращает
void

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

◆ cloneCard()

cloneCard ( $selector,
$position,
$content = '' )

Clone one card in block by selector.

Аргументы
string$selectorSelector.
int$positionCard position.
string$contentNew content for cloned card.
Возвращает
boolean Success or failure.

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

◆ cloneForEdit()

cloneForEdit ( \Bitrix\Landing\Landing $landing)
static

Create copy of blocks for draft version.

Аргументы
\Bitrix\Landing\Landing$landingLanding instance.
Возвращает
void

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

◆ collectAllowedAttrs()

collectAllowedAttrs ( array $mixed,
array & $allowed,
$selector = null )
staticprotected

Collects and returns allowed attributes ([selector] => [data-test, data-test2]).

Аргументы
string$selectorSelector, if attr have't own selector.
array&$allowedArray for collecting.
Возвращает
void

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

◆ createFromRepository()

createFromRepository ( Landing $landing,
string $code,
array $data = array() )
static

Create instance by string code.

Аргументы
Landing$landingLanding - owner for new block.
string$codeCode of block from repository.
array$dataAdditional data array.
Возвращает
Block|false

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

◆ delete()

delete ( $id)
static

Delete block row.

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

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

◆ deleteAll()

deleteAll ( $lid)
static

Delete all blocks for the landing.

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

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

◆ deleteByCode()

deleteByCode ( $code)
static

Delete all blocks from db by codes.

Аргументы
array$codeArray of codes to delete.
Возвращает
void

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

◆ exist()

exist ( )

Exist or not block in current instance.

Возвращает
boolean

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

◆ fillLanding()

fillLanding ( Landing $landing,
$limit = 0,
array $params = array() )
static

Fill landing with blocks.

Аргументы
Landing$landingLanding instance.
int$limitLimit count for blocks.
array$paramsAdditional params.
Возвращает
boolean

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

◆ getAccess()

getAccess ( )

Get current access.

Возвращает
string

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

◆ getAjaxInitiatedAssets()

getAjaxInitiatedAssets ( )
staticprotected

In ajax hit may be initiated some assets (JS extensions), but will not be added on page. We need get them all and add to output.

Возвращает
array
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

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

◆ getAnchor()

getAnchor ( $id)
static

Get block anchor.

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

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

◆ getAsset()

getAsset ( $type = null)

Get some assets of block.

Аргументы
string$typeWhat return: css, js, ext, class.
Возвращает
array

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

◆ getAssets()

getAssets ( )

Returns the block assets.

Возвращает
array

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

◆ getAttrs()

getAttrs ( )
static

Returns blocks attrs manifests from repository.

Возвращает
array

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

◆ getBlockClass()

getBlockClass ( )

Get class of block.

Возвращает
LandingBlock

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

◆ getBlockContent()

getBlockContent ( $id,
$editMode = false,
array $params = array() )
static

Get block content array.

Аргументы
int$idBlock id.
boolean$editModeEdit mode if true.
array$paramsSome params.
Возвращает
array

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

◆ getBlockNamespace()

getBlockNamespace ( $code)
staticprotected

Get namespace for block.

Аргументы
string$codeCode of block.
Возвращает
string

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

◆ getBlockPath()

getBlockPath ( $code,
$namespace = null )
staticprotected

Get local path for block.

Аргументы
string$codeCode of block.
string$namespaceNamespace (optional).
Возвращает
string

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

◆ getCardContent()

getCardContent ( $selector,
$position )

Gets card content from block by selector.

Аргументы
string$selectorSelector.
int$positionCard position.
Возвращает
string

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

◆ getCardCount()

getCardCount ( $selector)

Gets count of cards from block by selector.

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

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

◆ getClass()

getClass ( )

Get executable classes.

Возвращает
array

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

◆ getCode()

getCode ( )

Get code of the block.

Возвращает
string

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

◆ getContent()

getContent ( )

Get content of the block.

Возвращает
string

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

◆ getContentFromRepository()

getContentFromRepository ( string $code,
string $namespace = null )
static

Get content from repository by code.

Аргументы
string$codeBlock code.
string | null$namespaceNamespace (optional).
Возвращает
string|null

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

◆ getCSS()

getCSS ( )

Get css file path, if exists.

Возвращает
array

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

◆ getDom()

getDom ( $clear = false)

Load current content in DOM html structure.

Аргументы
bool$clearCLear static cache.
Возвращает
DOM\Document

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

◆ getDynamicParams()

getDynamicParams ( $id = null)

Gets dynamic source params.

Аргументы
int$idNot current block id.
Возвращает
array

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

◆ getError()

getError ( )

Get error collection

Возвращает
\Bitrix\Landing\Error

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

◆ getExt()

getExt ( )

Get extensions.

Возвращает
array

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

◆ getFavorites()

getFavorites ( ?string $tplCode)
static

Returns all favorites blocks.

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

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

◆ getId()

getId ( )

Get id of the block.

Возвращает
int

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

◆ getJS()

getJS ( )

Get js file path, if exists.

Возвращает
array

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

◆ getLandingId()

getLandingId ( )

Gets landing id.

Возвращает
int

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

◆ getLandingIdByBlockId()

getLandingIdByBlockId ( $id)
static

Recognize landing id by block id.

Аргументы
int | array$idBlock id (id array).
Возвращает
int|array|false

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

◆ getLandingRowByBlockId()

getLandingRowByBlockId ( $id,
array $select = array('ID') )
static

Gets row by block id.

Аргументы
int | array$idBlock id (id array).
array$selectSelect row.
Возвращает
int|array|false

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

◆ getLastUsed()

getLastUsed ( int $count = 15)
static

Returns last used blocks by current user.

Аргументы
int$countCount of blocks.
Возвращает
array

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

◆ getList()

getList ( $fields = array())
static

Gets block's rows.

Аргументы
array$fieldsBlock orm data.
Возвращает
\Bitrix\Main\DB\Result

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

◆ getLocalAnchor()

getLocalAnchor ( )

Get anchor of the block.

Возвращает
string

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

◆ getManifest()

getManifest ( bool $extended = false,
bool $missCache = false,
array $params = array() )

Get manifest array from block.

Аргументы
bool$extendedGet extended manifest.
bool$missCacheDon't save in static cache.
array$paramsAdditional params.
Возвращает
array

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

◆ getManifestFile()

getManifestFile ( $code)
static

Get manifest array as is from block.

Аргументы
string$codeCode name, format "namespace:code" or just "code".
Возвращает
array

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

◆ getMenuHtml()

getMenuHtml ( $data,
$manifestNode,
$level = 'root' )
protected

Returns menu html with child submenu.

Аргументы
array$dataData array.
array$manifestNodeManifest node for current selector.
string$levelLevel (root or children).
Возвращает
string

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

◆ getMessageBlock()

getMessageBlock ( $params,
$template = '' )
staticprotected

Gets message string.

Аргументы
array$paramsComponent's params.
string$templateTemplate name.
Возвращает
string

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

◆ getMeta()

getMeta ( )

Get metadata of current block.

Возвращает
array

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

◆ getNormalizedBlock()

getNormalizedBlock ( string $code)
staticprotected

Returns normalized block data.

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

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

◆ getPreview()

getPreview ( )

Get preview picture of the block.

Возвращает
string

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

◆ getRepoId()

getRepoId ( )

Get repo id, if block from repo.

Возвращает
int

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

◆ getRepository()

getRepository ( )
static
Возвращает
array

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

◆ getRowByBlockId()

getRowByBlockId ( $id,
array $select = array('ID') )
static

Gets landing row by block id.

Аргументы
int | array$idBlock id (id array).
array$selectSelect row.
Возвращает
int|array|false

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

◆ getRuntimeRequiredUserAction()

getRuntimeRequiredUserAction ( )

Gets only runtime required actions.

Возвращает
array

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

◆ getSemantic()

getSemantic ( )
static

Returns blocks semantic manifests from repository.

Возвращает
array

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

◆ getSite()

getSite ( )

Gets site row.

Возвращает
array

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

◆ getSiteId()

getSiteId ( )

Gets site id (of landing).

Возвращает
int

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

◆ getSort()

getSort ( )

Get sort of current block.

Возвращает
int

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

◆ getSpecialManifest()

getSpecialManifest ( string $type)
staticprotected

Returns blocks style manifest from repository.

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

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

◆ getStyle()

getStyle ( )
static

Returns blocks style manifests from repository.

Возвращает
array

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

◆ getTypeClass()

getTypeClass ( $type)
protected

Get class handler for type of node.

См. также
Node\Type::getClassName
Аргументы
string$typeType.
Возвращает
string

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

◆ includeBlockClass()

includeBlockClass ( $path)
protected

Include class of block.

Аргументы
string$pathPath of block class.
Возвращает
\Bitrix\Landing\LandingBlock

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

◆ isActive()

isActive ( )

Active or not the block.

Возвращает
boolean

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

◆ isContains()

isContains ( int $entityId,
string $needed,
bool $isLanding = false )
static

Returns true if block's content contains needed string.

Аргументы
int$entityIdBlock or landing id.
string$neededString for search.
bool$isLandingSet to true, if entity id is landing id.
Возвращает
bool

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

◆ isDesigned()

isDesigned ( )

Returns true if block was designed by user.

Возвращает
bool

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

◆ isNewBlock()

isNewBlock ( $block)
staticprotected

New or not the block.

Аргументы
string$blockBlock code.
Возвращает
boolean

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

◆ isPublic()

isPublic ( )

Public or not the block.

Возвращает
boolean

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

◆ localizationManifest()

localizationManifest ( array & $manifest,
array $lang )
protected

Localize manifest.

Аргументы
array$manifestManifest array.
array$langLang array.
Возвращает
void

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

◆ markAsUsed()

markAsUsed ( string $blockCode)
static

Stores block by code as last used.

Аргументы
string$blockCodeBlock code.
Возвращает
void

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

◆ markDeleted()

markDeleted ( $mark)

Mark delete or not current block.

Аргументы
boolean$markMark.
Возвращает
void

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

◆ parseManifest()

parseManifest ( )
protected

Returns additional manifest nodes from content.

Возвращает
array

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

◆ prepareBlockContentFromRepository()

prepareBlockContentFromRepository ( $block)
staticprotected

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

◆ publicationBlocks()

publicationBlocks ( \Bitrix\Landing\Landing $landing)
static

Publication blocks for landing.

Аргументы
\Bitrix\Landing\Landing$landingLanding instance.
Возвращает
void

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

◆ removeAsUsed()

removeAsUsed ( string $blockCode)
static

Removes block by code from last used.

Аргументы
string$blockCodeBlock code.
Возвращает
void

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

◆ removeCard()

removeCard ( $selector,
$position )

Remove one card from block by selector.

Аргументы
string$selectorSelector.
int$positionCard position.
Возвращает
boolean Success or failure.

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

◆ removeStyle()

removeStyle ( DOM\Node $node,
array $styleToRemove )
protected

Recursive styles remove in Node.

Аргументы
\Bitrix\Main\Web\DOM\Node$nodeNode for clear.
array$styleToRemoveArray of styles to remove.
Возвращает
\Bitrix\Main\Web\DOM\Node

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

◆ replaceMetaMarkers()

replaceMetaMarkers ( $content)
staticprotected

Replace title and breadcrumb marker in the block.

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

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

◆ resetContent()

resetContent ( )

Reset content of current block.

Возвращает
void

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

◆ save()

save ( array $additionalFields = [])

Save current block in DB.

Аргументы
array$additionalFieldsAdditional fields for saving.
Возвращает
boolean

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

◆ saveAssets()

saveAssets ( array $assets)

Save assets to the block.

Аргументы
array$assetsNew assets array.
Возвращает
void

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

◆ saveContent()

saveContent ( string $content,
$designed = false )

Set new content.

Аргументы
string$contentNew content.
bool$designedContent was designed.
Возвращает
void

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

◆ saveDynamicParams()

saveDynamicParams ( array $sourceParams = [],
array $params = [] )

Save dynamic params for the block.

Аргументы
array$sourceParamsSource params.
array$paramsAdditional params.
Возвращает
void

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

◆ saveSort()

saveSort ( $sort)

Save new sort to current block to DB.

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

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

◆ search()

search ( $query,
array $filter = [],
array $select = ['LID'],
array $group = ['LID'] )
static

Search in blocks.

Аргументы
string$queryQuery string.
array$filterFilter array.
array$selectSelect fields.
array$groupGroup fields.
Возвращает
array

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

◆ setAccess()

setAccess ( $letter)

Set new access to the block.

Аргументы
string$letterAccess letter.
Возвращает
void

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

◆ setActive()

setActive ( $active)

Set active to the block.

Аргументы
boolean$activeBool: true or false.
Возвращает
boolean

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

◆ setAllowedByTariff()

setAllowedByTariff ( bool $mark)

Marks block as allowed or not by tariff.

Аргументы
bool$markMark.
Возвращает
void

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

◆ setAnchor()

setAnchor ( $anchor)

Set new anchor to current block.

Аргументы
string$anchorNew anchor.
Возвращает
boolean

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

◆ setAttributes()

setAttributes ( $data)

Set attributes to nodes of block.

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

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

◆ setCardContent()

setCardContent ( $selector,
$position,
$content )

Set card content from block by selector.

Аргументы
string$selectorSelector.
int$positionCard position.
string$contentNew content.
Возвращает
boolean Success or failure.

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

◆ setClasses()

setClasses ( $data)

Set new classes to nodes of block.

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

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

◆ setDynamic()

setDynamic ( $edit)
protected

Build dynamic content for the block.

Аргументы
bool$editEdit mode.
Возвращает
void

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

◆ setRuntimeRequiredUserAction()

setRuntimeRequiredUserAction ( array $action)

Set only runtime required actions.

Аргументы
array$action

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

◆ setSort()

setSort ( $sort)

Set new sort to current block.

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

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

◆ unlink()

unlink ( )

Delete current block.

Возвращает
boolean

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

◆ update()

update ( $id,
$fields = array() )
static

Update block row.

Аргументы
int$idPrimary key.
array$fieldsBlock data.
Возвращает
\Bitrix\Main\Result

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

◆ updateCards()

updateCards ( array $data = array())

Change cards multiple.

Аргументы
array$dataArray with cards.
Возвращает
boolean

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

◆ updateNodes()

updateNodes ( $data,
$additional = array() )

Set new content to nodes of block.

Аргументы
array$dataNodes data array.
array$additionalAdditional prams for save.
Возвращает
boolean

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

◆ view()

view ( $edit = false,
\Bitrix\Landing\Landing $landing = null,
array $params = array() )

Out the block.

Аргументы
boolean$editOut block in edit mode.
Landing | null$landingLanding of this block.
array$paramsSome params.
Возвращает
void

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

Поля

◆ $access

$access = 'X'
protected

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

◆ $active

$active = false
protected

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

◆ $allowedByTariff

$allowedByTariff = true
protected

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

◆ $allowedExtensions

array $allowedExtensions
protected
Инициализатор
= [
'landing_form',
'landing_carousel',
'landing_google_maps_new',
'landing_map',
'landing_countdown',
'landing_gallery_cards',
'landing_chat',
]

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

◆ $allowedRepoExtensions

array $allowedRepoExtensions
protected
Инициализатор
= [
'landing.widgetvue',
]

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

◆ $anchor

$anchor = ''
protected

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

◆ $assets

$assets = array()
protected

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

◆ $code

$code = ''
protected

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

◆ $content

$content = ''
protected

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

◆ $deleted

$deleted = false
protected

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

◆ $designed

$designed = false
protected

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

◆ $docRoot

$docRoot = ''
protected

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

◆ $dynamicParams

$dynamicParams = []
protected

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

◆ $error

$error = null
protected

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

◆ $id

$id = 0
protected

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

◆ $internalClass

$internalClass = 'BlockTable'
static

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

◆ $landingActive

$landingActive = false
protected

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

◆ $lid

$lid = 0
protected

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

◆ $metaData

$metaData = array()
protected

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

◆ $parentId

$parentId = 0
protected

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

◆ $public

$public = false
protected

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

◆ $repoId

$repoId = 0
protected

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

◆ $repoInfo

$repoInfo = []
protected

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

◆ $runtimeRequiredUserAction

$runtimeRequiredUserAction = []
protected

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

◆ $siteId

$siteId = 0
protected

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

◆ $sort

$sort = 0
protected

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

◆ ACCESS_A

const ACCESS_A = 'A'

Access level: any access denied to all blocks.

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

◆ ACCESS_D

const ACCESS_D = 'D'

Access level: access denied.

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

◆ ACCESS_V

const ACCESS_V = 'V'

Access level: edit only design.

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

◆ ACCESS_W

const ACCESS_W = 'W'

Access level: edit content and design (not delete).

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

◆ ACCESS_X

const ACCESS_X = 'X'

Access level: full access.

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

◆ CARD_SYM_CODE

const CARD_SYM_CODE = 'card'

Symbolic code of card.

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

◆ CSS_FILE_NAME

const CSS_FILE_NAME = 'style.css'

Local css filename.

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

◆ DEFAULT_WRAPPER_STYLE

const DEFAULT_WRAPPER_STYLE = ['block-default']

Default setting for block wrapper style, if not set manifest[styles][block] section

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

◆ JS_FILE_NAME

const JS_FILE_NAME = 'script.js'

Local js filename.

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

◆ PRESET_SYM_CODE

const PRESET_SYM_CODE = 'preset'

Symbolic code of preset.

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

◆ PREVIEW_FILE_NAME

const PREVIEW_FILE_NAME = 'preview.jpg'

Block preview filename.

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

◆ REPO_MASK

const REPO_MASK = '/^repo_([\d]+)$/'

Pattern for repo code.

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


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