Changeset View
Changeset View
Standalone View
Standalone View
src/view/formation/PHUIFormationColumnItem.php
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | public function appendExpander(PHUIFormationExpanderView $expander) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getExpanders() { | public function getExpanders() { | ||||
| return $this->expanders; | return $this->expanders; | ||||
| } | } | ||||
| public function newClientProperties() { | public function newClientProperties() { | ||||
| $column = $this->getColumn(); | |||||
| $expander_id = null; | $expander_id = null; | ||||
| $expander = $this->getExpander(); | $expander = $this->getExpander(); | ||||
| if ($expander) { | if ($expander) { | ||||
| $expander_id = $expander->getID(); | $expander_id = $expander->getID(); | ||||
| } | } | ||||
| $resizer_details = null; | $resizer_details = null; | ||||
| $resizer_item = $this->getResizerItem(); | $resizer_item = $this->getResizerItem(); | ||||
| if ($resizer_item) { | if ($resizer_item) { | ||||
| $visible_key = $column->getVisibleSettingKey(); | |||||
| $width_key = $column->getWidthSettingKey(); | |||||
| $min_width = $column->getMinimumWidth(); | |||||
| $max_width = $column->getMaximumWidth(); | |||||
| $resizer_details = array( | $resizer_details = array( | ||||
| 'itemID' => $resizer_item->getID(), | 'itemID' => $resizer_item->getID(), | ||||
| 'controlID' => $resizer_item->getColumn()->getID(), | 'controlID' => $resizer_item->getColumn()->getID(), | ||||
| 'widthKey' => $width_key, | |||||
| 'visibleKey' => $visible_key, | |||||
| 'minimumWidth' => $min_width, | |||||
| 'maximumWidth' => $max_width, | |||||
| ); | ); | ||||
| } | } | ||||
| $column = $this->getColumn(); | |||||
| $width = $column->getWidth(); | $width = $column->getWidth(); | ||||
| if ($width !== null) { | if ($width !== null) { | ||||
| $width = (int)$width; | $width = (int)$width; | ||||
| } | } | ||||
| $is_visible = (bool)$column->getIsVisible(); | $is_visible = (bool)$column->getIsVisible(); | ||||
| $is_right_aligned = $this->getIsRightAligned(); | $is_right_aligned = $this->getIsRightAligned(); | ||||
| Show All 14 Lines | |||||