Pressbooks\Modules\Export\Epub\Epub201::createContainer PHP Method

createContainer() protected method

Create Open Publication Structure 2.0.1 container.
protected createContainer ( )
    protected function createContainer()
    {
        file_put_contents($this->tmpDir . '/mimetype', utf8_decode('application/epub+zip'));
        mkdir($this->tmpDir . '/META-INF');
        mkdir($this->tmpDir . '/OEBPS');
        mkdir($this->tmpDir . '/OEBPS/assets');
        file_put_contents($this->tmpDir . '/META-INF/container.xml', $this->loadTemplate($this->dir . '/templates/epub201/container.php'));
        file_put_contents($this->tmpDir . '/META-INF/com.apple.ibooks.display-options.xml', $this->loadTemplate($this->dir . '/templates/epub201/ibooks.php'));
    }