Метод | Описание | |
---|---|---|
__construct ( array &$assoc_args, array $fields = null, string $prefix = false ) | ||
__get ( string $key ) : mixed | Magic getter for arguments. | |
display_item ( mixed $item ) | Display a single item according to the output arguments. | |
display_items ( array $items ) | Display multiple items according to the output arguments. | |
transform_item_values_to_json ( mixed $item ) : mixed | Transforms objects and arrays to JSON as necessary |
Метод | Описание | |
---|---|---|
assoc_array_to_rows ( array $fields ) : array | Format an associative array as a table. | |
find_item_key ( object $item, string $field ) : string | Find an object's key. | |
format ( array $items ) | Format items according to arguments. | |
show_multiple_fields ( $data, $format ) | Show multiple fields of an object. | |
show_single_field ( $items, $field ) | Show a single field from a list of items. | |
show_table ( array $items, array $fields ) | Show items in a \cli\Table. |
public display_item ( mixed $item ) | ||
$item | mixed |
public display_items ( array $items ) | ||
$items | array |
public transform_item_values_to_json ( mixed $item ) : mixed | ||
$item | mixed | |
Результат | mixed |