Changeset 7472 for trunk/bp-activity/bp-activity-admin.php
- Timestamp:
- 10/24/2013 12:08:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r7391 r7472 1 1 <?php 2 2 /** 3 * BuddyPress Activity component admin screen 4 * 5 * Props to WordPress core for the Comments admin screen, and its contextual help text,6 * on which this implementation is heavily based.3 * BuddyPress Activity component admin screen. 4 * 5 * Props to WordPress core for the Comments admin screen, and its contextual 6 * help text, on which this implementation is heavily based. 7 7 * 8 8 * @package BuddyPress 9 * @since BuddyPress (1.6 )9 * @since BuddyPress (1.6.0) 10 10 * @subpackage Activity 11 11 */ … … 22 22 23 23 /** 24 * Register sthe Activity component admin screen.24 * Register the Activity component admin screen. 25 25 * 26 26 * @since BuddyPress (1.6) … … 50 50 * adds the Activity page to the array of these menu items. 51 51 * 52 * @since BuddyPress (1.7 )52 * @since BuddyPress (1.7.0) 53 53 * 54 54 * @param array $custom_menus The list of top-level BP menu items. … … 67 67 * table row. 68 68 * 69 * @since BuddyPress (1.6 )69 * @since BuddyPress (1.6.0) 70 70 */ 71 71 function bp_activity_admin_reply() { … … 137 137 * Handle save/update of screen options for the Activity component admin screen. 138 138 * 139 * @since BuddyPress (1.6) 140 * 141 * @param string $value Will always be false unless another plugin filters it first. 139 * @since BuddyPress (1.6.0) 140 * 141 * @param string $value Will always be false unless another plugin filters it 142 * first. 142 143 * @param string $option Screen option name. 143 144 * @param string $new_value Screen option form value. … … 159 160 * Hide the advanced edit meta boxes by default, so we don't clutter the screen. 160 161 * 161 * @since BuddyPress (1.6 )162 * @since BuddyPress (1.6.0) 162 163 * 163 164 * @param WP_Screen $screen Screen identifier. … … 183 184 * - Catches POST and GET requests related to Activity 184 185 * 185 * @since BuddyPress (1.6 )186 * @since BuddyPress (1.6.0) 186 187 * 187 188 * @global object $bp BuddyPress global settings. … … 533 534 534 535 /** 535 * Output sthe Activity component admin screens.536 * 537 * @since BuddyPress (1.6 )536 * Output the Activity component admin screens. 537 * 538 * @since BuddyPress (1.6.0) 538 539 */ 539 540 function bp_activity_admin() { … … 553 554 * Display the single activity edit screen. 554 555 * 555 * @since BuddyPress (1.6 )556 * @since BuddyPress (1.6.0) 556 557 */ 557 558 function bp_activity_admin_edit() { … … 644 645 * Status metabox for the Activity admin edit screen. 645 646 * 646 * @since BuddyPress (1.6 )647 * @since BuddyPress (1.6.0) 647 648 * 648 649 * @param object $item Activity item. … … 700 701 * Primary link metabox for the Activity admin edit screen. 701 702 * 702 * @since BuddyPress (1.6 )703 * @since BuddyPress (1.6.0) 703 704 * 704 705 * @param object $item Activity item. … … 717 718 * User ID metabox for the Activity admin edit screen. 718 719 * 719 * @since BuddyPress (1.6 )720 * @since BuddyPress (1.6.0) 720 721 * 721 722 * @param object $item Activity item. … … 733 734 * Activity type metabox for the Activity admin edit screen 734 735 * 735 * @since BuddyPress (1.6 )736 * 737 * @global object $bp BuddyPress global settings 738 * 739 * @param object $item Activity item 736 * @since BuddyPress (1.6.0) 737 * 738 * @global object $bp BuddyPress global settings. 739 * 740 * @param object $item Activity item. 740 741 */ 741 742 function bp_activity_admin_edit_metabox_type( $item ) { … … 771 772 * Primary item ID/Secondary item ID metabox for the Activity admin edit screen. 772 773 * 773 * @since BuddyPress (1.6 )774 * 775 * @param object $item Activity item 774 * @since BuddyPress (1.6.0) 775 * 776 * @param object $item Activity item. 776 777 */ 777 778 function bp_activity_admin_edit_metabox_itemids( $item ) { … … 793 794 * Display the Activity admin index screen, which contains a list of all the activities. 794 795 * 795 * @since BuddyPress (1.6) 796 * 797 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table. 796 * @since BuddyPress (1.6.0) 797 * 798 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list 799 * table. 798 800 * @global string $plugin_page The current plugin page. 799 801 */ … … 926 928 927 929 /** 928 * What type of view is being displayed? e.g. "All", "Pending", "Approved", "Spam"... 929 * 930 * @since BuddyPress (1.6) 931 */ 930 * What type of view is being displayed? 931 * 932 * e.g. "all", "pending", "approved", "spam"... 933 * 934 * @since BuddyPress (1.6.0) 935 * @var string 936 */ 932 937 public $view = 'all'; 933 938 … … 935 940 * How many activity items have been marked as spam. 936 941 * 937 * @since BuddyPress (1.6) 942 * @since BuddyPress (1.6.0) 943 * @var int 938 944 */ 939 945 public $spam_count = 0; … … 942 948 * Store activity-to-user-ID mappings for use in the In Response To column. 943 949 * 944 * @since BuddyPress (1.6) 950 * @since BuddyPress (1.6.0) 951 * @var array 945 952 */ 946 953 protected $activity_user_id = array(); … … 949 956 * Constructor. 950 957 * 951 * @since BuddyPress (1.6 )958 * @since BuddyPress (1.6.0) 952 959 */ 953 960 public function __construct() { … … 962 969 963 970 /** 964 * Handle filtering of data, sorting, pagination, and any other data -manipulation requiredprior to rendering.965 * 966 * @since BuddyPress (1.6 )971 * Handle filtering of data, sorting, pagination, and any other data manipulation prior to rendering. 972 * 973 * @since BuddyPress (1.6.0) 967 974 */ 968 975 function prepare_items() { … … 1065 1072 * Get an array of all the columns on the page. 1066 1073 * 1067 * @since BuddyPress (1.6 )1068 * 1069 * @return array 1074 * @since BuddyPress (1.6.0) 1075 * 1076 * @return array Column headers. 1070 1077 */ 1071 1078 function get_column_info() { … … 1080 1087 1081 1088 /** 1082 * Display sa message on screen when no items are found (e.g. no search matches).1083 * 1084 * @since BuddyPress (1.6 )1089 * Display a message on screen when no items are found (e.g. no search matches). 1090 * 1091 * @since BuddyPress (1.6.0) 1085 1092 */ 1086 1093 function no_items() { … … 1089 1096 1090 1097 /** 1091 * Output sthe Activity data table.1092 * 1093 * @since BuddyPress (1.6 )1098 * Output the Activity data table. 1099 * 1100 * @since BuddyPress (1.6.0) 1094 1101 */ 1095 1102 function display() { … … 1121 1128 1122 1129 /** 1123 * Generate scontent for a single row of the table.1124 * 1125 * @since BuddyPress (1.6 )1126 * 1127 * @param object $item The current item 1130 * Generate content for a single row of the table. 1131 * 1132 * @since BuddyPress (1.6.0) 1133 * 1134 * @param object $item The current item. 1128 1135 */ 1129 1136 function single_row( $item ) { … … 1146 1153 * Get the list of views available on this table (e.g. "all", "spam"). 1147 1154 * 1148 * @since BuddyPress (1.6 )1155 * @since BuddyPress (1.6.0) 1149 1156 */ 1150 1157 function get_views() { … … 1163 1170 * Get bulk actions. 1164 1171 * 1165 * @since BuddyPress (1.6 )1172 * @since BuddyPress (1.6.0) 1166 1173 * 1167 1174 * @return array Key/value pairs for the bulk actions dropdown. … … 1179 1186 * Get the table column titles. 1180 1187 * 1181 * @since BuddyPress (1.6 )1188 * @since BuddyPress (1.6.0) 1182 1189 * 1183 1190 * @see WP_List_Table::single_row_columns() … … 1199 1206 * Currently, returns an empty array (no columns are sortable). 1200 1207 * 1201 * @since BuddyPress (1.6) 1202 * @todo For this to work, BP_Activity_Activity::get() needs updating to supporting ordering by specific fields 1208 * @since BuddyPress (1.6.0) 1209 * @todo For this to work, BP_Activity_Activity::get() needs updating 1210 * to support ordering by specific fields. 1203 1211 * 1204 1212 * @return array The columns that can be sorted on the Activity screen. … … 1215 1223 * Markup for the "filter" part of the form (i.e. which activity type to display). 1216 1224 * 1217 * @since BuddyPress (1.6 )1225 * @since BuddyPress (1.6.0) 1218 1226 * 1219 1227 * @param string $which 'top' or 'bottom'. … … 1248 1256 * Checkbox column markup. 1249 1257 * 1250 * @since BuddyPress (1.6 )1258 * @since BuddyPress (1.6.0) 1251 1259 * 1252 1260 * @see WP_List_Table::single_row_columns() … … 1261 1269 * Author column markup. 1262 1270 * 1263 * @since BuddyPress (1.6 )1271 * @since BuddyPress (1.6.0) 1264 1272 * 1265 1273 * @see WP_List_Table::single_row_columns() 1266 1274 * 1267 * @param array $item A singular item (one full row) 1275 * @param array $item A singular item (one full row). 1268 1276 */ 1269 1277 function column_author( $item ) { … … 1276 1284 * Called "comment" in the CSS so we can re-use some WP core CSS. 1277 1285 * 1278 * @since BuddyPress (1.6 )1286 * @since BuddyPress (1.6.0) 1279 1287 * 1280 1288 * @see WP_List_Table::single_row_columns() 1281 &1289 * 1282 1290 * @param array $item A singular item (one full row). 1283 1291 */ … … 1350 1358 * "In response to" column markup. 1351 1359 * 1352 * @since BuddyPress (1.6 )1360 * @since BuddyPress (1.6.0) 1353 1361 * 1354 1362 * @see WP_List_Table::single_row_columns() … … 1384 1392 * avoiding duplicate queries. 1385 1393 * 1386 * @since BuddyPress (1.6 )1394 * @since BuddyPress (1.6.0) 1387 1395 * 1388 1396 * @param int $activity_id Activity ID to retrieve User ID for. … … 1422 1430 * items plus their comments. This method converts it to a flat array. 1423 1431 * 1424 * @since BuddyPress (1.6 )1432 * @since BuddyPress (1.6.0) 1425 1433 * 1426 1434 * @param array $tree Source array.
Note: See TracChangeset
for help on using the changeset viewer.