public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
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 |