| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Framework extends \Formularium\Framework |
||
| 8 | { |
||
| 9 | public function __construct(string $name = 'Buefy') |
||
| 10 | { |
||
| 11 | parent::__construct($name); |
||
| 12 | } |
||
| 13 | |||
| 14 | public function htmlHead(HTMLElement &$head) |
||
| 15 | { |
||
| 16 | $head->appendContent( |
||
| 17 | HTMLElement::factory('meta', ['name' => "viewport", 'content' => "width=device-width, initial-scale=1"]) |
||
| 18 | )->appendContent( |
||
| 19 | HTMLElement::factory( |
||
| 20 | 'link', |
||
| 21 | [ |
||
| 22 | 'rel' => "stylesheet", |
||
| 23 | 'href' => "https://unpkg.com/buefy/dist/buefy.min.css", |
||
| 24 | ] |
||
| 25 | ) |
||
| 26 | )->appendContent( |
||
| 27 | HTMLElement::factory( |
||
| 28 | 'script', |
||
| 29 | [ |
||
| 30 | 'src' => "https://unpkg.com/buefy/dist/buefy.min.js", |
||
| 31 | ] |
||
| 32 | ) |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function viewableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string |
||
| 37 | { |
||
| 38 | return $previousCompose; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose): string |
||
| 44 | } |
||
| 45 | } |
||
| 46 |