Description
Create a select field for a form-table
Usage
BW_::bw_select( $name, $text, $value, $args );Parameters
- $name
- ( string ) required – field name
- $text
- ( string ) required – label for the field
- $value
- ( int ) required – the selected item
- $args
- ( array ) required – array of parameters where the options are keyed by #options
Returns
voidSource
File name: oik-bwtrace/libs/class-BW-.phpLines:
1 to 11 of 11
static function bw_select( $name, $text, $value, $args ) { $lab = BW_::label( $name, $text ); $iselect = iselect( $name, $value, $args ); if ( self::is_table() ) { bw_tablerow(array($lab, $iselect)); } else { $class = bw_array_get( $args, bw_gridrow, null ); bw_gridrow(array($lab, $iselect), $class); } return; }View on GitHub View on Trac
Called by
1 to 3 of 3
Invoked by
Calls
1 to 4 of 4
