Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/view/formation/PHUIFormationResizerView.php
12249 views
1
<?php
2
3
final class PHUIFormationResizerView
4
extends PHUIFormationColumnView {
5
6
private $isVisible;
7
8
public function setIsVisible($is_visible) {
9
$this->isVisible = $is_visible;
10
return $this;
11
}
12
13
public function getIsVisible() {
14
return $this->isVisible;
15
}
16
17
public function getWidth() {
18
return 8;
19
}
20
21
public function render() {
22
$width = $this->getWidth();
23
$style = sprintf('width: %dpx;', $width);
24
25
return phutil_tag(
26
'div',
27
array(
28
'id' => $this->getID(),
29
'class' => 'phui-formation-resizer',
30
'style' => $style,
31
));
32
}
33
34
}
35
36