ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilCollectionInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use Countable;
24use ILIAS\Export\ImportStatus\I\Content\ilHandlerInterface as ilImportStatusContentHandlerInterface;
25use ILIAS\Export\ImportStatus\I\ilHandlerInterface as ilImportStatusHandlerInterface;
27use Iterator;
28
29interface ilCollectionInterface extends Iterator, Countable
30{
31 public function hasStatusType(StatusType $type): bool;
32
33 public function withAddedStatus(ilImportStatusHandlerInterface $import_status): ilCollectionInterface;
34
36
38
39 public function withNumberingEnabled(bool $enabled): ilCollectionInterface;
40
41 public function toString(StatusType ...$types): string;
42
43 public function mergeContentToElements(
44 ilImportStatusContentHandlerInterface $content,
45 bool $at_front = true
47
51 public function toArray(): array;
52
53 public function current(): ilImportStatusHandlerInterface;
54
55 public function next(): void;
56
57 public function key(): int;
58
59 public function valid(): bool;
60
61 public function rewind(): void;
62
63 public function count(): int;
64}
getMergedCollectionWith(ilCollectionInterface $other)
mergeContentToElements(ilImportStatusContentHandlerInterface $content, bool $at_front=true)
withAddedStatus(ilImportStatusHandlerInterface $import_status)