-
Notifications
You must be signed in to change notification settings - Fork 454
/
Entry.php
40 lines (32 loc) · 954 Bytes
/
Entry.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Concrete\Core\Application\UserInterface\Sitemap\TreeCollection\Entry;
use Concrete\Core\Entity\Site\Locale;
use HtmlObject\Element;
abstract class Entry implements EntryInterface
{
protected $isSelected = false;
abstract public function getIconElement();
/**
* @return boolean
*/
public function isSelected()
{
return $this->isSelected;
}
/**
* @param boolean $isSelected
*/
public function setIsSelected($isSelected)
{
$this->isSelected = $isSelected;
}
public function getOptionElement()
{
$element = new Element('div', null, ['class' => 'ccm-sitemap-tree-selector-option']);
if ($this->getIconElement()) {
$element->appendChild($this->getIconElement());
}
$element->appendChild(new Element('span', h($this->getLabel()), ['class' => 'ccm-sitemap-tree-menu-label']));
return $element;
}
}