Pressbooks\Modules\Export\Prince\Pdf::__construct PHP Method

__construct() public method

public __construct ( array $args )
$args array
    function __construct(array $args)
    {
        // Some defaults
        if (!defined('PB_PRINCE_COMMAND')) {
            define('PB_PRINCE_COMMAND', '/usr/bin/prince');
        }
        $this->exportStylePath = $this->getExportStylePath('prince');
        $this->exportScriptPath = $this->getExportScriptPath('prince');
        $this->pdfProfile = $this->getPdfProfile();
        $this->pdfOutputIntent = $this->getPdfOutputIntent();
        // Set the access protected "format/xhtml" URL with a valid timestamp and NONCE
        $timestamp = time();
        $md5 = $this->nonce($timestamp);
        $this->url = home_url() . "/format/xhtml?timestamp={$timestamp}&hashkey={$md5}";
        $this->themeOptionsOverrides();
    }