Manifest
EPUB manifest structure
- Full name:
\SebLucas\EPubMeta\Data\Manifest
- This class implements:
\Iterator
,\Countable
,\ArrayAccess
Properties
items
Methods
createItem
Create and add an Item with the given properties.
public createItem(string $id, string $href, callable $callable, int $size, string|null $mediaType = null): \SebLucas\EPubMeta\Data\Item
Parameters:
Parameter | Type | Description |
---|---|---|
$id |
string | The identifier of the new item. |
$href |
string | The relative path of the referenced file in the EPUB. |
$callable |
callable | A callable to get data from the referenced file in the EPUB. |
$size |
int | The size of the referenced file in the EPUB. |
$mediaType |
string|null |
Return Value:
The newly created Item.
Throws:
If $id is already taken.
current
Return the current Item while iterating this Manifest.
See Also:
- http://php.net/manual/en/iterator.current.php -
next
Move forward to next Item while iterating this Manifest.
Return Value:
Any returned value is ignored.
See Also:
- http://php.net/manual/en/iterator.next.php -
key
Return the ID of the current Item while iterating this Manifest.
Return Value:
on success, or null on failure.
See Also:
- http://php.net/manual/en/iterator.key.php -
valid
Checks if current Iterator position is valid.
Return Value:
true on success or false on failure.
See Also:
- http://php.net/manual/en/iterator.valid.php -
rewind
Rewind the Iterator to the first element.
Return Value:
Any returned value is ignored.
See Also:
- http://php.net/manual/en/iterator.rewind.php -
first
Get the first Item of this Manifest.
last
Get the last Item of this Manifest.
count
Count items of this Manifest.
Return Value:
The number of Items contained in this Manifest.
See Also:
- https://php.net/manual/en/countable.count.php -
offsetExists
Whether a offset exists
Parameters:
Parameter | Type | Description |
---|---|---|
$offset |
string | An offset to check for. |
Return Value:
true on success or false on failure.
See Also:
- https://php.net/manual/en/arrayaccess.offsetexists.php -
offsetGet
Offset to retrieve
Parameters:
Parameter | Type | Description |
---|---|---|
$offset |
string | The offset to retrieve. |
See Also:
- https://php.net/manual/en/arrayaccess.offsetget.php -
offsetSet
Offset to set
Parameters:
Parameter | Type | Description |
---|---|---|
$offset |
mixed | The offset to assign the value to. |
$value |
mixed | The value to set. |
Throws:
See Also:
- https://php.net/manual/en/arrayaccess.offsetset.php -
offsetUnset
Offset to unset
Parameters:
Parameter | Type | Description |
---|---|---|
$offset |
mixed | The offset to unset. |
Throws:
See Also:
- https://php.net/manual/en/arrayaccess.offsetunset.php -
Automatically generated on 2025-03-18