PHP Класс PHPePub\Core\Structure\Opf

Автор: A. Grandt ([email protected])
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$date
$guide Guide
$manifest Manifest
$metadata Metadata
$namespaces
$prefixes
$spine Spine

Открытые методы

Метод Описание
__construct ( string $ident = "BookId", string $bookVersion = EPub::BOOK_VERSION_EPUB2 ) Class constructor.
__destruct ( ) : void Class destructor
addColaborator ( string $name, string $fileAs = null, string $role = null ) Enter description here .
addCreator ( string $name, string $fileAs = null, string $role = null ) Enter description here .
addDCMeta ( string $name, string $value ) Enter description here .
addItem ( string $id, string $href, string $mediaType, string $properties = null ) Enter description here .
addItemRef ( string $idref, boolean $linear = true ) Enter description here .
addMeta ( string $name, string $content ) Add a meta value to the metadata.
addMetaProperty ( string $name, string $content ) Add a Meta property value to the metadata
addMetaValue ( PHPePub\Core\Structure\OPF\MetaValue $value )
addNamespace ( string $nsName, string $nsURI )
addPrefix ( string $name, string $URI )
addReference ( string $type, string $title, string $href ) Enter description here .
finalize ( ) : string Enter description here .
getItemByHref ( string $href, boolean $startsWith = false ) : boolean | array | Item
getItemById ( string $id ) : boolean | Item
initialize ( string $title, string $language, string $identifier, string $identifierScheme ) Enter description here .
isEPubVersion2 ( )
setIdent ( string $ident = "BookId" ) Enter description here .
setVersion ( $bookVersion ) Enter description here .

Описание методов

__construct() публичный Метод

Class constructor.
public __construct ( string $ident = "BookId", string $bookVersion = EPub::BOOK_VERSION_EPUB2 )
$ident string
$bookVersion string

__destruct() публичный Метод

Class destructor
public __destruct ( ) : void
Результат void

addColaborator() публичный Метод

..
public addColaborator ( string $name, string $fileAs = null, string $role = null )
$name string
$fileAs string
$role string Use the MarcCode constants

addCreator() публичный Метод

..
public addCreator ( string $name, string $fileAs = null, string $role = null )
$name string
$fileAs string
$role string Use the MarcCode constants

addDCMeta() публичный Метод

..
public addDCMeta ( string $name, string $value )
$name string
$value string

addItem() публичный Метод

..
public addItem ( string $id, string $href, string $mediaType, string $properties = null )
$id string
$href string
$mediaType string
$properties string

addItemRef() публичный Метод

..
public addItemRef ( string $idref, boolean $linear = true )
$idref string
$linear boolean

addMeta() публичный Метод

Meta values in the metadata looks like:
public addMeta ( string $name, string $content )
$name string
$content string

addMetaProperty() публичный Метод

Properties in the metadata looks like: value Remember to add the namespace as well.
public addMetaProperty ( string $name, string $content )
$name string property name, including the namespace declaration, ie. "dcterms:modified"
$content string

addMetaValue() публичный Метод

public addMetaValue ( PHPePub\Core\Structure\OPF\MetaValue $value )
$value PHPePub\Core\Structure\OPF\MetaValue

addNamespace() публичный Метод

public addNamespace ( string $nsName, string $nsURI )
$nsName string
$nsURI string

addPrefix() публичный Метод

public addPrefix ( string $name, string $URI )
$name string
$URI string

addReference() публичный Метод

..
public addReference ( string $type, string $title, string $href )
$type string
$title string
$href string

finalize() публичный Метод

..
public finalize ( ) : string
Результат string

getItemByHref() публичный Метод

public getItemByHref ( string $href, boolean $startsWith = false ) : boolean | array | Item
$href string
$startsWith boolean
Результат boolean | array | PHPePub\Core\Structure\OPF\Item Item if the href is found, else FALSE. If $startsWith is true, the returned object will be an array if any are found.

getItemById() публичный Метод

public getItemById ( string $id ) : boolean | Item
$id string
Результат boolean | PHPePub\Core\Structure\OPF\Item Item if the id is found, else FALSE

initialize() публичный Метод

..
public initialize ( string $title, string $language, string $identifier, string $identifierScheme )
$title string
$language string
$identifier string
$identifierScheme string

isEPubVersion2() публичный Метод

public isEPubVersion2 ( )

setIdent() публичный Метод

..
public setIdent ( string $ident = "BookId" )
$ident string

setVersion() публичный Метод

..
public setVersion ( $bookVersion )
$bookVersion

Описание свойств

$date публичное свойство

public $date

$guide публичное свойство

Guide
public $guide

$manifest публичное свойство

Manifest
public $manifest

$metadata публичное свойство

Metadata
public $metadata

$namespaces публичное свойство

public $namespaces

$prefixes публичное свойство

public $prefixes

$spine публичное свойство

Spine
public $spine