Description
Form an "email" field
Usage
BW_::bw_emailfield( $name, $len, $text, $value, $class, $extras );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
Returns
voidSource
File name: oik-bwtrace/libs/class-BW-.phpLines:
1 to 13 of 13
static function bw_emailfield( $name, $len, $text, $value, $class=null, $extras=null ) { $lab = self::label( $name, $text ); if ( $value === null ) { $value = bw_array_get( $_REQUEST, $name, null ); } $itext = iemail( $name, $len, $value, $class, $extras ); 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 3 of 3
Invoked by
Calls
1 to 4 of 4
