File modules/cms/generator/dsl/DslTemplate.class.php

Last commit: Mon Jun 27 00:40:42 2022 +0200	Jan Dankert	New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts.
1 <?php 2 3 namespace cms\generator\dsl; 4 5 use cms\model\Template; 6 use dsl\context\BaseScriptableObject; 7 8 class DslTemplate extends BaseScriptableObject { 9 10 private $template; 11 12 public $name; 13 14 /** 15 * @param Template $template 16 */ 17 public function __construct($template) 18 { 19 $this->template = $template; 20 21 $this->name = $template->name; 22 } 23 24 25 public function elements() { 26 return array_map( function($element) { 27 return new DslElement( $element ); 28 },$this->template->getElements()); 29 } 30 }
Download modules/cms/generator/dsl/DslTemplate.class.php
History Mon, 27 Jun 2022 00:40:42 +0200 Jan Dankert New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts. Sat, 25 Jun 2022 14:26:33 +0200 Jan Dankert New: Many Enhancements for the internal script language: More access to the data structure of pages, folders, templates, ...