Ejemplo n.º 1
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->properties['docbookVisitor'] = 'ezcDocumentRstDocbookVisitor';
     $this->properties['xhtmlVisitor'] = 'ezcDocumentRstXhtmlVisitor';
     $this->properties['xhtmlVisitorOptions'] = new ezcDocumentHtmlConverterOptions();
     parent::__construct($options);
 }
Ejemplo n.º 2
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->hyphenator = new ezcDocumentPdfDefaultHyphenator();
     // @TODO: There might be a better default:
     $this->driver = new ezcDocumentPdfHaruDriver();
     parent::__construct($options);
 }
Ejemplo n.º 3
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->height = '15mm';
     $this->footer = true;
     $this->showDocumentTitle = true;
     $this->showDocumentAuthor = true;
     $this->showPageNumber = true;
     $this->pageNumberOffset = 0;
     $this->centerPageNumber = false;
     parent::__construct($options);
 }
Ejemplo n.º 4
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->hyphenator = new ezcDocumentPdfDefaultHyphenator();
     $this->tokenizer = new ezcDocumentPdfDefaultTokenizer();
     $this->tableColumnWidthCalculator = new ezcDocumentPdfDefaultTableColumnWidthCalculator();
     $this->compress = false;
     $this->permissions = -1;
     $this->ownerPassword = null;
     $this->userPassword = null;
     $this->properties['driver'] = null;
     parent::__construct($options);
 }
Ejemplo n.º 5
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->properties['tags'] = new ArrayObject();
     $this->properties['tags']['b'] = new ezcDocumentBBCodeEmphasisPlugin();
     $this->properties['tags']['i'] = new ezcDocumentBBCodeEmphasisPlugin();
     $this->properties['tags']['u'] = new ezcDocumentBBCodeEmphasisPlugin();
     $this->properties['tags']['size'] = new ezcDocumentBBCodeNoMarkupPlugin();
     $this->properties['tags']['color'] = new ezcDocumentBBCodeNoMarkupPlugin();
     $this->properties['tags']['quote'] = new ezcDocumentBBCodeQuotePlugin();
     $this->properties['tags']['url'] = new ezcDocumentBBCodeUrlPlugin();
     $this->properties['tags']['email'] = new ezcDocumentBBCodeEmailPlugin();
     $this->properties['tags']['img'] = new ezcDocumentBBCodeImagePlugin();
     parent::__construct($options);
 }
Ejemplo n.º 6
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->properties['tokenizer'] = new ezcDocumentWikiCreoleTokenizer();
     parent::__construct($options);
 }
Ejemplo n.º 7
0
 /**
  * Constructs an object with the specified values.
  *
  * @throws ezcBasePropertyNotFoundException
  *         if $options contains a property not defined
  * @throws ezcBaseValueException
  *         if $options contains a property with a value not allowed
  * @param array(string=>mixed) $options
  */
 public function __construct(array $options = array())
 {
     $this->indentXml = false;
     $this->failOnError = true;
     parent::__construct($options);
 }