Skip to:
Content

BuddyPress.org

Ticket #6185: 6185.diff

File 6185.diff, 19.0 KB (added by henry.wright, 10 years ago)
  • src/bp-activity/bp-activity-classes.php

    diff --git src/bp-activity/bp-activity-classes.php src/bp-activity/bp-activity-classes.php
    index 773c293..99f58b1 100644
    class BP_Activity_Activity { 
    2626         *
    2727         * @var int
    2828         */
    29         var $id;
     29        public $id;
    3030
    3131        /**
    3232         * ID of the associated item.
    3333         *
    3434         * @var int
    3535         */
    36         var $item_id;
     36        public $item_id;
    3737
    3838        /**
    3939         * ID of the associated secondary item.
    4040         *
    4141         * @var int
    4242         */
    43         var $secondary_item_id;
     43        public $secondary_item_id;
    4444
    4545        /**
    4646         * ID of user associated with the activity item.
    4747         *
    4848         * @var int
    4949         */
    50         var $user_id;
     50        public $user_id;
    5151
    5252        /**
    5353         * The primary URL for the activity in RSS feeds.
    5454         *
    5555         * @var string
    5656         */
    57         var $primary_link;
     57        public $primary_link;
    5858
    5959        /**
    6060         * BuddyPress component the activity item relates to.
    6161         *
    6262         * @var string
    6363         */
    64         var $component;
     64        public $component;
    6565
    6666        /**
    6767         * Activity type, eg 'new_blog_post'.
    6868         *
    6969         * @var string
    7070         */
    71         var $type;
     71        public $type;
    7272
    7373        /**
    7474         * Description of the activity, eg 'Alex updated his profile.'
    7575         *
    7676         * @var string
    7777         */
    78         var $action;
     78        public $action;
    7979
    8080        /**
    8181         * The content of the activity item.
    8282         *
    8383         * @var string
    8484         */
    85         var $content;
     85        public $content;
    8686
    8787        /**
    8888         * The date the activity item was recorded, in 'Y-m-d h:i:s' format.
    8989         *
    9090         * @var string
    9191         */
    92         var $date_recorded;
     92        public $date_recorded;
    9393
    9494        /**
    9595         * Whether the item should be hidden in sitewide streams.
    9696         *
    9797         * @var int
    9898         */
    99         var $hide_sitewide = false;
     99        public $hide_sitewide = false;
    100100
    101101        /**
    102102         * Node boundary start for activity or activity comment.
    103103         *
    104104         * @var int
    105105         */
    106         var $mptt_left;
     106        public $mptt_left;
    107107
    108108        /**
    109109         * Node boundary end for activity or activity comment.
    110110         *
    111111         * @var int
    112112         */
    113         var $mptt_right;
     113        public $mptt_right;
    114114
    115115        /**
    116116         * Whether this item is marked as spam.
    117117         *
    118118         * @var int
    119119         */
    120         var $is_spam;
     120        public $is_spam;
    121121
    122122        /**
    123123         * Constructor method.
  • src/bp-activity/bp-activity-template.php

    diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
    index e4a8cc7..30fc53b 100644
    function bp_activity_directory_permalink() { 
    114114 * @since BuddyPress (1.0.0)
    115115 */
    116116class BP_Activity_Template {
    117         var $current_activity = -1;
    118         var $activity_count;
    119         var $total_activity_count;
    120         var $activities;
    121         var $activity;
    122 
    123         var $in_the_loop;
     117    /**
     118     * The loop iterator.
     119     *
     120     * @since BuddyPress (1.5.0)
     121     * @access public
     122     * @var int
     123     */
     124        public $current_activity = -1;
     125       
     126    /**
     127     * The activity count.
     128     *
     129     * @since BuddyPress (1.5.0)
     130     * @access public
     131     * @var int
     132     */
     133        public $activity_count;
     134       
     135    /**
     136     * The total activity count.
     137     *
     138     * @since BuddyPress (1.5.0)
     139     * @access public
     140     * @var int
     141     */
     142        public $total_activity_count;
     143       
     144    /**
     145     * Array of activities located by the query.
     146     *
     147     * @since BuddyPress (1.5.0)
     148     * @access public
     149     * @var array
     150     */
     151        public $activities;
     152       
     153    /**
     154     * The activity object currently being iterated on.
     155     *
     156     * @since BuddyPress (1.5.0)
     157     * @access public
     158     * @var object
     159     */
     160        public $activity;
     161
     162    /**
     163     * A flag for whether the loop is currently being iterated.
     164     *
     165     * @since BuddyPress (1.5.0)
     166     * @access public
     167     * @var bool
     168     */
     169        public $in_the_loop;
    124170
    125171        /**
    126172         * URL parameter key for activity pagination. Default: 'acpage'.
    class BP_Activity_Template { 
    128174         * @since BuddyPress (2.1.0)
    129175         * @var string
    130176         */
    131         var $pag_arg;
    132 
    133         var $pag_page;
    134         var $pag_num;
    135         var $pag_links;
    136 
    137         var $full_name;
     177        public $pag_arg;
     178
     179    /**
     180     * The page number being requested.
     181     *
     182     * @since BuddyPress (1.5.0)
     183     * @access public
     184     * @var int
     185     */
     186        public $pag_page;
     187       
     188    /**
     189     * The number of items being requested per page.
     190     *
     191     * @since BuddyPress (1.5.0)
     192     * @access public
     193     * @var int
     194     */
     195        public $pag_num;
     196       
     197    /**
     198     * An HTML string containing pagination links.
     199     *
     200     * @since BuddyPress (1.5.0)
     201     * @access public
     202     * @var string
     203     */
     204        public $pag_links;
     205
     206    /**
     207     * The displayed user's full name.
     208     *
     209     * @since BuddyPress (1.5.0)
     210     * @access public
     211     * @var string
     212     */
     213        public $full_name;
    138214
    139215        /**
    140216         * Constructor method.
  • src/bp-forums/bp-forums-template.php

    diff --git src/bp-forums/bp-forums-template.php src/bp-forums/bp-forums-template.php
    index f279060..fa1ee7c 100644
    class BP_Forums_Template_Forum { 
    115115         * @access public
    116116         * @var int
    117117         */
    118         var $current_topic = -1;
     118        public $current_topic = -1;
    119119
    120120        /**
    121121         * The number of topics returned by the paged query.
    class BP_Forums_Template_Forum { 
    123123         * @access public
    124124         * @var int
    125125         */
    126         var $topic_count;
     126        public $topic_count;
    127127
    128128        /**
    129129         * Array of topics located by the query.
    class BP_Forums_Template_Forum { 
    131131         * @access public
    132132         * @var array
    133133         */
    134         var $topics;
     134        public $topics;
    135135
    136136        /**
    137137         * The topic object currently being iterated on.
    class BP_Forums_Template_Forum { 
    139139         * @access public
    140140         * @var object
    141141         */
    142         var $topic;
     142        public $topic;
    143143
    144144        /**
    145145         * The ID of the forum whose topics are being queried.
    class BP_Forums_Template_Forum { 
    147147         * @access public
    148148         * @var int
    149149         */
    150         var $forum_id;
     150        public $forum_id;
    151151
    152152        /**
    153153         * A flag for whether the loop is currently being iterated.
    class BP_Forums_Template_Forum { 
    155155         * @access public
    156156         * @var bool
    157157         */
    158         var $in_the_loop;
     158        public $in_the_loop;
    159159
    160160        /**
    161161         * The page number being requested.
    class BP_Forums_Template_Forum { 
    163163         * @access public
    164164         * @var int
    165165         */
    166         var $pag_page;
     166        public $pag_page;
    167167
    168168        /**
    169169         * The number of items being requested per page.
    class BP_Forums_Template_Forum { 
    171171         * @access public
    172172         * @var int
    173173         */
    174         var $pag_num;
     174        public $pag_num;
    175175
    176176        /**
    177177         * An HTML string containing pagination links.
    class BP_Forums_Template_Forum { 
    179179         * @access public
    180180         * @var string
    181181         */
    182         var $pag_links;
     182        public $pag_links;
    183183
    184184        /**
    185185         * The total number of topics matching the query parameters.
    class BP_Forums_Template_Forum { 
    187187         * @access public
    188188         * @var int
    189189         */
    190         var $total_topic_count;
     190        public $total_topic_count;
    191191
    192192        /**
    193193         * Whether requesting a single topic. Not currently used.
    class BP_Forums_Template_Forum { 
    195195         * @access public
    196196         * @var bool
    197197         */
    198         var $single_topic = false;
     198        public $single_topic = false;
    199199
    200200        /**
    201201         * Term to sort by. Not currently used.
    class BP_Forums_Template_Forum { 
    203203         * @access public
    204204         * @var string
    205205         */
    206         var $sort_by;
     206        public $sort_by;
    207207
    208208        /**
    209209         * Sort order. Not currently used.
    class BP_Forums_Template_Forum { 
    211211         * @access public
    212212         * @var string
    213213         */
    214         var $order;
     214        public $order;
    215215
    216216        /**
    217217         * Constructor method.
    class BP_Forums_Template_Topic { 
    19261926         * @access public
    19271927         * @var int
    19281928         */
    1929         var $current_post = -1;
     1929        public $current_post = -1;
    19301930
    19311931        /**
    19321932         * The number of posts returned by the paged query.
    class BP_Forums_Template_Topic { 
    19341934         * @access public
    19351935         * @var int
    19361936         */
    1937         var $post_count;
     1937        public $post_count;
    19381938
    19391939        /**
    19401940         * Array of posts located by the query.
    class BP_Forums_Template_Topic { 
    19421942         * @access public
    19431943         * @var array
    19441944         */
    1945         var $posts;
     1945        public $posts;
    19461946
    19471947        /**
    19481948         * The post object currently being iterated on.
    class BP_Forums_Template_Topic { 
    19501950         * @access public
    19511951         * @var object
    19521952         */
    1953         var $post;
     1953        public $post;
    19541954
    19551955        /**
    19561956         * The ID of the forum whose topic is being queried.
    class BP_Forums_Template_Topic { 
    19581958         * @access public
    19591959         * @var int
    19601960         */
    1961         var $forum_id;
     1961        public $forum_id;
    19621962
    19631963        /**
    19641964         * The ID of the topic whose posts are being queried.
    class BP_Forums_Template_Topic { 
    19661966         * @access public
    19671967         * @var int
    19681968         */
    1969         var $topic_id;
     1969        public $topic_id;
    19701970
    19711971        /**
    19721972         * The topic object to which the posts belong.
    class BP_Forums_Template_Topic { 
    19741974         * @access public
    19751975         * @var object
    19761976         */
    1977         var $topic;
     1977        public $topic;
    19781978
    19791979        /**
    19801980         * A flag for whether the loop is currently being iterated.
    class BP_Forums_Template_Topic { 
    19821982         * @access public
    19831983         * @var bool
    19841984         */
    1985         var $in_the_loop;
     1985        public $in_the_loop;
    19861986
    19871987        /**
    19881988         * Contains a 'total_pages' property holding total number of pages in
    class BP_Forums_Template_Topic { 
    19991999         * @access public
    20002000         * @var public
    20012001         */
    2002         var $pag_page;
     2002        public $pag_page;
    20032003
    20042004        /**
    20052005         * The number of items being requested per page.
    class BP_Forums_Template_Topic { 
    20072007         * @access public
    20082008         * @var public
    20092009         */
    2010         var $pag_num;
     2010        public $pag_num;
    20112011
    20122012        /**
    20132013         * An HTML string containing pagination links.
    class BP_Forums_Template_Topic { 
    20152015         * @access public
    20162016         * @var string
    20172017         */
    2018         var $pag_links;
     2018        public $pag_links;
    20192019
    20202020        /**
    20212021         * The total number of posts matching the query parameters.
    class BP_Forums_Template_Topic { 
    20232023         * @access public
    20242024         * @var int
    20252025         */
    2026         var $total_post_count;
     2026        public $total_post_count;
    20272027
    20282028        /**
    20292029         * Whether requesting a single topic. Not currently used.
    class BP_Forums_Template_Topic { 
    20312031         * @access public
    20322032         * @var bool
    20332033         */
    2034         var $single_post = false;
     2034        public $single_post = false;
    20352035
    20362036        /**
    20372037         * Term to sort by.
    class BP_Forums_Template_Topic { 
    20392039         * @access public
    20402040         * @var string
    20412041         */
    2042         var $sort_by;
     2042        public $sort_by;
    20432043
    20442044        /**
    20452045         * Sort order.
    class BP_Forums_Template_Topic { 
    20472047         * @access public
    20482048         * @var string
    20492049         */
    2050         var $order;
     2050        public $order;
    20512051
    20522052        /**
    20532053         * Constructor method.
  • src/bp-groups/bp-groups-template.php

    diff --git src/bp-groups/bp-groups-template.php src/bp-groups/bp-groups-template.php
    index 25e81ac..b2e75fc 100644
    class BP_Groups_Template { 
    7777         * @access public
    7878         * @var int
    7979         */
    80         var $current_group = -1;
     80        public $current_group = -1;
    8181
    8282        /**
    8383         * The number of groups returned by the paged query.
    class BP_Groups_Template { 
    8585         * @access public
    8686         * @var int
    8787         */
    88         var $group_count;
     88        public $group_count;
    8989
    9090        /**
    9191         * Array of groups located by the query.
    class BP_Groups_Template { 
    9393         * @access public
    9494         * @var array
    9595         */
    96         var $groups;
     96        public $groups;
    9797
    9898        /**
    9999         * The group object currently being iterated on.
    class BP_Groups_Template { 
    101101         * @access public
    102102         * @var object
    103103         */
    104         var $group;
     104        public $group;
    105105
    106106        /**
    107107         * A flag for whether the loop is currently being iterated.
    class BP_Groups_Template { 
    109109         * @access public
    110110         * @var bool
    111111         */
    112         var $in_the_loop;
     112        public $in_the_loop;
    113113
    114114        /**
    115115         * The page number being requested.
    class BP_Groups_Template { 
    117117         * @access public
    118118         * @var public
    119119         */
    120         var $pag_page;
     120        public $pag_page;
    121121
    122122        /**
    123123         * The number of items being requested per page.
    class BP_Groups_Template { 
    125125         * @access public
    126126         * @var public
    127127         */
    128         var $pag_num;
     128        public $pag_num;
    129129
    130130        /**
    131131         * An HTML string containing pagination links.
    class BP_Groups_Template { 
    133133         * @access public
    134134         * @var string
    135135         */
    136         var $pag_links;
     136        public $pag_links;
    137137
    138138        /**
    139139         * The total number of groups matching the query parameters.
    class BP_Groups_Template { 
    141141         * @access public
    142142         * @var int
    143143         */
    144         var $total_group_count;
     144        public $total_group_count;
    145145
    146146        /**
    147147         * Whether the template loop is for a single group page.
    class BP_Groups_Template { 
    149149         * @access public
    150150         * @var bool
    151151         */
    152         var $single_group = false;
     152        public $single_group = false;
    153153
    154154        /**
    155155         * Field to sort by.
    class BP_Groups_Template { 
    157157         * @access public
    158158         * @var string
    159159         */
    160         var $sort_by;
     160        public $sort_by;
    161161
    162162        /**
    163163         * Sort order.
    class BP_Groups_Template { 
    165165         * @access public
    166166         * @var string
    167167         */
    168         var $order;
     168        public $order;
    169169
    170170        /**
    171171         * Constructor method.
    function bp_total_group_count_for_user( $user_id = 0 ) { 
    30023002 **/
    30033003
    30043004class BP_Groups_Group_Members_Template {
    3005         var $current_member = -1;
    3006         var $member_count;
    3007         var $members;
    3008         var $member;
    3009 
    3010         var $in_the_loop;
    3011 
    3012         var $pag_page;
    3013         var $pag_num;
    3014         var $pag_links;
    3015         var $total_group_count;
     3005    /**
     3006     * The loop iterator.
     3007     *
     3008     * @since BuddyPress (1.5.0)
     3009     * @access public
     3010     * @var int
     3011     */
     3012        public $current_member = -1;
     3013       
     3014    /**
     3015     * The member count.
     3016     *
     3017     * @since BuddyPress (1.5.0)
     3018     * @access public
     3019     * @var int
     3020     */
     3021        public $member_count;
     3022       
     3023    /**
     3024     * Array of members located by the query.
     3025     *
     3026     * @since BuddyPress (1.5.0)
     3027     * @access public
     3028     * @var array
     3029     */
     3030        public $members;
     3031       
     3032    /**
     3033     * The member object currently being iterated on.
     3034     *
     3035     * @since BuddyPress (1.5.0)
     3036     * @access public
     3037     * @var object
     3038     */
     3039        public $member;
     3040       
     3041    /**
     3042     * A flag for whether the loop is currently being iterated.
     3043     *
     3044     * @since BuddyPress (1.5.0)
     3045     * @access public
     3046     * @var bool
     3047     */
     3048        public $in_the_loop;
     3049
     3050    /**
     3051     * The page number being requested.
     3052     *
     3053     * @since BuddyPress (1.5.0)
     3054     * @access public
     3055     * @var int
     3056     */
     3057        public $pag_page;
     3058       
     3059    /**
     3060     * The number of items being requested per page.
     3061     *
     3062     * @since BuddyPress (1.5.0)
     3063     * @access public
     3064     * @var int
     3065     */
     3066        public $pag_num;
     3067       
     3068    /**
     3069     * An HTML string containing pagination links.
     3070     *
     3071     * @since BuddyPress (1.5.0)
     3072     * @access public
     3073     * @var string
     3074     */
     3075        public $pag_links;
     3076       
     3077    /**
     3078     * The total group count.
     3079     *
     3080     * @since BuddyPress (1.5.0)
     3081     * @access public
     3082     * @var int
     3083     */
     3084        public $total_group_count;
    30163085
    30173086        /**
    30183087         * Constructor.
  • src/bp-members/bp-members-template.php

    diff --git src/bp-members/bp-members-template.php src/bp-members/bp-members-template.php
    index 85929e5..158d48d 100644
    class BP_Core_Members_Template { 
    188188         * @access public
    189189         * @var int
    190190         */
    191         var $current_member = -1;
     191        public $current_member = -1;
    192192
    193193        /**
    194194         * The number of members returned by the paged query.
    class BP_Core_Members_Template { 
    196196         * @access public
    197197         * @var int
    198198         */
    199         var $member_count;
     199        public $member_count;
    200200
    201201        /**
    202202         * Array of members located by the query.
    class BP_Core_Members_Template { 
    204204         * @access public
    205205         * @var array
    206206         */
    207         var $members;
     207        public $members;
    208208
    209209        /**
    210210         * The member object currently being iterated on.
    class BP_Core_Members_Template { 
    212212         * @access public
    213213         * @var object
    214214         */
    215         var $member;
     215        public $member;
    216216
    217217        /**
    218218         * A flag for whether the loop is currently being iterated.
    class BP_Core_Members_Template { 
    220220         * @access public
    221221         * @var bool
    222222         */
    223         var $in_the_loop;
     223        public $in_the_loop;
    224224
    225225        /**
    226226         * The unique string used for pagination queries
    class BP_Core_Members_Template { 
    228228         * @access public
    229229         * @var public
    230230         */
    231         var $pag_arg;
     231        public $pag_arg;
    232232
    233233        /**
    234234         * The page number being requested.
    class BP_Core_Members_Template { 
    236236         * @access public
    237237         * @var public
    238238         */
    239         var $pag_page;
     239        public $pag_page;
    240240
    241241        /**
    242242         * The number of items being requested per page.
    class BP_Core_Members_Template { 
    244244         * @access public
    245245         * @var public
    246246         */
    247         var $pag_num;
     247        public $pag_num;
    248248
    249249        /**
    250250         * An HTML string containing pagination links.
    class BP_Core_Members_Template { 
    252252         * @access public
    253253         * @var string
    254254         */
    255         var $pag_links;
     255        public $pag_links;
    256256
    257257        /**
    258258         * The total number of members matching the query parameters.
    class BP_Core_Members_Template { 
    260260         * @access public
    261261         * @var int
    262262         */
    263         var $total_member_count;
     263        public $total_member_count;
    264264
    265265        /**
    266266         * Constructor method.
  • src/bp-xprofile/bp-xprofile-loader.php

    diff --git src/bp-xprofile/bp-xprofile-loader.php src/bp-xprofile/bp-xprofile-loader.php
    index 727cd32..21c2d26 100644
    class BP_XProfile_Component extends BP_Component { 
    2828         *
    2929         * @see bp_xprofile_get_visibility_levels()
    3030         * @since BuddyPress (1.6.0)
     31         * @var array
    3132         */
    32         var $visibility_levels = array();
     33        public $visibility_levels = array();
    3334
    3435        /**
    3536         * Start the xprofile component creation process
  • src/bp-xprofile/bp-xprofile-template.php

    diff --git src/bp-xprofile/bp-xprofile-template.php src/bp-xprofile/bp-xprofile-template.php
    index 8fd7c3f..11b22c9 100644
     
    1111defined( 'ABSPATH' ) || exit;
    1212
    1313class BP_XProfile_Data_Template {
    14         var $current_group = -1;
    15         var $group_count;
    16         var $groups;
    17         var $group;
    18 
    19         var $current_field = -1;
    20         var $field_count;
    21         var $field_has_data;
    22         var $field;
    23 
    24         var $in_the_loop;
    25         var $user_id;
     14    /**
     15     * The loop iterator.
     16     *
     17     * @since BuddyPress (1.5.0)
     18     * @access public
     19     * @var int
     20     */
     21        public $current_group = -1;
     22       
     23    /**
     24     * The number of groups returned by the paged query.
     25     *
     26     * @since BuddyPress (1.5.0)
     27     * @access public
     28     * @var int
     29     */
     30        public $group_count;
     31       
     32    /**
     33     * Array of groups located by the query.
     34     *
     35     * @since BuddyPress (1.5.0)
     36     * @access public
     37     * @var array
     38     */
     39        public $groups;
     40       
     41    /**
     42     * The group object currently being iterated on.
     43     *
     44     * @since BuddyPress (1.5.0)
     45     * @access public
     46     * @var object
     47     */
     48        public $group;
     49
     50    /**
     51     * The current field.
     52     *
     53     * @since BuddyPress (1.5.0)
     54     * @access public
     55     * @var int
     56     */
     57        public $current_field = -1;
     58       
     59    /**
     60     * The field count.
     61     *
     62     * @since BuddyPress (1.5.0)
     63     * @access public
     64     * @var int
     65     */
     66        public $field_count;
     67       
     68    /**
     69     * Field has data.
     70     *
     71     * @since BuddyPress (1.5.0)
     72     * @access public
     73     * @var bool
     74     */
     75        public $field_has_data;
     76       
     77    /**
     78     * The field.
     79     *
     80     * @since BuddyPress (1.5.0)
     81     * @access public
     82     * @var int
     83     */
     84        public $field;
     85
     86    /**
     87     * A flag for whether the loop is currently being iterated.
     88     *
     89     * @since BuddyPress (1.5.0)
     90     * @access public
     91     * @var bool
     92     */
     93        public $in_the_loop;
     94       
     95    /**
     96     * The user ID.
     97     *
     98     * @since BuddyPress (1.5.0)
     99     * @access public
     100     * @var int
     101     */
     102        public $user_id;
    26103
    27104        function __construct( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false, $hide_empty_fields = false, $fetch_visibility_level = false, $update_meta_cache = true ) {
    28105                $this->groups = bp_xprofile_get_groups( array(