Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct(array $options = array())
 {
     if (!isset($options['title'])) {
         $options['title'] = '';
     }
     if (!isset($options['charset'])) {
         $options['charset'] = 'UTF-8';
     }
     if (!isset($options['yui'])) {
         $options['yui'] = TRUE;
     }
     if (!isset($options['highlight'])) {
         $options['highlight'] = FALSE;
     }
     if (!isset($options['lowUpperBound'])) {
         $options['lowUpperBound'] = 35;
     }
     if (!isset($options['highLowerBound'])) {
         $options['highLowerBound'] = 70;
     }
     if (!isset($options['generator'])) {
         $options['generator'] = '';
     }
     $this->options = $options;
     self::$templatePath = sprintf('%s%sHTML%sTemplate%s', dirname(__FILE__), DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR);
 }