trait HandleBlocks (View source)

Properties

static protected $hasRelatedTableCache

Methods

Model|null
hydrateHandleBlocks(Model $object, array $fields, int $fakeBlockId = 0, int|null $parentId = null, Collection|null $blocksFromFields = null, Collection|null $mainCollection = null)

No description

getChildrenBlocks($blocks, $blockRepository, $parentId, $fakeBlockId, $mainCollection)

No description

void
afterSaveHandleBlocks(Model $object, array $fields)

No description

array
getFormFieldsHandleBlocks(Model $object, array $fields)

No description

array
getBlockBrowsers(Block $block)

No description

bool
hasRelatedTable()

No description

Details

Model|null hydrateHandleBlocks(Model $object, array $fields, int $fakeBlockId = 0, int|null $parentId = null, Collection|null $blocksFromFields = null, Collection|null $mainCollection = null)

No description

Parameters

Model $object
array $fields
int $fakeBlockId
int|null $parentId
Collection|null $blocksFromFields
Collection|null $mainCollection

Return Value

Model|null

protected getChildrenBlocks($blocks, $blockRepository, $parentId, $fakeBlockId, $mainCollection)

No description

Parameters

$blocks
$blockRepository
$parentId
$fakeBlockId
$mainCollection

void afterSaveHandleBlocks(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

void

array getFormFieldsHandleBlocks(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

array

protected array getBlockBrowsers(Block $block)

No description

Parameters

Block $block

Return Value

array

protected bool hasRelatedTable()

No description

Return Value

bool