|
static | addFilesToBlock (Block $block, array $data, Configuration\Structure $structure, bool $ignoreManifest=false) |
|
static | importBlock (LandingCore $landing, array $block, Configuration\Structure $structure, bool &$pending=false) |
|
static | isNeedImport (Event $event) |
|
static | prepareData (array $data) |
|
static | prepareBlocksData (array $data, Event $event) |
|
static | prepareAdditionalFiles (array $data, Configuration\Structure $structure) |
|
static | saveAdditionalFilesToLanding (array $data, $landingId) |
|
static | prepareAdditionalFields (array $data, array $additional, array $ratio=null) |
|
static | getAdditionalFieldsForReplaceByLanding (int $lid) |
|
static | mergeAdditionalFieldsForReplace (array $data, array $additionalFieldsSite) |
|
static | getAdditionalFieldsForReplace (array $additionalFields) |
|
static | saveAdditionalFieldsToLanding (array $data, int $landingId) |
|
Import landing from rest
См. определение в файле landing.php строка 26
◆ addFilesToBlock()
static addFilesToBlock |
( |
Block | $block, |
|
|
array | $data, |
|
|
Configuration\Structure | $structure, |
|
|
bool | $ignoreManifest = false ) |
|
staticprotected |
Checks files in update data and replace files paths.
- Аргументы
-
Block | $block | Block instance. |
array | $data | Data for passing to updateNodes. |
Configuration\Structure | $structure | Additional instance for unpacking files. |
bool | $ignoreManifest | Ignore manifest for detecting files. |
- Возвращает
- array
См. определение в файле landing.php строка 84
◆ getAdditionalFieldsForReplace()
static getAdditionalFieldsForReplace |
( |
array | $additionalFields | ) |
|
|
staticprotected |
Get additional fields, then need change when replace landing process
- Аргументы
-
array | $additionalFields | - common fields list |
- Возвращает
- array
См. определение в файле landing.php строка 1111
◆ getAdditionalFieldsForReplaceByLanding()
static getAdditionalFieldsForReplaceByLanding |
( |
int | $lid | ) |
|
|
staticprotected |
◆ getRepoId()
static getRepoId |
( |
string | $appCode, |
|
|
string | $xmlId ) |
|
static |
Finds repository block and return it id.
- Аргументы
-
string | $appCode | Application code. |
string | $xmlId | External id application. |
- Возвращает
- int|null
См. определение в файле landing.php строка 50
◆ importBlock()
static importBlock |
( |
LandingCore | $landing, |
|
|
array | $block, |
|
|
Configuration\Structure | $structure, |
|
|
bool & | $pending = false ) |
|
staticprotected |
Imports block in to the landing and returns it new id.
- Аргументы
-
LandingCore | $landing | Landing instance. |
array | $block | Block data. |
Configuration\Structure | $structure | Additional instance for unpacking files. |
bool | &$pending | This block in pending mode. |
- Возвращает
- int
См. определение в файле landing.php строка 239
◆ importLanding()
static importLanding |
( |
Event | $event | ) |
|
|
static |
Imports landing.
- Аргументы
-
Event | $event | Event instance. |
- Возвращает
- array|null
См. определение в файле landing.php строка 422
◆ isNeedImport()
static isNeedImport |
( |
Event | $event | ) |
|
|
staticprotected |
In some cases we don't need import current landing.
- Аргументы
-
- Возвращает
- bool - if false - need skip current page import
См. определение в файле landing.php строка 749
◆ mergeAdditionalFieldsForReplace()
static mergeAdditionalFieldsForReplace |
( |
array | $data, |
|
|
array | $additionalFieldsSite ) |
|
staticprotected |
If replace landing - need replace hooks for page too. And for design - get settings from site
- Аргументы
-
array | $data | |
array | $additionalFieldsSite | |
- Возвращает
- array
См. определение в файле landing.php строка 1091
◆ prepareAdditionalFields()
static prepareAdditionalFields |
( |
array | $data, |
|
|
array | $additional, |
|
|
array | $ratio = null ) |
|
staticprotected |
Prepare hooks and settings by additional fields
- Аргументы
-
array | $data | - base params |
array | $additional | - additional data |
array | null | $ratio | - previously import data. If empty - it is single page in existing site |
- Возвращает
- array
См. определение в файле landing.php строка 1018
◆ prepareAdditionalFiles()
static prepareAdditionalFiles |
( |
array | $data, |
|
|
Configuration\Structure | $structure ) |
|
staticprotected |
Processing additional data, then contains files
- Аргументы
-
array | $data | |
Configuration\Structure | $structure | |
- Возвращает
- array
См. определение в файле landing.php строка 964
◆ prepareBlocksData()
static prepareBlocksData |
( |
array | $data, |
|
|
Event | $event ) |
|
staticprotected |
◆ prepareData()
static prepareData |
( |
array | $data | ) |
|
|
staticprotected |
◆ replaceLanding()
static replaceLanding |
( |
Event | $event | ) |
|
|
static |
No create new page, but replace blocks in current landing
- Аргументы
-
- Возвращает
- array|null
См. определение в файле landing.php строка 585
◆ saveAdditionalFieldsToLanding()
static saveAdditionalFieldsToLanding |
( |
array | $data, |
|
|
int | $landingId ) |
|
staticprotected |
◆ saveAdditionalFilesToLanding()
static saveAdditionalFilesToLanding |
( |
array | $data, |
|
|
| $landingId ) |
|
staticprotected |
Save hook files to landing
- Аргументы
-
- Возвращает
- void
См. определение в файле landing.php строка 997
◆ saveDataToBlock()
static saveDataToBlock |
( |
Block | $blockInstance, |
|
|
array | $block ) |
|
static |
Save new data to the block.
- Аргументы
-
Block | $blockInstance | Block instance. |
array | $block | Block data. |
См. определение в файле landing.php строка 143
◆ setForceAppendRestBlocks()
static setForceAppendRestBlocks |
( |
bool | $mode | ) |
|
|
static |
Sets local variable to force append REST blocks into the repository.
- Аргументы
-
- Возвращает
- void
См. определение в файле landing.php строка 39
◆ $forceAppendRestBlocks
$forceAppendRestBlocks = true |
|
staticprotected |