for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ajax\semantic\html\content;
use Ajax\semantic\html\base\HtmlSemDoubleElement;
use Ajax\semantic\html\elements\HtmlIcon;
class HtmlListItem extends HtmlSemDoubleElement {
protected $image;
public function __construct($identifier,$content) {
parent::__construct($identifier, "div", "item");
$this->_template='<%tagName% id="%identifier%" %properties%>%image%%content%</%tagName%>';
$this->content=$content;
}
public function addIcon($icon){
$content=$this->content;
$this->content=new HtmlSemDoubleElement("content-".$this->identifier,"div","content");
$this->content->setContent($content);
$this->content->addContent(new HtmlIcon("icon".$this->identifier, $icon),true);