PHPePub\Core\EPub::addCustomMetaProperty PHP Method

addCustomMetaProperty() public method

Properties in the metadata looks like: value Remember to add the namespace as well.
public addCustomMetaProperty ( string $name, string $content )
$name string property name, including the namespace declaration, ie. "dcterms:modified"
$content string
    function addCustomMetaProperty($name, $content)
    {
        if ($this->isFinalized) {
            return;
        }
        $this->opf->addMetaProperty($name, $content);
    }

Usage Example

Beispiel #1
0
 /**
  * @param EPub   $book
  * @param string $value "landscape", "portrait" or "auto"
  */
 public static function setSpread($book, $value)
 {
     if (!$book->isEPubVersion2() && $value === self::SPREAD_NONE || $value === self::SPREAD_LANDSCAPE || $value === self::SPREAD_PORTRAIT || $value === self::SPREAD_BOTH || $value === self::SPREAD_AUTO) {
         $book->addCustomMetaProperty(self::RENDITION_SPREAD, $value);
     }
 }
All Usage Examples Of PHPePub\Core\EPub::addCustomMetaProperty