示例#1
0
 /**
  * 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();
 }
示例#2
0
 /**
  * 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();
     }
 }
示例#3
0
文件: wiki.php 项目: bmdevel/ezc
 /**
  * Construct RST document.
  *
  * @ignore
  * @param ezcDocumentWikiOptions $options
  * @return void
  */
 public function __construct(ezcDocumentWikiOptions $options = null)
 {
     parent::__construct($options === null ? new ezcDocumentWikiOptions() : $options);
 }
示例#4
0
 /**
  * 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();
 }