Your IP : 216.73.216.50


Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/2411249/cwd/
Upload File :
Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/2411249/cwd/BuilderComponentRow.php.tar

public_html/110/libraries/smartslider3/src/SmartSlider3/SlideBuilder/BuilderComponentRow.php000064400000001714152421057400030541 0ustar00home/digilove<?php


namespace Nextend\SmartSlider3\SlideBuilder;


class BuilderComponentRow extends AbstractBuilderComponent {

    protected $defaultData = array(
        "type"                   => 'row',
        "name"                   => 'Row',
        "cols"                   => array(),
        "desktopportraitpadding" => '10|*|10|*|10|*|10|*|px'
    );

    /** @var BuilderComponentCol[] */
    private $cols = array();

    /**
     *
     * @param AbstractBuilderComponent $container
     */
    public function __construct($container) {

        $container->add($this);
    }

    /**
     * @param $layer BuilderComponentCol
     */
    public function add($layer) {
        $this->cols[] = $layer;
    }

    public function getData() {
        $this->data['cols'] = array();
        foreach ($this->cols as $layer) {
            $this->data['cols'][] = $layer->getData();
        }

        return parent::getData();
    }
}