|
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) |
См. определение в файле hook.php строка 10
◆ copy()
copy |
( |
| $from, |
|
|
| $to, |
|
|
| $type, |
|
|
| $publication = false ) |
|
staticprotected |
Copy data for entity.
- Аргументы
-
int | $from | From entity id. |
int | $to | To entity id. |
string | $type | Entity type. |
bool | $publication | It's not copy, but publication. |
- Возвращает
- void
См. определение в файле hook.php строка 385
◆ copyLanding()
copyLanding |
( |
| $from, |
|
|
| $to ) |
|
static |
Copy data for landing.
- Аргументы
-
int | $from | From landing id. |
int | $to | To landing id. |
- Возвращает
- void
См. определение в файле hook.php строка 502
◆ copySite()
Copy data for site.
- Аргументы
-
int | $from | From site id. |
int | $to | To site id. |
- Возвращает
- void
См. определение в файле hook.php строка 485
◆ deleteData()
deleteData |
( |
| $id, |
|
|
| $type ) |
|
staticprotected |
Delete data hooks for entity.
- Аргументы
-
int | $id | Entity id. |
string | $type | Entity type. |
- Возвращает
- void
См. определение в файле hook.php строка 912
◆ deleteForLanding()
Delete data hooks for landing.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 948
◆ deleteForSite()
Delete data hooks for site.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 938
◆ getClassesFromDir()
getClassesFromDir |
( |
| $dir | ) |
|
|
staticprotected |
Get classes from dir.
- Аргументы
-
- Возвращает
- array
См. определение в файле hook.php строка 82
◆ getData()
getData |
( |
| $id, |
|
|
| $type, |
|
|
| $asIs = false ) |
|
static |
Get data by entity id ant type.
- Аргументы
-
int | $id | Entity id. |
string | $type | Entity type. |
boolean | $asIs | Return row as is. |
- Возвращает
- array
См. определение в файле hook.php строка 108
◆ getEditMode()
Returns edit mode state.
- Возвращает
- bool
См. определение в файле hook.php строка 314
◆ getForLanding()
Get hooks for landing.
- Аргументы
-
- Возвращает
- Page[]
См. определение в файле hook.php строка 348
◆ getForLandingRow()
Get row hooks for landing.
- Аргументы
-
- Возвращает
- array
См. определение в файле hook.php строка 372
◆ getForSite()
Get hooks for site.
- Аргументы
-
- Возвращает
- Page[]
См. определение в файле hook.php строка 324
◆ getList()
Get available hooks for this landing.
- Аргументы
-
int | $id | Entity id. |
string | $type | Entity type. |
array | $data | Data array (optional). |
- Возвращает
- Page[]
См. определение в файле hook.php строка 223
◆ indexContent()
indexContent |
( |
| $id, |
|
|
| $type ) |
|
staticprotected |
Index hook's content for entities.
- Аргументы
-
int | $id | Entity id. |
string | $type | Entity type. |
- Возвращает
- void
См. определение в файле hook.php строка 780
◆ indexLanding()
Index hook's content for landing.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 901
◆ prepareData()
prepareData |
( |
array | $data | ) |
|
|
staticprotected |
Prepare data for save in hooks.
- Аргументы
-
- Возвращает
- array
См. определение в файле hook.php строка 658
◆ publicationLanding()
publicationLanding |
( |
| $lid | ) |
|
|
static |
Publication data for landing.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 528
◆ publicationLandingWithSkipNeededPublication()
publicationLandingWithSkipNeededPublication |
( |
| $landingId | ) |
|
|
static |
In disable autobulication option we must skip hooks, then required page publication.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 548
◆ publicationSite()
publicationSite |
( |
| $siteId | ) |
|
|
static |
Publication data for site.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 518
◆ publicationSiteWithSkipNeededPublication()
publicationSiteWithSkipNeededPublication |
( |
| $siteId | ) |
|
|
static |
In disable autobulication option we must skip hooks, then required page publication.
- Аргументы
-
- Возвращает
- void
См. определение в файле hook.php строка 538
◆ publicationWithSkipNeededPublication()
publicationWithSkipNeededPublication |
( |
| $id, |
|
|
| $type ) |
|
staticprotected |
◆ saveData()
saveData |
( |
| $id, |
|
|
| $type, |
|
|
array | $data ) |
|
staticprotected |
Set data hooks for entity.
- Аргументы
-
int | $id | Entity id. |
string | $type | Entity type. |
array | $data | Data array. |
- Возвращает
- void
См. определение в файле hook.php строка 686
◆ saveForLanding()
saveForLanding |
( |
int | $id, |
|
|
array | $data ) |
|
static |
Get hooks for landing.
- Аргументы
-
int | $id | Landing id. |
array | $data | Data array. |
- Возвращает
- void
См. определение в файле hook.php строка 872
◆ saveForSite()
saveForSite |
( |
int | $id, |
|
|
array | $data ) |
|
static |
Set data hooks for site.
- Аргументы
-
int | $id | Site id. |
array | $data | Data array. |
- Возвращает
- void
См. определение в файле hook.php строка 843
◆ setEditMode()
setEditMode |
( |
bool | $mode = true | ) |
|
|
static |
Set edit mode to true.
- Аргументы
-
bool | $mode | Edit mode (true by default). |
- Возвращает
- void
См. определение в файле hook.php строка 305
◆ $editMode
◆ 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
Инициализатор= [
'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
Инициализатор= [
'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
Объявления и описания членов класса находятся в файле: