| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- /* * ********************************************************************
- * ProxmoxVps product developed. (Nov 19, 2018)
- * *
- *
- * CREATED BY MODULESGARDEN -> http://modulesgarden.com
- * CONTACT -> contact@modulesgarden.com
- *
- *
- * This software is furnished under a license and may be used and copied
- * only in accordance with the terms of such license and with the
- * inclusion of the above copyright notice. This software or any other
- * copies thereof may not be provided or otherwise made available to any
- * other person. No title to and ownership of the software is hereby
- * transferred.
- *
- *
- * ******************************************************************** */
- namespace ModulesGarden\Servers\ProxmoxVps\Core\UI\Widget\Sidebar;
- use ModulesGarden\Servers\ProxmoxVps\Core\UI\Builder\BaseContainer;
- /**
- * Description of Sidebar
- *
- * @author Pawel Kopec <pawelk@modulesgardne.com>
- */
- class SidebarItem extends BaseContainer
- {
- use SidebarTrait;
-
- public function __construct($id, $href = null, $order = null)
- {
- if ($href)
- {
- $this->setHref($href);
- }
-
- $this->order = $order;
- parent::__construct($id);
- }
-
- public function getId()
- {
- return $this->id;
- }
- public function setId($id = null)
- {
- $this->id = $id;
- return $this;
- }
-
- public function getHref()
- {
- return $this->htmlAttributes['href'];
- }
- public function setHref($href)
- {
- $this->htmlAttributes['href']= $href;
- return $this;
- }
-
- public function setTarget($target)
- {
- $this->htmlAttributes['target'] = $target;
-
- return $this;
- }
- public function setHtml($html)
- {
- $this->html = $html;
-
- return $this;
- }
- }
|