1 | <?php |
||
26 | class Base64ImageTwigExtension extends AbstractImageTwigExtension { |
||
27 | |||
28 | /** |
||
29 | * Service name. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.image.base64"; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | */ |
||
38 | public function __construct() { |
||
41 | |||
42 | /** |
||
43 | * Encode an URI into base 64. |
||
44 | * |
||
45 | * @param string $uri The URI. |
||
46 | * @return string Returns the URI encoded into base 64. |
||
47 | */ |
||
48 | private function base64Encode($uri) { |
||
74 | |||
75 | /** |
||
76 | * Displays a Bootstrap base 64 image. |
||
77 | * |
||
78 | * @param array $args The arguments. |
||
79 | * @return string Returns the Bootstrap base 64 image. |
||
80 | */ |
||
81 | public function bootstrapBase64ImageFunction(array $args = []) { |
||
89 | |||
90 | /** |
||
91 | * Get the Twig functions. |
||
92 | * |
||
93 | * @return array Returns the Twig functions. |
||
94 | */ |
||
95 | public function getFunctions() { |
||
100 | |||
101 | } |
||
102 |