/** * Creates a new image locator for the given $document. * * @param ezcDocument $document */ public function __construct(ezcDocument $document) { $this->paths[] = $document->getPath(); if (($workDir = getcwd()) !== false) { $this->paths[] = $workDir; } $this->paths[] = sys_get_temp_dir(); }
/** * Construct RST document. * * @ignore * @param ezcDocumentPdfOptions $options * @return void */ public function __construct(ezcDocumentPdfOptions $options = null) { parent::__construct($options === null ? new ezcDocumentPdfOptions() : $options); $this->styles = new ezcDocumentPcssStyleInferencer(); if ($this->options->driver === null) { $this->options->driver = new ezcDocumentPdfHaruDriver(); } }
/** * Construct RST document. * * @ignore * @param ezcDocumentWikiOptions $options * @return void */ public function __construct(ezcDocumentWikiOptions $options = null) { parent::__construct($options === null ? new ezcDocumentWikiOptions() : $options); }
/** * Construct RST document. * * @ignore * @param ezcDocumentPdfOptions $options * @return void */ public function __construct(ezcDocumentPdfOptions $options = null) { parent::__construct($options === null ? new ezcDocumentPdfOptions() : $options); $this->styles = new ezcDocumentPdfStyleInferencer(); }