Home
last modified time | relevance | path

Searched refs:ModuleBlockInterface (Results 1 – 25 of 55) sorted by relevance

123

/webtrees/app/Services/
H A DHomePageService.php26 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
56 * @return ModuleBlockInterface
58 public function treeBlock(ServerRequestInterface $request): ModuleBlockInterface
72 if ($module instanceof ModuleBlockInterface) {
86 * @return ModuleBlockInterface
88 …blic function userBlock(ServerRequestInterface $request, UserInterface $user): ModuleBlockInterface
101 if ($module instanceof ModuleBlockInterface) {
115 * @return ModuleBlockInterface
117 public function getBlockModule(Tree $tree, int $block_id): ModuleBlockInterface
119 …$active_blocks = $this->module_service->findByComponent(ModuleBlockInterface::class, $tree, Auth::…
[all …]
/webtrees/app/Http/RequestHandlers/
H A DTreePageUpdate.php22 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
63 …ocks = $this->home_page_service->treeBlocks($default_tree, $user, ModuleBlockInterface::MAIN_BLOCK…
64 ->map(static fn (ModuleBlockInterface $block) => $block->name());
65 …ocks = $this->home_page_service->treeBlocks($default_tree, $user, ModuleBlockInterface::SIDE_BLOCK…
66 ->map(static fn (ModuleBlockInterface $block) => $block->name());
68 …in_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::MAIN_BLOCK…
69 …de_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::SIDE_BLOCK…
H A DUserPageUpdate.php22 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
64 ->userBlocks($default_tree, $user, ModuleBlockInterface::MAIN_BLOCKS)
65 ->map(static fn (ModuleBlockInterface $block) => $block->name());
67 ->userBlocks($default_tree, $user, ModuleBlockInterface::SIDE_BLOCKS)
68 ->map(static fn (ModuleBlockInterface $block) => $block->name());
70 …in_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::MAIN_BLOCK…
71 …de_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::SIDE_BLOCK…
H A DModulesBlocksAction.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
43 $this->updateStatus(ModuleBlockInterface::class, $request);
44 $this->updateAccessLevel(ModuleBlockInterface::class, $request);
H A DUserPageDefaultUpdate.php22 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
55 …$main_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::MAIN_BL…
56 …$side_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::SIDE_BL…
H A DTreePageDefaultUpdate.php22 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
55 …$main_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::MAIN_BL…
56 …$side_blocks = new Collection(Validator::parsedBody($request)->array(ModuleBlockInterface::SIDE_BL…
H A DTreePageEdit.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
60 …$main_blocks = $this->home_page_service->treeBlocks($tree, $user, ModuleBlockInterface::MAIN_BLOCK…
61 …$side_blocks = $this->home_page_service->treeBlocks($tree, $user, ModuleBlockInterface::SIDE_BLOCK…
H A DUserPageDefaultEdit.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
65 …this->home_page_service->userBlocks($default_tree, $default_user, ModuleBlockInterface::MAIN_BLOCK…
66 …this->home_page_service->userBlocks($default_tree, $default_user, ModuleBlockInterface::SIDE_BLOCK…
H A DTreePageDefaultEdit.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
65 …this->home_page_service->treeBlocks($default_tree, $default_user, ModuleBlockInterface::MAIN_BLOCK…
66 …this->home_page_service->treeBlocks($default_tree, $default_user, ModuleBlockInterface::SIDE_BLOCK…
H A DUserPageEdit.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
59 …$main_blocks = $this->home_page_service->userBlocks($tree, $user, ModuleBlockInterface::MAIN_BLOCK…
60 …$side_blocks = $this->home_page_service->userBlocks($tree, $user, ModuleBlockInterface::SIDE_BLOCK…
H A DTreePage.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
82 …locks' => $this->home_page_service->treeBlocks($tree, $user, ModuleBlockInterface::MAIN_BLOCK…
83 …locks' => $this->home_page_service->treeBlocks($tree, $user, ModuleBlockInterface::SIDE_BLOCK…
H A DUserPage.php25 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
81 …ain_blocks' => $this->home_page_service->userBlocks($tree, $user, ModuleBlockInterface::MAIN_BLOCK…
82 …ide_blocks' => $this->home_page_service->userBlocks($tree, $user, ModuleBlockInterface::SIDE_BLOCK…
H A DModulesBlocksPage.php23 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
42 ModuleBlockInterface::class,
H A DTreePageBlock.php23 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
66 … 'content' => $module->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_TREE_PAGE),
H A DUserPageBlock.php23 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
68 … 'content' => $module->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_USER_PAGE),
H A DControlPanel.php29 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
181 …es_disabled' => $this->module_service->findByInterface(ModuleBlockInterface::class, tru…
182 …odules_enabled' => $this->module_service->findByInterface(ModuleBlockInterface::class),
/webtrees/resources/views/
H A Dtree-page-block.phtml6 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
10 * @var ModuleBlockInterface $block
20 <?= $block->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_TREE_PAGE) ?>
H A Duser-page-block.phtml6 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
10 * @var ModuleBlockInterface $block
20 <?= $block->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_USER_PAGE) ?>
H A Dedit-blocks-block.phtml6 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
9 * @var ModuleBlockInterface $block
/webtrees/app/Statistics/Repository/
H A DFavoritesRepository.php25 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
62 return $module->getBlock($this->tree, 0, ModuleBlockInterface::CONTEXT_EMBED);
78 return $module->getBlock($this->tree, 0, ModuleBlockInterface::CONTEXT_EMBED);
/webtrees/tests/app/Services/
H A DModuleServiceTest.php24 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
58 …self::assertNotEmpty($module_service->findByComponent(ModuleBlockInterface::class, $tree, $user)->…
71 … self::assertNotEmpty($module_service->findByInterface(ModuleBlockInterface::class, true)->all());
/webtrees/resources/views/modules/
H A Dedit-block-config.phtml6 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
10 * @var ModuleBlockInterface $block
/webtrees/app/Module/
H A DModuleBlockTrait.php91 if ($context === ModuleBlockInterface::CONTEXT_TREE_PAGE && Auth::isManager($tree)) {
98 if ($context === ModuleBlockInterface::CONTEXT_USER_PAGE && Auth::check()) {
H A DUserMessagesModule.php43 class UserMessagesModule extends AbstractModule implements ModuleBlockInterface
92 if ($context === ModuleBlockInterface::CONTEXT_USER_PAGE) {
/webtrees/app/Schema/
H A DMigration42.php23 use Fisharebest\Webtrees\Module\ModuleBlockInterface; alias
39 'block' => ModuleBlockInterface::class,

123