PressBooks\Modules\Import\Epub\Epub201::getOpf PHP Метод

getOpf() защищенный Метод

Return book.opf as a SimpleXML object
protected getOpf ( ) : SimpleXMLElement
Результат SimpleXMLElement
    protected function getOpf()
    {
        $containerXml = $this->getZipContent('META-INF/container.xml');
        $contentPath = $containerXml->rootfiles->rootfile['full-path'];
        $base = dirname($contentPath);
        if ('.' != $base) {
            $this->basedir = "{$base}/";
        }
        return $this->getZipContent($contentPath);
    }