Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/07/2023 01:31:37 AM (3 years ago)
Author:
espellcaste
Message:

Properly declare missing properties to several classes.

Closes https://github.com/buddypress/buddypress/pull/54
See #7018

File:
1 edited

Legend:

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

    r13395 r13399  
    2222     *
    2323     * @since 1.0.0
    24      * @var int ID of field.
     24     * @var int
    2525     */
    2626    public $id;
     
    3030     *
    3131     * @since 1.0.0
    32      * @var int Field group ID for field.
     32     * @var int
    3333     */
    3434    public $group_id;
     
    3838     *
    3939     * @since 1.0.0
    40      * @var int Parent ID of field.
     40     * @var int
    4141     */
    4242    public $parent_id;
     
    4646     *
    4747     * @since 1.0.0
    48      * @var string Field type.
     48     * @var string
    4949     */
    5050    public $type;
     
    5454     *
    5555     * @since 1.0.0
    56      * @var string Field name.
     56     * @var string
    5757     */
    5858    public $name;
     
    6262     *
    6363     * @since 1.0.0
    64      * @var string Field description.
     64     * @var string
    6565     */
    6666    public $description;
     
    7070     *
    7171     * @since 1.0.0
    72      * @var bool Is field required to be filled out?
     72     * @var bool
    7373     */
    7474    public $is_required;
     
    7878     *
    7979     * @since 1.0.0
    80      * @var int Can field be deleted?
     80     * @var int
    8181     */
    8282    public $can_delete = '1';
     
    8686     *
    8787     * @since 1.0.0
    88      * @var int Field position.
     88     * @var int
    8989     */
    9090    public $field_order;
     
    9494     *
    9595     * @since 1.0.0
    96      * @var int Option order.
     96     * @var int
    9797     */
    9898    public $option_order;
     
    102102     *
    103103     * @since 1.0.0
    104      * @var string Order child fields by.
     104     * @var string
    105105     */
    106106    public $order_by;
     
    110110     *
    111111     * @since 1.0.0
    112      * @var bool Is this the default option for this field?
     112     * @var bool
    113113     */
    114114    public $is_default_option;
     115
     116    /**
     117     * Field data visibility.
     118     *
     119     * @since 1.0.0
     120     * @var string
     121     */
     122    public $visibility;
    115123
    116124    /**
     
    119127     * @since 1.9.0
    120128     * @since 2.4.0 Property marked protected. Now accessible by magic method or by `get_default_visibility()`.
    121      * @var string Default field data visibility.
     129     * @var string
    122130     */
    123131    protected $default_visibility;
     
    128136     * @since 2.3.0
    129137     * @since 2.4.0 Property marked protected. Now accessible by magic method or by `get_allow_custom_visibility()`.
    130      * @var string Members are allowed/disallowed to modify data visibility.
     138     * @var string
    131139     */
    132140    protected $allow_custom_visibility;
Note: See TracChangeset for help on using the changeset viewer.