LayoutIframe.php
881 Bytes
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
41
42
43
<?php
namespace Nextend\SmartSlider3\Application\Admin\Layout;
use Nextend\Framework\View\AbstractBlock;
use Nextend\Framework\View\AbstractLayout;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Core\AdminIframe\BlockAdminIframe;
class LayoutIframe extends AbstractLayout {
protected $label = '';
/**
* @var AbstractBlock[]
*/
protected $actions = array();
public function render() {
$admin = new BlockAdminIframe($this);
$admin->setLayout($this);
$admin->setLabel($this->label);
$admin->setActions($this->actions);
$admin->display();
}
/**
* @param string $label
*/
public function setLabel($label) {
$this->label = $label;
}
/**
* @param AbstractBlock $block
*/
public function addAction($block) {
$this->actions[] = $block;
}
}