Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/01/2015 04:18:13 AM (11 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-number.php

    r10142 r10163  
    11<?php
    22/**
    3  * BuddyPress XProfile Classes
     3 * BuddyPress XProfile Classes.
    44 *
    55 * @package BuddyPress
     
    1818
    1919        /**
    20          * Constructor for the number field type
     20         * Constructor for the number field type.
    2121         *
    2222         * @since 2.0.0
    23          */
     23         */
    2424        public function __construct() {
    2525                parent::__construct();
     
    4646         * Must be used inside the {@link bp_profile_fields()} template loop.
    4747         *
    48          * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.number.html permitted attributes} that you want to add.
    4948         * @since 2.0.0
     49         *
     50         * @param array $raw_properties Optional key/value array of
     51         *                              {@link http://dev.w3.org/html5/markup/input.number.html permitted attributes}
     52         *                              that you want to add.
    5053         */
    5154        public function edit_field_html( array $raw_properties = array() ) {
    5255
    53                 // user_id is a special optional parameter that certain other fields
     56                // User_id is a special optional parameter that certain other fields
    5457                // types pass to {@link bp_the_profile_field_options()}.
    5558                if ( isset( $raw_properties['user_id'] ) ) {
     
    8487         * Must be used inside the {@link bp_profile_fields()} template loop.
    8588         *
     89         * @since 2.0.0
     90         *
    8691         * @param array $raw_properties Optional key/value array of permitted attributes that you want to add.
    87          * @since 2.0.0
    8892         */
    8993        public function admin_field_html( array $raw_properties = array() ) {
     
    100104         * "Add Field" and "Edit Field" screens, but for this field type, we don't want it, so it's stubbed out.
    101105         *
     106         * @since 2.0.0
     107         *
    102108         * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen.
    103          * @param string $control_type Optional. HTML input type used to render the current field's child options.
    104          * @since 2.0.0
     109         * @param string            $control_type  Optional. HTML input type used to render the current
     110         *                                         field's child options.
    105111         */
    106112        public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {}
Note: See TracChangeset for help on using the changeset viewer.