@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final 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 /**
22 * @return PhutilSafeHTML
23 */
24 public function render() {
25 $width = $this->getWidth();
26 $style = sprintf('width: %dpx;', $width);
27
28 return phutil_tag(
29 'div',
30 array(
31 'id' => $this->getID(),
32 'aria-hidden' => 'true',
33 'class' => 'phui-formation-resizer',
34 'style' => $style,
35 ));
36 }
37
38}