protected function drawView()
protected function drawView()
Return
| wild |
final public function setConsole($console)Inherited
final public function setConsole($console)
Inherited
Parameters
| PhutilConsole | $console |
Return
| wild |
final public function getConsole()Inherited
final public function getConsole()
Inherited
Return
| wild |
final public function draw()Inherited
final public function draw()
Inherited
PhutilConsoleView
Draw a view to the console.
Return
| this |
final public function drawConsoleString()Inherited
final public function drawConsoleString()
Inherited
PhutilConsoleView
Draw a view to a string and return it.
Return
| string | Console-printable string. |
private function reduceView($view)Inherited
private function reduceView($view)
Inherited
PhutilConsoleView
Reduce a view to a list of simple, unnested parts.
Parameters
| wild | $view | Any drawable view. |
Return
| list<wild> | List of unnested drawables. |
final protected function drawLines($parts)Inherited
final protected function drawLines($parts)
Inherited
Parameters
| list<wild> | $parts | List of views, one per line. |
Return
| wild | Each view rendered on a separate line. |
final protected function implode($separator, $items)Inherited
final protected function implode($separator, $items)
Inherited
Parameters
| $separator | ||
| array | $items |
Return
| wild |
public function setBorders($borders)
public function setBorders($borders)
Parameters
| $borders |
Return
| wild |
public function setPadding($padding)
public function setPadding($padding)
Parameters
| $padding |
Return
| wild |
public function setShowHeader($show_header)
public function setShowHeader($show_header)
Parameters
| $show_header |
Return
| wild |
public function addColumn($key, $column)
public function addColumn($key, $column)
Parameters
| $key | ||
| array | $column |
Return
| wild |
public function addColumns($columns)
public function addColumns($columns)
Parameters
| array | $columns |
Return
| wild |
public function addRow($data)
public function addRow($data)
Parameters
| array | $data |
Return
| wild |
public function drawRows($rows)
public function drawRows($rows)
Parameters
| array | $rows |
Return
| wild |
private function getHeader()
private function getHeader()
Return
| wild |
private function getBody()
private function getBody()
Return
| wild |
private function getFooter()
private function getFooter()
Return
| wild |
private function shouldAddSpacing($key, $column)
private function shouldAddSpacing($key, $column)
Returns if the specified column should have spacing added.
Parameters
| $key | ||
| $column |
Return
| bool |
protected function getColumns()
protected function getColumns()
Returns the column IDs.
Return
| list<string> |
protected function getWidth($key)
protected function getWidth($key)
Get the width of a specific column, including padding.
Parameters
| string | $key |
Return
| int |
protected function alignString($string, $width, $align)
protected function alignString($string, $width, $align)
Parameters
| $string | ||
| $width | ||
| $align |
Return
| wild |
protected function formatRow($columns)
protected function formatRow($columns)
Format cells into an entire row.
Parameters
| list<string> | $columns |
Return
| string |
protected function formatSeparator($string)
protected function formatSeparator($string)
Parameters
| $string |
Return
| wild |