PATH:
home
/
centosnipponia
/
public_html
/
apptt
/
vendor
/
dompdf
/
dompdf
/
src
<?php /** * @package dompdf * @link https://github.com/dompdf/dompdf * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License */ namespace Dompdf; /** * Embeds Javascript into the PDF document * * @package dompdf */ class JavascriptEmbedder { /** * @var Dompdf */ protected $_dompdf; /** * JavascriptEmbedder constructor. * * @param Dompdf $dompdf */ public function __construct(Dompdf $dompdf) { $this->_dompdf = $dompdf; } /** * @param $script */ public function insert($script) { $this->_dompdf->getCanvas()->javascript($script); } /** * @param Frame $frame */ public function render(Frame $frame) { if (!$this->_dompdf->getOptions()->getIsJavascriptEnabled()) { return; } $this->insert($frame->get_node()->nodeValue); } }
[+]
..
[+]
Adapter
[-] Canvas.php
[edit]
[-] CanvasFactory.php
[edit]
[-] Cellmap.php
[edit]
[+]
Css
[-] Dompdf.php
[edit]
[-] Exception.php
[edit]
[+]
Exception
[-] FontMetrics.php
[edit]
[-] Frame.php
[edit]
[+]
Frame
[+]
FrameDecorator
[+]
FrameReflower
[-] Helpers.php
[edit]
[+]
Image
[-] JavascriptEmbedder.php
[edit]
[-] LineBox.php
[edit]
[-] Options.php
[edit]
[-] PhpEvaluator.php
[edit]
[+]
Positioner
[-] Renderer.php
[edit]
[+]
Renderer
[-] .htaccess.disabled
[edit]