- Timestamp:
- 10/01/2015 04:18:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php
r10142 r10163 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 21 21 * 22 22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { 25 25 parent::__construct(); … … 48 48 * Must be used inside the {@link bp_profile_fields()} template loop. 49 49 * 50 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.radio.html permitted attributes} that you want to add.51 50 * @since 2.0.0 51 * 52 * @param array $raw_properties Optional key/value array of 53 * {@link http://dev.w3.org/html5/markup/input.radio.html permitted attributes} 54 * that you want to add. 52 55 */ 53 56 public function edit_field_html( array $raw_properties = array() ) { 54 57 55 // user_id is a special optional parameter that we pass to58 // User_id is a special optional parameter that we pass to 56 59 // {@link bp_the_profile_field_options()}. 57 60 if ( isset( $raw_properties['user_id'] ) ) { … … 102 105 * Must be used inside the {@link bp_profile_fields()} template loop. 103 106 * 107 * @since 2.0.0 108 * 104 109 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 105 * @since 2.0.0106 110 */ 107 111 public function edit_field_options_html( array $args = array() ) { … … 114 118 115 119 // Check for updated posted values, but errors preventing them from 116 // being saved first time 120 // being saved first time. 117 121 if ( isset( $_POST['field_' . $this->field_obj->id] ) && $option_value != $_POST['field_' . $this->field_obj->id] ) { 118 122 if ( ! empty( $_POST['field_' . $this->field_obj->id] ) ) { … … 122 126 123 127 // Run the allowed option name through the before_save filter, so 124 // we'll be sure to get a match 128 // we'll be sure to get a match. 125 129 $allowed_options = xprofile_sanitize_data_value_before_save( $options[$k]->name, false, false ); 126 130 $selected = ''; … … 160 164 * Must be used inside the {@link bp_profile_fields()} template loop. 161 165 * 166 * @since 2.0.0 167 * 162 168 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 163 * @since 2.0.0164 169 */ 165 170 public function admin_field_html( array $raw_properties = array() ) { … … 182 187 * Must be used inside the {@link bp_profile_fields()} template loop. 183 188 * 189 * @since 2.0.0 190 * 184 191 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 185 * @param string $control_type Optional. HTML input type used to render the current field's child options.186 * @since 2.0.0192 * @param string $control_type Optional. HTML input type used to render the current 193 * field's child options. 187 194 */ 188 195 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.