Merge pull request #7595 from andrewandante/pulls/sanitise_select_tag_4

sanitise select tag in DropdownField Docblock
This commit is contained in:
Damian Mooyman 2017-11-15 14:17:55 +13:00 committed by GitHub
commit ba86a1dce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -6,7 +6,7 @@ use SilverStripe\ORM\ArrayList;
use SilverStripe\View\ArrayData; use SilverStripe\View\ArrayData;
/** /**
* Dropdown field, created from a <select> tag. * Dropdown field, created from a select tag.
* *
* <b>Setting a $has_one relation</b> * <b>Setting a $has_one relation</b>
* *

View File

@ -606,7 +606,7 @@ class FormField extends RequestHandler
} }
/** /**
* Set an HTML attribute on the field element, mostly an <input> tag. * Set an HTML attribute on the field element, mostly an input tag.
* *
* Some attributes are best set through more specialized methods, to avoid interfering with * Some attributes are best set through more specialized methods, to avoid interfering with
* built-in behaviour: * built-in behaviour:
@ -1264,7 +1264,7 @@ class FormField extends RequestHandler
* *
* The field type is the class name with the word Field dropped off the end, all lowercase. * The field type is the class name with the word Field dropped off the end, all lowercase.
* *
* It's handy for assigning HTML classes. Doesn't signify the <input type> attribute. * It's handy for assigning HTML classes. Doesn't signify the input type attribute.
* *
* @see {link getAttributes()}. * @see {link getAttributes()}.
* *
@ -1293,7 +1293,7 @@ class FormField extends RequestHandler
/** /**
* Describe this field, provide help text for it. * Describe this field, provide help text for it.
* *
* By default, renders as a <span class="description"> underneath the form field. * By default, renders as a span class="description" underneath the form field.
* *
* @param string $description * @param string $description
* *

View File

@ -6,14 +6,14 @@ use SilverStripe\ORM\ArrayList;
use SilverStripe\View\ArrayData; use SilverStripe\View\ArrayData;
/** /**
* Grouped dropdown, using <optgroup> tags. * Grouped dropdown, using optgroup tags.
* *
* $source parameter (from DropdownField) must be a two dimensional array. * $source parameter (from DropdownField) must be a two dimensional array.
* The first level of the array is used for the <optgroup>, and the second * The first level of the array is used for the optgroup, and the second
* level are the <options> for each group. * level are the <options> for each group.
* *
* Returns a <select> tag containing all the appropriate <option> tags, with * Returns a select tag containing all the appropriate option tags, with
* <optgroup> tags around the <option> tags as required. * optgroup tags around the option tags as required.
* *
* <b>Usage</b> * <b>Usage</b>
* *

View File

@ -6,7 +6,7 @@ use SilverStripe\ORM\ArrayList;
use SilverStripe\View\ArrayData; use SilverStripe\View\ArrayData;
/** /**
* Multi-line listbox field, created from a <select> tag. * Multi-line listbox field, created from a select tag.
* *
* <b>Usage</b> * <b>Usage</b>
* *
@ -23,7 +23,7 @@ use SilverStripe\View\ArrayData;
* ) * )
* </code> * </code>
* *
* @see DropdownField for a simple <select> field with a single element. * @see DropdownField for a simple select field with a single element.
* @see CheckboxSetField for multiple selections through checkboxes. * @see CheckboxSetField for multiple selections through checkboxes.
* @see OptionsetField for single selections via radiobuttons. * @see OptionsetField for single selections via radiobuttons.
* @see TreeDropdownField for a rich and customizeable UI that can visualize a tree of selectable elements * @see TreeDropdownField for a rich and customizeable UI that can visualize a tree of selectable elements
@ -62,7 +62,7 @@ class ListboxField extends MultiSelectField
} }
/** /**
* Returns a <select> tag containing all the appropriate <option> tags * Returns a select tag containing all the appropriate option tags
* *
* @param array $properties * @param array $properties
* @return string * @return string