Last change
on this file since 347 was 347, checked in by roby, 3 years ago |
Aggiornamento per compatibilità con php7.4
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * Html2Pdf Library
|
---|
4 | *
|
---|
5 | * HTML => PDF converter
|
---|
6 | * distributed under the OSL-3.0 License
|
---|
7 | *
|
---|
8 | * @package Html2pdf
|
---|
9 | * @author Laurent MINGUET <webmaster@html2pdf.fr>
|
---|
10 | * @copyright 2017 Laurent MINGUET
|
---|
11 | */
|
---|
12 | namespace Spipu\Html2Pdf\Extension\Core;
|
---|
13 |
|
---|
14 | use Spipu\Html2Pdf\Extension\AbstractExtension;
|
---|
15 | use Spipu\Html2Pdf\Tag\Html;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Class HtmlExtension
|
---|
19 | */
|
---|
20 | class HtmlExtension extends AbstractExtension
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * {@inheritDoc}
|
---|
24 | */
|
---|
25 | public function getName()
|
---|
26 | {
|
---|
27 | return 'core_html';
|
---|
28 | }
|
---|
29 |
|
---|
30 | /**
|
---|
31 | * @inheritdoc
|
---|
32 | */
|
---|
33 | protected function initTags()
|
---|
34 | {
|
---|
35 | return array(
|
---|
36 | new Html\Address(),
|
---|
37 | new Html\B(),
|
---|
38 | new Html\Big(),
|
---|
39 | new Html\Bookmark(),
|
---|
40 | new Html\Cite(),
|
---|
41 | new Html\Del(),
|
---|
42 | new Html\Em(),
|
---|
43 | new Html\Font(),
|
---|
44 | new Html\I(),
|
---|
45 | new Html\Ins(),
|
---|
46 | new Html\Label(),
|
---|
47 | new Html\S(),
|
---|
48 | new Html\Samp(),
|
---|
49 | new Html\Small(),
|
---|
50 | new Html\Span(),
|
---|
51 | new Html\Strong(),
|
---|
52 | new Html\Sub(),
|
---|
53 | new Html\Sup(),
|
---|
54 | new Html\U(),
|
---|
55 | );
|
---|
56 | }
|
---|
57 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.