Hashes::parseDataSource
Usage
string Hashes::parseDataSource(string $data_source, [ array | string $value = '' ], [ string $form_field = 'select' ], [ string $form_name = '' ])Description
Generate HTML code for an option list of select / radio / checkbox from one of multiple sources -- hash, standard list, database tableParameters
Parameter | Required | Type | Description |
---|---|---|---|
$data_source | Yes | string | Data source being parsed, see below for details. |
$value | No | array | string | |
$form_field | No | string | Form field to generate HTML for. Can be select, radio, checkbox. |
$form_name | No | string | Only required for radio / checkbox and is the name of the form field. |