Example #1
0
 /**
  * Sets the FO o FO transformation StyleSheet. In case you might want to add
  * it to the config file sfExportGlobals.yml in 
  * step3: {XSLFO: {xslt_output: sheet: ~}}.
  * 
  * @see    %sf_plugins_dir%/NeatReports/config/sfExportGlobals.yml
  */
 public function __construct()
 {
     parent::__construct();
     $toFo = $this->_conf['step3']['XSLFO']['xslt_output']['sheet'];
     $toFo && ($this->_toFo = simplexml_load_file($this->_pluginDir . $toFo));
     $this->_structure = $this->_toFo;
 }
Example #2
0
 /**
  * Sets the FO o HTML transformation StyleSheet. It gets it from the config 
  * file sfExportGlobals.yml in: 
  * step3: {HTML: {xslt_output: sheet: ~}}.
  * 
  * @see    %sf_plugins_dir%/NeatReports/config/sfExportGlobals.yml
  */
 public function __construct()
 {
     parent::__construct();
     $toHtml = $this->_conf['step3']['HTML']['xslt_output']['sheet'];
     $toHtml && ($this->_toHtml = simplexml_load_file($this->_pluginDir . $toHtml));
     $this->_structure = $this->_toHtml;
 }
Example #3
0
 public function __construct()
 {
     $this->baseDirectory = 'renders/' . Season::getInstance()->nefub_id . '/' . date('Y') . '_wk' . date('W');
     parent::__construct();
     if (isset($_GET['clear']) && $_GET['clear'] == 1 && (isset($_GET['clearall']) && $_GET['clearall'] == 1)) {
         recursive_remove_directory($this->baseDirectory);
     }
 }
Example #4
0
 public function __construct(array $arguments)
 {
     parent::__construct();
     $this->arguments = $arguments;
     $this->subject = $arguments[1];
     $this->mode = $arguments[2];
     $this->editId = $arguments[3];
     $this->templateBaseDir = '/beheer';
     $this->assign('loggedIn', Account::getLoggedIn());
 }
 /**
  * Create a new Renderer, configuring its template directories
  * @param string|array $template_dirs A template directory or an array of potential directories
  */
 public function __construct($template_dirs, \Microsite\App $app)
 {
     parent::__construct($template_dirs, $app);
     #
     # Constructor function. Initialize appropriate member variables.
     #
     $this->_initDetab();
     $this->prepareItalicsAndBold();
     $this->nested_brackets_re = str_repeat('(?>[^\\[\\]]+|\\[', $this->nested_brackets_depth) . str_repeat('\\])*', $this->nested_brackets_depth);
     $this->nested_url_parenthesis_re = str_repeat('(?>[^()\\s]+|\\(', $this->nested_url_parenthesis_depth) . str_repeat('(?>\\)))*', $this->nested_url_parenthesis_depth);
     $this->escape_chars_re = '[' . preg_quote($this->escape_chars) . ']';
     # Sort document, block, and span gamut in ascendant priority order.
     asort($this->document_gamut);
     asort($this->block_gamut);
     asort($this->span_gamut);
 }
 /**
  * Configures This class. Sets fop Path.
  */
 public function __construct()
 {
     parent::__construct();
     $this->_fopPath = __DIR__ . '/RenderPDF/vendor/fop-1.1rc1/';
 }
 protected function __construct()
 {
     parent::__construct();
     array_shift($this->arguments);
 }
Example #8
0
 public function __construct($content)
 {
     parent::__construct();
     $this->content = $content;
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
 }
 /**
  * Should not be called directly but is public
  * since Renderer is public
  * 
  * @param core_kernel_classes_Resource $resource
  * @param core_kernel_classes_Property $property
  */
 public function __construct(core_kernel_classes_Resource $resource, core_kernel_classes_Property $property)
 {
     $tpl = Template::getTemplate('form' . DIRECTORY_SEPARATOR . 'generis_tree_form.tpl', 'tao');
     parent::__construct($tpl);
     $this->setData('id', 'uid' . md5($property->getUri() . $resource->getUri()));
     $this->setData('title', $property->getLabel());
     $this->setData('resourceUri', $resource->getUri());
     $this->setData('propertyUri', $property->getUri());
 }
Example #11
0
 /**
  * @param array $profiles
  */
 public function __construct(array $profiles)
 {
     $this->profiles = $profiles;
     parent::__construct([]);
 }