Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
divparthtml.php
1<?php
3
8class DivPartHtml extends Html
9{
10 private $div;
11
16 public function addClass($class)
17 {
18 $this->getDiv()->addClass($class);
19 $this->setContent($this->getDiv()->buildDivStart());
20 }
21
27 public function addInlineStyle($key, $value)
28 {
29 $this->getDiv()->addInlineStyle($key, $value);
30 $this->setContent($this->getDiv()->buildDivStart());
31 }
32
36 public function getDiv()
37 {
38 return $this->div;
39 }
40
45 public function setDiv(Div $div)
46 {
47 $this->div = $div;
48 }
49
50}