Ejemplo n.º 1
0
 public function __construct($document)
 {
     foreach ($document->_custom as $customTag) {
         // Restore azrul system plugin
         if (strstr($customTag, 'plugins/system/pc_includes')) {
             $this->addCustomTag($customTag);
         }
     }
     $this->setMetaData('viewport', 'width=device-width, initial-scale=1, user-scalable=no');
     parent::__construct();
 }
Ejemplo n.º 2
0
 /**
  * Class constructore
  * @param       array   $options Associative array of options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     //set mime type
     $this->_mime = 'application/pdf';
     //set document type
     $this->_type = 'pdf';
     if (!$this->iniDomPdf()) {
         JError::raiseError(500, 'No PDF lib found');
     }
 }
Ejemplo n.º 3
0
 /**
  * Class constructor
  *
  * @param   array $options Associative array of attributes
  *
  * @since   11.1
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     // Set mime type
     $this->_mime = 'text/html';
     // Set document type
     $this->_type = 'html';
     $doc = \JFactory::getDocument();
     $this->_scripts = $doc->_scripts;
     $this->_styleSheets = $doc->_styleSheets;
     $version = new \JVersion();
     $this->mediaVersion = $version->getMediaVersion();
 }
Ejemplo n.º 4
0
 /**
  * Class constructor
  *
  * @param   array  $options  Associative array of options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $config = JComponentHelper::getParams('com_fabrik');
     if ($config->get('pdf_debug', false)) {
         $this->setMimeEncoding('text/html');
         $this->_type = 'html';
     } else {
         // Set mime type
         $this->_mime = 'application/pdf';
         // Set document type
         $this->_type = 'pdf';
     }
     if (!$this->iniDomPdf()) {
         throw new RuntimeException(FText::_('COM_FABRIK_ERR_NO_PDF_LIB_FOUND'), 500);
     }
 }
Ejemplo n.º 5
0
 /**
  * Class constructor
  *
  * @access protected
  * @param   array	$options Associative array of options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     //set document type
     $this->_type = 'partial';
 }