15 parent::__construct(
$identifier,
"div", $baseClass);
16 $this->content=array();
23 $this->content[
"icon"]=
new HtmlIcon(
"icon-".$this->identifier, $icon);
27 if(isset($this->content[
"icon"]))
28 unset($this->content[
"icon"]);
33 $image=
new HtmlImg(
"icon-".$this->identifier, $image);
35 $this->content[
"image"]=$image;
38 private function _getContent($key=
"content",$baseClass=
"content"){
39 if(!is_array($this->content)){
42 if(\array_key_exists($key, $this->content)===
false){
45 return $this->content[$key];
49 return $this->
_getContent(
"right-content",
"right floated content");
62 public function setTitle($title,$description=NULL,$baseClass=
"title"){
66 if(isset($description)){
73 public function getPart($partName=
"header"){
89 public function asLink($href=NULL,$part=NULL){
105 return parent::compile($js, $view);
asLink($href=NULL, $part=NULL)
getElementByPropertyValue($propertyName, $value, $elements)
addRightContent($content, $before=false)
__construct($identifier, $baseClass, $content=NULL)
setProperty($name, $value)
addContent($content, $before=false)
removePropertyValue($name, $value)
getPart($partName="header")
Base class for Semantic double elements.
_getContent($key="content", $baseClass="content")
static isAssociative($array)
setTitle($title, $description=NULL, $baseClass="title")
compile(JsUtils $js=NULL, &$view=NULL)
addToPropertyCtrl($name, $value, $typeCtrl)
static sortAssociative($array, $sortedKeys=array())