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