Changeset 9966
- Timestamp:
- 06/29/08 09:55:16 (5 years ago)
- Files:
-
- branches/1.1/lib/helper/FormHelper.php (modified) (1 diff)
- branches/1.1/lib/helper/TagHelper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/helper/FormHelper.php
r9487 r9966 992 992 } 993 993 994 995 /**996 * Converts specific <i>$options</i> to their correct HTML format997 *998 * @param array $options999 * @return array returns properly formatted options1000 */1001 function _convert_options($options)1002 {1003 $options = _parse_attributes($options);1004 1005 foreach (array('disabled', 'readonly', 'multiple') as $attribute)1006 {1007 if (array_key_exists($attribute, $options))1008 {1009 if ($options[$attribute])1010 {1011 $options[$attribute] = $attribute;1012 }1013 else1014 {1015 unset($options[$attribute]);1016 }1017 }1018 }1019 1020 return $options;1021 }1022 1023 994 function _convert_include_custom_for_select($options, &$select_options) 1024 995 { branches/1.1/lib/helper/TagHelper.php
r9101 r9966 118 118 return $value; 119 119 } 120 121 /** 122 * Converts specific <i>$options</i> to their correct HTML format 123 * 124 * @param array $options 125 * @return array returns properly formatted options 126 */ 127 function _convert_options($options) 128 { 129 $options = _parse_attributes($options); 130 131 foreach (array('disabled', 'readonly', 'multiple') as $attribute) 132 { 133 if (array_key_exists($attribute, $options)) 134 { 135 if ($options[$attribute]) 136 { 137 $options[$attribute] = $attribute; 138 } 139 else 140 { 141 unset($options[$attribute]); 142 } 143 } 144 } 145 146 return $options; 147 }