| Current Path : /proc/1908984/root/proc/2603263/cwd/ |
| Current File : //proc/1908984/root/proc/2603263/cwd/BuilderComponentItem.php.tar |
public_html/110/libraries/smartslider3/src/SmartSlider3/SlideBuilder/BuilderComponentItem.php 0000644 00000001714 15241302754 0030673 0 ustar 00 home/digilove <?php
namespace Nextend\SmartSlider3\SlideBuilder;
use Nextend\SmartSlider3\Renderable\Item;
class BuilderComponentItem extends AbstractBuilderComponent {
/**
* @var Item\AbstractItem
*/
protected $item;
/**
*
* @param AbstractBuilderComponent $container
* @param string $type
*/
public function __construct($container, $type) {
$this->item = Item\ItemFactory::getItem($type);
$this->defaultData = array_merge($this->defaultData, $this->item->getValues());
$container->add($this);
}
public function getData() {
return array(
'type' => $this->item->getType(),
'values' => parent::getData()
);
}
public function getLabel() {
return $this->item->getTitle();
}
public function getLayerProperties() {
return $this->item->getLayerProperties();
}
}