Lines Matching refs:block_id

77      * @param int                  $block_id
83 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument
86 $default_start = (bool) $this->getBlockSetting($block_id, 'start');
87 $filter_links = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL);
88 $controls = $this->getBlockSetting($block_id, 'controls', '1');
92 … $this->getBlockSetting($block_id, 'filter_audio', '0') ? SourceMediaType::VALUE_AUDIO : null,
93 … $this->getBlockSetting($block_id, 'filter_book', '1') ? SourceMediaType::VALUE_BOOK : null,
94 … $this->getBlockSetting($block_id, 'filter_card', '1') ? SourceMediaType::VALUE_CARD : null,
95 …$this->getBlockSetting($block_id, 'filter_certificate', '1') ? SourceMediaType::VALUE_CERTIFICATE …
96 … $this->getBlockSetting($block_id, 'filter_coat', '1') ? SourceMediaType::VALUE_COAT : null,
97 …$this->getBlockSetting($block_id, 'filter_document', '1') ? SourceMediaType::VALUE_DOCUMENT : null,
98 …$this->getBlockSetting($block_id, 'filter_electronic', '1') ? SourceMediaType::VALUE_ELECTRONIC : …
99 … $this->getBlockSetting($block_id, 'filter_fiche', '1') ? SourceMediaType::VALUE_FICHE : null,
100 … $this->getBlockSetting($block_id, 'filter_film', '1') ? SourceMediaType::VALUE_FILM : null,
101 …$this->getBlockSetting($block_id, 'filter_magazine', '1') ? SourceMediaType::VALUE_MAGAZINE : null,
102 …$this->getBlockSetting($block_id, 'filter_manuscript', '1') ? SourceMediaType::VALUE_MANUSCRIPT : …
103 … $this->getBlockSetting($block_id, 'filter_map', '1') ? SourceMediaType::VALUE_MAP : null,
104 …$this->getBlockSetting($block_id, 'filter_newspaper', '1') ? SourceMediaType::VALUE_NEWSPAPER : nu…
105 … $this->getBlockSetting($block_id, 'filter_other', '1') ? SourceMediaType::VALUE_OTHER : null,
106 …$this->getBlockSetting($block_id, 'filter_painting', '1') ? SourceMediaType::VALUE_PAINTING : null,
107 … $this->getBlockSetting($block_id, 'filter_photo', '1') ? SourceMediaType::VALUE_PHOTO : null,
108 …$this->getBlockSetting($block_id, 'filter_tombstone', '1') ? SourceMediaType::VALUE_TOMBSTONE : nu…
109 … $this->getBlockSetting($block_id, 'filter_video', '0') ? SourceMediaType::VALUE_VIDEO : null,
163 'block_id' => $block_id,
181 'id' => $block_id,
182 'config_url' => $this->configUrl($tree, $context, $block_id),
238 * @param int $block_id
242 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument
244 … $this->setBlockSetting($block_id, 'filter', Validator::parsedBody($request)->string('filter'));
245 …$this->setBlockSetting($block_id, 'controls', Validator::parsedBody($request)->string('controls'));
246 … $this->setBlockSetting($block_id, 'start', Validator::parsedBody($request)->string('start'));
247 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_AUDIO), (string) V…
248 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_BOOK), (string) Va…
249 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_CARD), (string) Va…
250 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_CERTIFICATE), (str…
251 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_COAT), (string) Va…
252 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_DOCUMENT), (string…
253 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_ELECTRONIC), (stri…
254 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_FICHE), (string) V…
255 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_FILM), (string) Va…
256 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_MAGAZINE), (string…
257 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_MANUSCRIPT), (stri…
258 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_MAP), (string) Val…
259 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_NEWSPAPER), (strin…
260 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_OTHER), (string) V…
261 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_PAINTING), (string…
262 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_PHOTO), (string) V…
263 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_TOMBSTONE), (strin…
264 …$this->setBlockSetting($block_id, 'filter_' . strtolower(SourceMediaType::VALUE_VIDEO), (string) V…
271 * @param int $block_id
275 public function editBlockConfiguration(Tree $tree, int $block_id): string argument
277 $filter = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL);
278 $controls = $this->getBlockSetting($block_id, 'controls', '1');
279 $start = $this->getBlockSetting($block_id, 'start', '0');
282 … SourceMediaType::VALUE_AUDIO => $this->getBlockSetting($block_id, 'filter_audio', '0'),
283 … SourceMediaType::VALUE_BOOK => $this->getBlockSetting($block_id, 'filter_book', '1'),
284 … SourceMediaType::VALUE_CARD => $this->getBlockSetting($block_id, 'filter_card', '1'),
285 …SourceMediaType::VALUE_CERTIFICATE => $this->getBlockSetting($block_id, 'filter_certificate', '1'),
286 … SourceMediaType::VALUE_COAT => $this->getBlockSetting($block_id, 'filter_coat', '1'),
287 … SourceMediaType::VALUE_DOCUMENT => $this->getBlockSetting($block_id, 'filter_document', '1'),
288 … SourceMediaType::VALUE_ELECTRONIC => $this->getBlockSetting($block_id, 'filter_electronic', '1'),
289 … SourceMediaType::VALUE_FICHE => $this->getBlockSetting($block_id, 'filter_fiche', '1'),
290 … SourceMediaType::VALUE_FILM => $this->getBlockSetting($block_id, 'filter_film', '1'),
291 … SourceMediaType::VALUE_MAGAZINE => $this->getBlockSetting($block_id, 'filter_magazine', '1'),
292 … SourceMediaType::VALUE_MANUSCRIPT => $this->getBlockSetting($block_id, 'filter_manuscript', '1'),
293 … SourceMediaType::VALUE_MAP => $this->getBlockSetting($block_id, 'filter_map', '1'),
294 … SourceMediaType::VALUE_NEWSPAPER => $this->getBlockSetting($block_id, 'filter_newspaper', '1'),
295 … SourceMediaType::VALUE_OTHER => $this->getBlockSetting($block_id, 'filter_other', '1'),
296 … SourceMediaType::VALUE_PAINTING => $this->getBlockSetting($block_id, 'filter_painting', '1'),
297 … SourceMediaType::VALUE_PHOTO => $this->getBlockSetting($block_id, 'filter_photo', '1'),
298 … SourceMediaType::VALUE_TOMBSTONE => $this->getBlockSetting($block_id, 'filter_tombstone', '1'),
299 … SourceMediaType::VALUE_VIDEO => $this->getBlockSetting($block_id, 'filter_video', '0'),