openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

CMSElement.class.php (387B)


      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 }