Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/09/2013 10:27:13 PM (13 years ago)
Author:
johnjamesjacoby
Message:

PHP5'ize the BP_Notifications_Notification class, and add missing $order_by and $sort_order variables. See #5148.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-template.php

    r7549 r7553  
    100100 */
    101101class BP_Notifications_Template {
     102
    102103        /**
    103104         * The loop iterator.
     
    107108         * @var int
    108109         */
    109         var $current_notification = -1;
     110        public $current_notification = -1;
    110111
    111112        /**
     
    116117         * @var int
    117118         */
    118         var $current_notification_count;
     119        public $current_notification_count;
    119120
    120121        /**
     
    125126         * @var int
    126127         */
    127         var $total_notification_count;
     128        public $total_notification_count;
    128129
    129130        /**
     
    134135         * @var array
    135136         */
    136         var $notifications;
     137        public $notifications;
    137138
    138139        /**
     
    143144         * @var object
    144145         */
    145         var $notification;
     146        public $notification;
    146147
    147148        /**
     
    152153         * @var bool
    153154         */
    154         var $in_the_loop;
     155        public $in_the_loop;
    155156
    156157        /**
     
    161162         * @var int
    162163         */
    163         var $user_id;
     164        public $user_id;
    164165
    165166        /**
     
    170171         * @var int
    171172         */
    172         var $pag_page;
     173        public $pag_page;
    173174
    174175        /**
     
    179180         * @var int
    180181         */
    181         var $pag_num;
     182        public $pag_num;
    182183
    183184        /**
     
    188189         * @var string
    189190         */
    190         var $pag_links;
     191        public $pag_links;
    191192
    192193        /**
     
    197198         * @var string
    198199         */
    199         var $search_terms;
     200        public $search_terms;
     201
     202        /**
     203         * A database column to order the results by.
     204         *
     205         * @since BuddyPress (1.9.0)
     206         * @access public
     207         * @var string
     208         */
     209        public $order_by;
     210
     211        /**
     212         * The direction to sort the results (ASC or DESC)
     213         *
     214         * @since BuddyPress (1.9.0)
     215         * @access public
     216         * @var string
     217         */
     218        public $sort_order;
    200219
    201220        /**
Note: See TracChangeset for help on using the changeset viewer.