File modules/template_engine/element/CMSElement.class.php

Last commit: Sat Feb 22 22:23:01 2020 +0100	Jan Dankert	Refactoring: Enable Autoloading, Fix namespace structure.
1 <?php 2 3 4 namespace template_engine\element; 5 6 use template_engine\element\attribute\ConditionalAttribute; 7 8 class CMSElement extends HtmlElement 9 { 10 public function __construct( $name ) 11 { 12 parent::__construct( $name ); 13 } 14 15 public function addConditionalAttribute($name, $condition, $value ) { 16 $this->attributes[] = new ConditionalAttribute($condition,$name,$value); 17 return $this; 18 } 19 }
Download modules/template_engine/element/CMSElement.class.php
History Sat, 22 Feb 2020 22:23:01 +0100 Jan Dankert Refactoring: Enable Autoloading, Fix namespace structure. Sat, 22 Feb 2020 01:58:20 +0100 Jan Dankert New: Autoloading of classes in all modules.