UnstructuredListData
class UnstructuredListData extends AbstractListData implements UnstructuredInterface, RestructureInterface (View source)
Represents aribtrary unstructured array data where the data to display in --list format comes from the array keys.
Unstructured list data can have variable keys in every rown (unlike RowsOfFields, which expects uniform rows), and the data elements may themselves be deep arrays.
Methods
No description
A structured list may provide its own set of default options. These will be used in place of the command's default options (from the annotations) in instances where the user does not provide the options explicitly (on the commandline) or implicitly (via a configuration file).
Allow structured data to be restructured -- i.e. to select fields to show, reorder fields, etc.
Details
__construct($data)
No description
array
getListData(FormatterOptions $options)
Convert data to a format suitable for use in a list.
By default, the array values will be used. Implement ListDataInterface to use some other criteria (e.g. array keys).
protected
getReorderedFieldLabels($data, $options, $defaults)
No description
protected
getFields($options, $defaults)
No description
protected array
defaultOptions()
A structured list may provide its own set of default options. These will be used in place of the command's default options (from the annotations) in instances where the user does not provide the options explicitly (on the commandline) or implicitly (via a configuration file).
restructure(FormatterOptions $options)
Allow structured data to be restructured -- i.e. to select fields to show, reorder fields, etc.