Changeset 10077 for trunk/src/bp-activity/bp-activity-admin.php
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-admin.php
r10065 r10077 6 6 * help text, on which this implementation is heavily based. 7 7 * 8 * @since 1.6.0 8 9 * @package BuddyPress 9 * @since BuddyPress (1.6.0) 10 * @subpackage Activity 10 * @subpackage ActivityAdmin 11 11 */ 12 12 … … 24 24 * Register the Activity component admin screen. 25 25 * 26 * @since BuddyPress (1.6)26 * @since 1.6.0 27 27 */ 28 28 function bp_activity_add_admin_menu() { … … 50 50 * adds the Activity page to the array of these menu items. 51 51 * 52 * @since BuddyPress (1.7.0)52 * @since 1.7.0 53 53 * 54 54 * @param array $custom_menus The list of top-level BP menu items. … … 68 68 * table row. 69 69 * 70 * @since BuddyPress (1.6.0)70 * @since 1.6.0 71 71 */ 72 72 function bp_activity_admin_reply() { … … 138 138 * Handle save/update of screen options for the Activity component admin screen. 139 139 * 140 * @since BuddyPress (1.6.0)140 * @since 1.6.0 141 141 * 142 142 * @param string $value Will always be false unless another plugin filters it first. … … 161 161 * Hide the advanced edit meta boxes by default, so we don't clutter the screen. 162 162 * 163 * @since BuddyPress (1.6.0)163 * @since 1.6.0 164 164 * 165 165 * @param array $hidden Array of items to hide. … … 178 178 * Filters default hidden metaboxes so plugins can alter list. 179 179 * 180 * @since BuddyPress (1.6.0)180 * @since 1.6.0 181 181 * 182 182 * @param array $hidden Default metaboxes to hide. … … 195 195 * - Catches POST and GET requests related to Activity. 196 196 * 197 * @since BuddyPress (1.6.0)197 * @since 1.6.0 198 198 * 199 199 * @global object $bp BuddyPress global settings. … … 213 213 * Fires at top of Activity admin page. 214 214 * 215 * @since BuddyPress (1.6.0)215 * @since 1.6.0 216 216 * 217 217 * @param string $doaction Current $_GET action being performed in admin screen. … … 321 321 * Filters list of IDs being spammed/un-spammed/deleted. 322 322 * 323 * @since BuddyPress (1.6.0)323 * @since 1.6.0 324 324 * 325 325 * @param array $activity_ids Activity IDs to spam/un-spam/delete. … … 413 413 * Passes an activity array counts how many were spam, not spam, deleted, and IDs that were errors. 414 414 * 415 * @since BuddyPress (1.6.0)415 * @since 1.6.0 416 416 * 417 417 * @param array $value Array holding spam, not spam, deleted counts, error IDs. … … 438 438 * Filters redirect URL after activity spamming/un-spamming/deletion occurs. 439 439 * 440 * @since BuddyPress (1.6.0)440 * @since 1.6.0 441 441 * 442 442 * @param string $redirect_to URL to redirect to. … … 555 555 * Fires before redirect so plugins can do something first on save action. 556 556 * 557 * @since BuddyPress (1.6.0)557 * @since 1.6.0 558 558 * 559 559 * @param array Array holding activity object and ID that holds error. … … 570 570 * Filters URL to redirect to after saving. 571 571 * 572 * @since BuddyPress (1.6.0)572 * @since 1.6.0 573 573 * 574 574 * @param string $redirect_to URL to redirect to. … … 588 588 * Output the Activity component admin screens. 589 589 * 590 * @since BuddyPress (1.6.0)590 * @since 1.6.0 591 591 */ 592 592 function bp_activity_admin() { … … 606 606 * Display the single activity edit screen. 607 607 * 608 * @since BuddyPress (1.6.0)608 * @since 1.6.0 609 609 */ 610 610 function bp_activity_admin_edit() { … … 641 641 * Fires before activity edit form is displays so plugins can modify the activity. 642 642 * 643 * @since BuddyPress (1.6.0)643 * @since 1.6.0 644 644 * 645 645 * @param array $value Array holding single activity object that was passed by reference. … … 703 703 * Status metabox for the Activity admin edit screen. 704 704 * 705 * @since BuddyPress (1.6.0)705 * @since 1.6.0 706 706 * 707 707 * @param object $item Activity item. … … 759 759 * Primary link metabox for the Activity admin edit screen. 760 760 * 761 * @since BuddyPress (1.6.0)761 * @since 1.6.0 762 762 * 763 763 * @param object $item Activity item. … … 776 776 * User ID metabox for the Activity admin edit screen. 777 777 * 778 * @since BuddyPress (1.6.0)778 * @since 1.6.0 779 779 * 780 780 * @param object $item Activity item. … … 794 794 * Format is [activity_type] => Pretty name for activity type. 795 795 * 796 * @since BuddyPress (2.0.0)796 * @since 2.0.0 797 797 * 798 798 * @return array … … 822 822 * Activity type metabox for the Activity admin edit screen. 823 823 * 824 * @since BuddyPress (1.6.0)824 * @since 1.6.0 825 825 * 826 826 * @param object $item Activity item. … … 868 868 * Primary item ID/Secondary item ID metabox for the Activity admin edit screen. 869 869 * 870 * @since BuddyPress (1.6.0)870 * @since 1.6.0 871 871 * 872 872 * @param object $item Activity item. … … 890 890 * Display the Activity admin index screen, which contains a list of all the activities. 891 891 * 892 * @since BuddyPress (1.6.0)892 * @since 1.6.0 893 893 * 894 894 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table. … … 958 958 * Fires before edit form is displayed so plugins can modify the activity messages. 959 959 * 960 * @since BuddyPress (1.6.0)960 * @since 1.6.0 961 961 * 962 962 * @param array $messages Array of messages to display at top of page. … … 1024 1024 * List table class for the Activity component admin page. 1025 1025 * 1026 * @since BuddyPress (1.6.0)1026 * @since 1.6.0 1027 1027 */ 1028 1028 class BP_Activity_List_Table extends WP_List_Table { … … 1033 1033 * e.g. "all", "pending", "approved", "spam"... 1034 1034 * 1035 * @since BuddyPress (1.6.0)1035 * @since 1.6.0 1036 1036 * @var string 1037 1037 */ … … 1041 1041 * How many activity items have been marked as spam. 1042 1042 * 1043 * @since BuddyPress (1.6.0)1043 * @since 1.6.0 1044 1044 * @var int 1045 1045 */ … … 1049 1049 * Store activity-to-user-ID mappings for use in the In Response To column. 1050 1050 * 1051 * @since BuddyPress (1.6.0)1051 * @since 1.6.0 1052 1052 * @var array 1053 1053 */ … … 1057 1057 * If users can comment on blog & forum activity items. 1058 1058 * 1059 * @since BuddyPress (2.2.2)1059 * @since 2.2.2 1060 1060 * 1061 1061 * @link https://buddypress.trac.wordpress.org/ticket/6277 … … 1068 1068 * Constructor. 1069 1069 * 1070 * @since BuddyPress (1.6.0)1070 * @since 1.6.0 1071 1071 */ 1072 1072 public function __construct() { … … 1087 1087 * Handle filtering of data, sorting, pagination, and any other data manipulation prior to rendering. 1088 1088 * 1089 * @since BuddyPress (1.6.0)1089 * @since 1.6.0 1090 1090 */ 1091 1091 function prepare_items() { … … 1189 1189 * Get an array of all the columns on the page. 1190 1190 * 1191 * @since BuddyPress (1.6.0)1191 * @since 1.6.0 1192 1192 * 1193 1193 * @return array Column headers. … … 1207 1207 * Get name of default primary column 1208 1208 * 1209 * @since BuddyPress (2.3.3)1209 * @since 2.3.3 1210 1210 * @access protected 1211 1211 * … … 1219 1219 * Display a message on screen when no items are found (e.g. no search matches). 1220 1220 * 1221 * @since BuddyPress (1.6.0)1221 * @since 1.6.0 1222 1222 */ 1223 1223 function no_items() { … … 1228 1228 * Output the Activity data table. 1229 1229 * 1230 * @since BuddyPress (1.6.0)1230 * @since 1.6.0 1231 1231 */ 1232 1232 function display() { … … 1258 1258 * Generate content for a single row of the table. 1259 1259 * 1260 * @since BuddyPress (1.6.0)1260 * @since 1.6.0 1261 1261 * 1262 1262 * @param object $item The current item. … … 1287 1287 * Get the list of views available on this table (e.g. "all", "spam"). 1288 1288 * 1289 * @since BuddyPress (1.6.0)1289 * @since 1.6.0 1290 1290 */ 1291 1291 function get_views() { … … 1301 1301 * Fires inside listing of views so plugins can add their own. 1302 1302 * 1303 * @since BuddyPress (1.6.0)1303 * @since 1.6.0 1304 1304 * 1305 1305 * @param string $url_base Current URL base for view. … … 1314 1314 * Get bulk actions. 1315 1315 * 1316 * @since BuddyPress (1.6.0)1316 * @since 1.6.0 1317 1317 * 1318 1318 * @return array Key/value pairs for the bulk actions dropdown. … … 1327 1327 * Filters the default bulk actions so plugins can add custom actions. 1328 1328 * 1329 * @since BuddyPress (1.6.0)1329 * @since 1.6.0 1330 1330 * 1331 1331 * @param array $actions Default available actions for bulk operations. … … 1337 1337 * Get the table column titles. 1338 1338 * 1339 * @since BuddyPress (1.6.0)1339 * @since 1.6.0 1340 1340 * 1341 1341 * @see WP_List_Table::single_row_columns() … … 1358 1358 * Currently, returns an empty array (no columns are sortable). 1359 1359 * 1360 * @since BuddyPress (1.6.0)1360 * @since 1.6.0 1361 1361 * @todo For this to work, BP_Activity_Activity::get() needs updating 1362 1362 * to support ordering by specific fields. … … 1375 1375 * Markup for the "filter" part of the form (i.e. which activity type to display). 1376 1376 * 1377 * @since BuddyPress (1.6.0)1377 * @since 1.6.0 1378 1378 * 1379 1379 * @param string $which 'top' or 'bottom'. … … 1459 1459 * Checkbox column markup. 1460 1460 * 1461 * @since BuddyPress (1.6.0)1461 * @since 1.6.0 1462 1462 * 1463 1463 * @see WP_List_Table::single_row_columns() … … 1472 1472 * Author column markup. 1473 1473 * 1474 * @since BuddyPress (1.6.0)1474 * @since 1.6.0 1475 1475 * 1476 1476 * @see WP_List_Table::single_row_columns() … … 1485 1485 * Action column markup. 1486 1486 * 1487 * @since BuddyPress (2.0.0)1487 * @since 2.0.0 1488 1488 * 1489 1489 * @see WP_List_Table::single_row_columns() … … 1506 1506 * Called "comment" in the CSS so we can re-use some WP core CSS. 1507 1507 * 1508 * @since BuddyPress (1.6.0)1508 * @since 1.6.0 1509 1509 * 1510 1510 * @see WP_List_Table::single_row_columns() … … 1565 1565 * Filters available actions for plugins to alter. 1566 1566 * 1567 * @since BuddyPress (1.6.0)1567 * @since 1.6.0 1568 1568 * 1569 1569 * @param array $actions Array of available actions user could use. … … 1584 1584 * Filters current activity item content. 1585 1585 * 1586 * @since BuddyPress (1.2.0)1586 * @since 1.2.0 1587 1587 * 1588 1588 * @param array $item Array index holding current activity item content. … … 1593 1593 * Filters current activity item action. 1594 1594 * 1595 * @since BuddyPress (1.2.0)1595 * @since 1.2.0 1596 1596 * 1597 1597 * @var array $item Array index holding current activity item action. … … 1606 1606 * "In response to" column markup. 1607 1607 * 1608 * @since BuddyPress (1.6.0)1608 * @since 1.6.0 1609 1609 * 1610 1610 * @see WP_List_Table::single_row_columns() … … 1618 1618 * Filters default list of default root activity types. 1619 1619 * 1620 * @since BuddyPress (1.6.0)1620 * @since 1.6.0 1621 1621 * 1622 1622 * @param array $value Array of default activity types. … … 1649 1649 * avoiding duplicate queries. 1650 1650 * 1651 * @since BuddyPress (1.6.0)1651 * @since 1.6.0 1652 1652 * 1653 1653 * @param int $activity_id Activity ID to retrieve User ID for. … … 1690 1690 * functions from working as intended. 1691 1691 * 1692 * @since BuddyPress (2.0.0)1692 * @since 2.0.0 1693 1693 * 1694 1694 * @param array $item An array version of the BP_Activity_Activity object. … … 1742 1742 * Filters if an activity item can be commented on or not. 1743 1743 * 1744 * @since BuddyPress (2.0.0)1744 * @since 2.0.0 1745 1745 * 1746 1746 * @param bool $can_comment Whether an activity item can be commented on or not. … … 1755 1755 * items plus their comments. This method converts it to a flat array. 1756 1756 * 1757 * @since BuddyPress (1.6.0)1757 * @since 1.6.0 1758 1758 * 1759 1759 * @param array $tree Source array.
Note: See TracChangeset
for help on using the changeset viewer.