| @@ 614-623 (lines=10) @@ | ||
| 611 | * @param string $template |
|
| 612 | * @return void |
|
| 613 | */ |
|
| 614 | public function installTemplate($template) |
|
| 615 | { |
|
| 616 | $config = $this->templateConfig($template); |
|
| 617 | ||
| 618 | if ( isset($config['plugins']) && is_array($config['plugins'])) { |
|
| 619 | foreach($config['plugins'] as $plugin) { |
|
| 620 | $this->addPlugin($plugin); |
|
| 621 | } |
|
| 622 | } |
|
| 623 | } |
|
| 624 | ||
| 625 | /** |
|
| 626 | * Uninstall template configuration. |
|
| @@ 631-640 (lines=10) @@ | ||
| 628 | * @param string $template |
|
| 629 | * @return void |
|
| 630 | */ |
|
| 631 | public function uninstallTemplate($template) |
|
| 632 | { |
|
| 633 | $config = $this->templateConfig($template); |
|
| 634 | ||
| 635 | if ( isset($config['plugins']) && is_array($config['plugins'])) { |
|
| 636 | foreach($config['plugins'] as $plugin) { |
|
| 637 | $this->removePlugin($plugin); |
|
| 638 | } |
|
| 639 | } |
|
| 640 | } |
|
| 641 | ||
| 642 | /** |
|
| 643 | * Fetch a fields properties. |
|