Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/01/2015 04:18:13 AM (9 years ago)
Author:
tw2113
Message:

First pass of documentation cleanup for the XProfile Component.

See #6406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php

    r10142 r10163  
    11<?php
    22/**
    3  * BuddyPress XProfile Classes
     3 * BuddyPress XProfile Classes.
    44 *
    55 * @package BuddyPress
     
    77 */
    88
    9 // Exit if accessed directly
     9// Exit if accessed directly.
    1010defined( 'ABSPATH' ) || exit;
    1111
     
    2121     *
    2222     * @since 2.0.0
    23      */
     23     */
    2424    public function __construct() {
    2525        parent::__construct();
     
    4848     * Must be used inside the {@link bp_profile_fields()} template loop.
    4949     *
    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.
    5150     * @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.
    5255     */
    5356    public function edit_field_html( array $raw_properties = array() ) {
    5457
    55         // user_id is a special optional parameter that we pass to
     58        // User_id is a special optional parameter that we pass to
    5659        // {@link bp_the_profile_field_options()}.
    5760        if ( isset( $raw_properties['user_id'] ) ) {
     
    102105     * Must be used inside the {@link bp_profile_fields()} template loop.
    103106     *
     107     * @since 2.0.0
     108     *
    104109     * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}.
    105      * @since 2.0.0
    106110     */
    107111    public function edit_field_options_html( array $args = array() ) {
     
    114118
    115119            // Check for updated posted values, but errors preventing them from
    116             // being saved first time
     120            // being saved first time.
    117121            if ( isset( $_POST['field_' . $this->field_obj->id] ) && $option_value != $_POST['field_' . $this->field_obj->id] ) {
    118122                if ( ! empty( $_POST['field_' . $this->field_obj->id] ) ) {
     
    122126
    123127            // 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.
    125129            $allowed_options = xprofile_sanitize_data_value_before_save( $options[$k]->name, false, false );
    126130            $selected        = '';
     
    160164     * Must be used inside the {@link bp_profile_fields()} template loop.
    161165     *
     166     * @since 2.0.0
     167     *
    162168     * @param array $raw_properties Optional key/value array of permitted attributes that you want to add.
    163      * @since 2.0.0
    164169     */
    165170    public function admin_field_html( array $raw_properties = array() ) {
     
    182187     * Must be used inside the {@link bp_profile_fields()} template loop.
    183188     *
     189     * @since 2.0.0
     190     *
    184191     * @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.0
     192     * @param string            $control_type  Optional. HTML input type used to render the current
     193     *                                         field's child options.
    187194     */
    188195    public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {
Note: See TracChangeset for help on using the changeset viewer.