These will still only show up as a single chapter in the book TOC.
public addChapter ( string $chapterName, string $fileName, string $chapterData = null, boolean $autoSplit = false, integer $externalReferences = EPub::EXTERNAL_REF_IGNORE, string $baseDir = "" ) : mixed | ||
$chapterName | string | Name of the chapter, will be use din the TOC |
$fileName | string | Filename to use for the chapter, must be unique for the book. |
$chapterData | string | Chapter text in XHTML or array $chapterData valid XHTML data for the chapter. File should NOT exceed 250kB. |
$autoSplit | boolean | Should the chapter be split if it exceeds the default split size? Default=FALSE, only used if $chapterData is a string. |
$externalReferences | integer | How to handle external references, EPub::EXTERNAL_REF_IGNORE, EPub::EXTERNAL_REF_ADD or EPub::EXTERNAL_REF_REMOVE_IMAGES? See documentation for processChapterExternalReferences for explanation. Default is EPub::EXTERNAL_REF_IGNORE. |
$baseDir | string | Default is "", meaning it is pointing to the document root. NOT used if $externalReferences is set to EPub::EXTERNAL_REF_IGNORE. |
리턴 | mixed | $success FALSE if the addition failed, else the new NavPoint. |