first
This commit is contained in:
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Nextend\SmartSlider3\SlideBuilder;
|
||||
|
||||
|
||||
class BuilderComponentContent extends AbstractBuilderComponent {
|
||||
|
||||
protected $defaultData = array(
|
||||
"type" => 'content',
|
||||
"name" => 'Content',
|
||||
"desktopportraitpadding" => '0|*|0|*|0|*|0|*|px'
|
||||
);
|
||||
|
||||
/** @var AbstractBuilderComponent[] */
|
||||
private $layers = array();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param AbstractBuilderComponent $container
|
||||
*/
|
||||
public function __construct($container) {
|
||||
|
||||
$container->add($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $layer AbstractBuilderComponent
|
||||
*/
|
||||
public function add($layer) {
|
||||
$this->layers[] = $layer;
|
||||
}
|
||||
|
||||
public function getData() {
|
||||
$this->data['layers'] = array();
|
||||
foreach ($this->layers as $layer) {
|
||||
$this->data['layers'][] = $layer->getData();
|
||||
}
|
||||
|
||||
return parent::getData();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user