@@ -12,14 +12,16 @@ public function __construct($form){
1212
1313 /**
1414 * Generates any kind of input, used by most other fields. Note that
15- * this function should not be called directly, use
16- * <code>custom_field()</code> instead. Common options for all
17- * fields:
15+ * this function should not be called directly, use
16+ * <code>custom_field()</code> instead. Common options for all
17+ * fields:
1818 *
1919 * @option 'value' {string} If value is set as an attribute it
2020 * forces the value (irregardless of the object).
21- * @option 'required' {boolean} Set field to required (using HTML
21+ * @option 'required' {boolean} Set field to required (using HTML
2222 * <code>required</code> attribute).
23+ * @option 'prefix' {string} Add a prefix addon.
24+ * @option 'suffix' {string} Add a suffix addon.
2325 */
2426 public function factory ($ type , $ key , $ label =null , array $ attr =array ()){
2527 if ( $ label && !is_string ($ label ) ){
@@ -129,7 +131,7 @@ public function manual($key, $label, $content, $hint){
129131 *
130132 * @option remove {boolean} If true a checkbox to remove the current value will be added.
131133 * @option current {html} If set to non-false the content will be displayed as the
132- * current value, e.g can be set to < img ..> to display the
134+ * current value, e.g can be set to < img ..> to display the
133135 * current uploaded image.
134136 */
135137 public function upload_field ($ key , $ label =null , array $ attr =array ()) {
@@ -225,10 +227,10 @@ public function link($text, $href, $label=false, array $attr=array()){
225227 * Create textarea.
226228 *
227229 * @option 'tworow' {boolean} Layout hint to use two rows having the
228- * label on one row label and the textfield below.
230+ * label on one row label and the textfield below.
229231 * @option 'fill' {boolean} Layout hint used together with
230- * <code>'tworow'</code> to fill the entire row (not just
231- * label + content).
232+ * <code>'tworow'</code> to fill the entire row (not just
233+ * label + content).
232234 */
233235 public function textarea ($ key , $ label =null , array $ attr =array ()){
234236 $ this ->fields [] = $ this ->factory ('textarea ' , $ key , $ label , $ attr );
0 commit comments