Description
Form a text field
Usage
BW_::bw_textfield( $name, $len, $text, $value, $class, $extras, $args );Parameters
- $name
- ( string ) required – the name of the field
- $len
- ( integer ) required – the length of the field
- $text
- ( string ) required – the label for the field
- $value
- ( string ) required – the value of the field
- $class
- ( string ) optional – CSS class name
- $extras
- ( string ) optional – the extras passed to itext() is expected to be a string
- $args
- ( array ) optional – even more options
Returns
voidTO DO
accept array so that #hint can be applied 2014/11/28Source
File name: oik-bwtrace/libs/class-BW-.phpLines:
1 to 13 of 13
static function bw_textfield( $name, $len, $text, $value, $class=null, $extras=null, $args=null ) { $lab = self::label( $name, $text ); if ( $value === null ) { $value = bw_array_get( $_REQUEST, $name, null ); } $itext = itext( $name, $len, $value, $class, $extras, $args ); if ( self::is_table() ) { bw_tablerow(array($lab, $itext)); } else { bw_gridrow(array($lab, $itext), $class); } return; }View on GitHub View on Trac
Called by
1 to 9 of 9
- bw_form_field_() – bw_form_field_ – default formatting for a field – as a textfield
- oik_honeypot_add_honeypot() – Add a honeypot field to a form
- oik_plugins_add_settings() – Display the add settings form
- oik_plugins_edit_settings() – Display the edit settings form
- oik_privacy_policy_generate() – Create the generate Privacy Policy form
- oik_themes_add_settings() – Displays the add theme box
- oik_themes_edit_settings() – Displays the edit theme box
- Tests_issue_9::test_BW_bw_textfield() –
- _bw_show_contact_form_oik() – Show the "oik" contact form
Invoked by
Calls
1 to 4 of 4
