Changeset View
Changeset View
Standalone View
Standalone View
src/view/formation/PHUIFormationView.php
| Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | foreach ($items as $item) { | ||||
| $item->setExpander($expander); | $item->setExpander($expander); | ||||
| $control_item->appendExpander($expander); | $control_item->appendExpander($expander); | ||||
| } | } | ||||
| return $items; | return $items; | ||||
| } | } | ||||
| public function setFooter($footer) { | |||||
| foreach ($this->items as $item) { | |||||
| if ($item->getColumn() instanceof PHUIFormationContentView) { | |||||
| $item->getColumn()->appendChild($footer); | |||||
| return $this; | |||||
| } | |||||
| } | |||||
| throw new Exception( | |||||
| pht('Unable to find a content column to place the footer inside.')); | |||||
| } | |||||
| } | } | ||||