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

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

static getData ($id, $type, $asIs=false)
static setEditMode (bool $mode=true)
static getEditMode ()
static getForSite ($id)
static getForLanding ($id)
static getForLandingRow ($id)
static copySite ($from, $to)
static copyLanding ($from, $to)
static publicationSite ($siteId)
static publicationLanding ($lid)
static publicationSiteWithSkipNeededPublication ($siteId)
static publicationLandingWithSkipNeededPublication ($landingId)
static saveForSite (int $id, array $data)
static saveForLanding (int $id, array $data)
static indexLanding ($id)
static deleteForSite ($id)
static deleteForLanding ($id)

Поля данных

const ENTITY_TYPE_SITE = 'S'
const ENTITY_TYPE_LANDING = 'L'
const HOOKS_PAGE_DIR = '/bitrix/modules/landing/lib/hook/page'
const HOOKS_NAMESPACE = '\\Hook\\Page\\'
const HOOKS_CODES_FILES
const HOOKS_CODES_DESIGN

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

static getClassesFromDir ($dir)
static getList ($id, $type, array $data=array())
static copy ($from, $to, $type, $publication=false)
static publicationWithSkipNeededPublication ($id, $type)
static prepareData (array $data)
static saveData ($id, $type, array $data)
static indexContent ($id, $type)
static deleteData ($id, $type)

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

const HOOKS_ON_COPY_HANDLER = 'onCopy'

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

static $editMode = false

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

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

Методы

◆ copy()

copy ( $from,
$to,
$type,
$publication = false )
staticprotected

Copy data for entity.

Аргументы
int$fromFrom entity id.
int$toTo entity id.
string$typeEntity type.
bool$publicationIt's not copy, but publication.
Возвращает
void

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

◆ copyLanding()

copyLanding ( $from,
$to )
static

Copy data for landing.

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

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

◆ copySite()

copySite ( $from,
$to )
static

Copy data for site.

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

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

◆ deleteData()

deleteData ( $id,
$type )
staticprotected

Delete data hooks for entity.

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

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

◆ deleteForLanding()

deleteForLanding ( $id)
static

Delete data hooks for landing.

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

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

◆ deleteForSite()

deleteForSite ( $id)
static

Delete data hooks for site.

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

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

◆ getClassesFromDir()

getClassesFromDir ( $dir)
staticprotected

Get classes from dir.

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

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

◆ getData()

getData ( $id,
$type,
$asIs = false )
static

Get data by entity id ant type.

Аргументы
int$idEntity id.
string$typeEntity type.
boolean$asIsReturn row as is.
Возвращает
array

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

◆ getEditMode()

getEditMode ( )
static

Returns edit mode state.

Возвращает
bool

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

◆ getForLanding()

getForLanding ( $id)
static

Get hooks for landing.

Аргументы
int$idLanding id.
Возвращает
Page[]

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

◆ getForLandingRow()

getForLandingRow ( $id)
static

Get row hooks for landing.

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

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

◆ getForSite()

getForSite ( $id)
static

Get hooks for site.

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

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

◆ getList()

getList ( $id,
$type,
array $data = array() )
staticprotected

Get available hooks for this landing.

Аргументы
int$idEntity id.
string$typeEntity type.
array$dataData array (optional).
Возвращает
Page[]

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

◆ indexContent()

indexContent ( $id,
$type )
staticprotected

Index hook's content for entities.

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

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

◆ indexLanding()

indexLanding ( $id)
static

Index hook's content for landing.

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

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

◆ prepareData()

prepareData ( array $data)
staticprotected

Prepare data for save in hooks.

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

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

◆ publicationLanding()

publicationLanding ( $lid)
static

Publication data for landing.

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

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

◆ publicationLandingWithSkipNeededPublication()

publicationLandingWithSkipNeededPublication ( $landingId)
static

In disable autobulication option we must skip hooks, then required page publication.

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

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

◆ publicationSite()

publicationSite ( $siteId)
static

Publication data for site.

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

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

◆ publicationSiteWithSkipNeededPublication()

publicationSiteWithSkipNeededPublication ( $siteId)
static

In disable autobulication option we must skip hooks, then required page publication.

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

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

◆ publicationWithSkipNeededPublication()

publicationWithSkipNeededPublication ( $id,
$type )
staticprotected

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

◆ saveData()

saveData ( $id,
$type,
array $data )
staticprotected

Set data hooks for entity.

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

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

◆ saveForLanding()

saveForLanding ( int $id,
array $data )
static

Get hooks for landing.

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

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

◆ saveForSite()

saveForSite ( int $id,
array $data )
static

Set data hooks for site.

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

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

◆ setEditMode()

setEditMode ( bool $mode = true)
static

Set edit mode to true.

Аргументы
bool$modeEdit mode (true by default).
Возвращает
void

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

Поля

◆ $editMode

$editMode = false
staticprotected

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

◆ ENTITY_TYPE_LANDING

const ENTITY_TYPE_LANDING = 'L'

Entity type landing.

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

◆ ENTITY_TYPE_SITE

const ENTITY_TYPE_SITE = 'S'

Entity type site.

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

◆ HOOKS_CODES_DESIGN

const HOOKS_CODES_DESIGN
Инициализатор
= [
'BACKGROUND_USE',
'BACKGROUND_PICTURE',
'BACKGROUND_POSITION',
'BACKGROUND_COLOR',
'FONTS_CODE',
'THEME_CODE',
'THEME_USE',
'THEME_COLOR',
'THEMEFONTS_USE',
'THEMEFONTS_CODE_H',
'THEMEFONTS_CODE',
'THEMEFONTS_SIZE',
'THEMEFONTS_COLOR',
'THEMEFONTS_COLOR_H',
'THEMEFONTS_LINE_HEIGHT',
'THEMEFONTS_FONT_WEIGHT',
'THEMEFONTS_FONT_WEIGHT_H',
]

Hook codes which have visual effect

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

◆ HOOKS_CODES_FILES

const HOOKS_CODES_FILES
Инициализатор
= [
'METAOG_IMAGE',
'BACKGROUND_PICTURE'
]

Hook codes which contains file ids.

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

◆ HOOKS_NAMESPACE

const HOOKS_NAMESPACE = '\\Hook\\Page\\'

Namespace of repoitory of common hooks (relative current).

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

◆ HOOKS_ON_COPY_HANDLER

const HOOKS_ON_COPY_HANDLER = 'onCopy'
protected

Handler for copy event

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

◆ HOOKS_PAGE_DIR

const HOOKS_PAGE_DIR = '/bitrix/modules/landing/lib/hook/page'

Dir of repository of common hooks.

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


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