Class: Bs_FormFieldRadio
Source Location: /core/html/form/Bs_FormFieldRadio.class.php
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$align = 'v'
[line 112]
how to align the options.
'v' = vertical: (default)
value 1
value 2
value 3
'h' = horizontal:
value 1, value 2, value 3
Tags:
$optionsEval =
[line 95]
php code to be evaluated. has to return an array (hash or vector) that will be used for the option tags of this select field. the code is executed in $this->_prepareOptions() so it's in the scope of a method of this object. this means you can use vars from here etc. usually a string, can be a hash because it's language dependant.
Tags:
$optionsHard =
[line 83]
the options that are selectable for the user.
the following data structures are allowed:
array('1'=>'one', '2'=>'two', '3'=>'three');
array('en'=>array('1'=>'one','2'=>'two','3'=>'three'), 'de'=>array('1'=>'eins','2'=>'zwei','3'=>'drei'), 'fr'=>array('1'=>'un','2'=>'deux','3'=>'trois'));
while these are not:
'one';
array('one', 'two', 'three');
array('en'=>'one', 'de'=>'eins', 'fr'=>'un');
array('en'=>array('one','two','three'), 'de'=>array('eins','zwei','drei'), 'fr'=>array('un','deux','trois'));
array('1'=>array('en'=>'one', 'de'=>'eins'), '2'=>array('en'=>'two', 'de'=>'zwei'));
because it would not be possible to know the difference sometimes.
you always need key=>val, even if the key and the value is the same.
Tags:
$optionsType =
[line 54]
how to fill in the options for this radio button. one of 'eval' or 'hard'. if not set, the one var that is used is used :) if both are used (speaking of $optionsHard and $optionsEval) then $optionsHard is the default.
Tags:
Class Methods
|
|