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

__construct() public method

public __construct ( )
    function __construct()
    {
        // don't know who would actually wait for 10 minutes, but it's here
        set_time_limit(600);
        $memory_available = (int) ini_get('memory_limit');
        // lives and dies with the instantiation of the object
        if ($memory_available < $this->memoryNeeded) {
            ini_set('memory_limit', $this->memoryNeeded . 'M');
        }
        $this->options = get_option('pressbooks_theme_options_mpdf');
        $this->globalOptions = get_option('pressbooks_theme_options_global');
        $this->bookTitle = get_bloginfo('name');
        $this->exportStylePath = $this->getExportStylePath('mpdf');
        $this->bookMeta = \Pressbooks\Book::getBookInformation();
        $this->numbered = 1 == $this->globalOptions['chapter_numbers'] ? true : false;
    }