PHP 클래스 PHPePub\Core\Structure\Opf

저자: A. Grandt ([email protected])
파일 보기 프로젝트 열기: grandt/phpepub

공개 프로퍼티들

프로퍼티 타입 설명
$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