PHPePub\Core\EPub::addCustomPrefix PHP Method

addCustomPrefix() public method

Only supported on EPUB3 books.
public addCustomPrefix ( string $name, string $URI )
$name string
$URI string
    function addCustomPrefix($name, $URI)
    {
        if ($this->isFinalized) {
            return;
        }
        $this->opf->addPrefix($name, $URI);
    }

Usage Example

Example #1
0
 /**
  * Add iBooks prefix to the ePub book
  *
  * @param EPub $book
  */
 public static function addPrefix($book)
 {
     if (!$book->isEPubVersion2()) {
         $book->addCustomPrefix(self::RENDITION_PREFIX_NAME, self::RENDITION_PREFIX_URI);
     }
 }
All Usage Examples Of PHPePub\Core\EPub::addCustomPrefix