Spine
EPUB spine structure
- Full name:
\SebLucas\EPubMeta\Contents\Spine
- This class implements:
\Iterator
,\Countable
,\ArrayAccess
Properties
tocItem
tocFormat
items
Methods
__construct
Spine Constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
$tocItem |
\SebLucas\EPubMeta\Data\Item | The TOC Item of this Spine. |
$tocFormat |
string | The TOC Format of this Spine (Toc or Nav). |
getTocItem
Get the TOC Item of this Spine.
getTocFormat
Get the TOC Format of this Spine.
appendItem
Append an Item to this Spine.
Parameters:
Parameter | Type | Description |
---|---|---|
$item |
\SebLucas\EPubMeta\Data\Item | The Item to append to this Spine. |
current
Return the current Item while iterating this Spine.
See Also:
- http://php.net/manual/en/iterator.current.php -
next
Move forward to next Item while iterating this Spine.
Return Value:
Any returned value is ignored.
See Also:
- http://php.net/manual/en/iterator.next.php -
key
Return the index of the current Item while iterating this Spine.
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 Spine.
last
Get the last Item of this Spine.
count
Count items of this Spine.
Return Value:
The number of Items contained in this Spine.
See Also:
- https://php.net/manual/en/countable.count.php -
offsetExists
Whether a offset exists
Parameters:
Parameter | Type | Description |
---|---|---|
$offset |
int | 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 |
int | 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