Changeset View
Changeset View
Standalone View
Standalone View
src/console/view/PhutilConsoleConcatenatedView.php
- This file was added.
<?php | |||||
final class PhutilConsoleConcatenatedView extends PhutilConsoleView { | |||||
private $items = array(); | |||||
public function addItem($item) { | |||||
$this->items[] = $item; | |||||
return $this; | |||||
} | |||||
protected function drawView() { | |||||
$output = array(); | |||||
foreach ($this->items as $item) { | |||||
$output[] = $this->flattenView($item); | |||||
vrana: There's no such method. | |||||
epriestleyAuthorUnsubmitted Not Done Inline ActionsHello again! I'm not sure we actually end up needing this class at all -- it doesn't seem to have ended up with any callsites, and drawConsoleString() does approximately the same thing. Did you run into a use case? epriestley: Hello again!
I'm not sure we actually end up needing this class at all -- it doesn't seem to… | |||||
} | |||||
return implode('', $output); | |||||
} | |||||
} |
There's no such method.