Changeset 6259 for trunk/bp-activity/bp-activity-admin.php
- Timestamp:
- 08/18/2012 10:15:09 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r6193 r6259 7 7 * 8 8 * @package BuddyPress 9 * @since 1.69 * @since BuddyPress (1.6) 10 10 * @subpackage Activity 11 11 */ … … 24 24 * Registers the Activity component admin screen 25 25 * 26 * @since 1.626 * @since BuddyPress (1.6) 27 27 */ 28 28 function bp_activity_add_admin_menu() { … … 43 43 * comment, and returns HTML for a new table row. 44 44 * 45 * @since 1.645 * @since BuddyPress (1.6) 46 46 */ 47 47 function bp_activity_admin_reply() { … … 117 117 * @param string $new_value Screen option form value 118 118 * @return string Option value. False to abandon update. 119 * @since 1.6119 * @since BuddyPress (1.6) 120 120 */ 121 121 function bp_activity_admin_screen_options( $value, $option, $new_value ) { … … 136 136 * @param WP_Screen $screen Screen identifier 137 137 * @return array Hidden Meta Boxes 138 * @since 1.0138 * @since BuddyPress (1.0) 139 139 */ 140 140 function bp_activity_admin_edit_hidden_metaboxes( $hidden, $screen ) { … … 154 154 * @global object $bp BuddyPress global settings 155 155 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table 156 * @since 1.6156 * @since BuddyPress (1.6) 157 157 */ 158 158 function bp_activity_admin_load() { … … 504 504 * Outputs the Activity component admin screens 505 505 * 506 * @since 1.6506 * @since BuddyPress (1.6) 507 507 */ 508 508 function bp_activity_admin() { … … 523 523 * 524 524 * @global int $screen_layout_columns Number of columns shown on this admin page 525 * @since 1.6525 * @since BuddyPress (1.6) 526 526 */ 527 527 function bp_activity_admin_edit() { … … 617 617 * 618 618 * @param object $item Activity item 619 * @since 1.6619 * @since BuddyPress (1.6) 620 620 */ 621 621 function bp_activity_admin_edit_metabox_status( $item ) { … … 672 672 * 673 673 * @param object $item Activity item 674 * @since 1.6674 * @since BuddyPress (1.6) 675 675 */ 676 676 function bp_activity_admin_edit_metabox_link( $item ) { … … 688 688 * 689 689 * @param object $item Activity item 690 * @since 1.6690 * @since BuddyPress (1.6) 691 691 */ 692 692 function bp_activity_admin_edit_metabox_userid( $item ) { … … 704 704 * @global object $bp BuddyPress global settings 705 705 * @param object $item Activity item 706 * @since 1.6706 * @since BuddyPress (1.6) 707 707 */ 708 708 function bp_activity_admin_edit_metabox_type( $item ) { … … 740 740 * 741 741 * @param object $item Activity item 742 * @since 1.6742 * @since BuddyPress (1.6) 743 743 */ 744 744 function bp_activity_admin_edit_metabox_itemids( $item ) { … … 762 762 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table 763 763 * @global string $plugin_page 764 * @since 1.6764 * @since BuddyPress (1.6) 765 765 */ 766 766 function bp_activity_admin_index() { … … 887 887 * List table class for the Activity component admin page. 888 888 * 889 * @since 1.6889 * @since BuddyPress (1.6) 890 890 */ 891 891 class BP_Activity_List_Table extends WP_List_Table { … … 893 893 * What type of view is being displayed? e.g. "All", "Pending", "Approved", "Spam"... 894 894 * 895 * @since 1.6895 * @since BuddyPress (1.6) 896 896 */ 897 897 public $view = 'all'; … … 900 900 * How many activity items have been marked as spam. 901 901 * 902 * @since 1.6902 * @since BuddyPress (1.6) 903 903 */ 904 904 public $spam_count = 0; … … 907 907 * Store activity-to-user-ID mappings for use in the In Response To column. 908 908 * 909 * @since 1.6909 * @since BuddyPress (1.6) 910 910 */ 911 911 protected $activity_user_id = array(); … … 914 914 * Constructor 915 915 * 916 * @since 1.6916 * @since BuddyPress (1.6) 917 917 */ 918 918 public function __construct() { … … 929 929 * Handle filtering of data, sorting, pagination, and any other data-manipulation required prior to rendering. 930 930 * 931 * @since 1.6931 * @since BuddyPress (1.6) 932 932 */ 933 933 function prepare_items() { … … 1031 1031 * 1032 1032 * @return array 1033 * @since 1.61033 * @since BuddyPress (1.6) 1034 1034 */ 1035 1035 function get_column_info() { … … 1046 1046 * Displays a message on screen when no items are found (e.g. no search matches) 1047 1047 * 1048 * @since 1.61048 * @since BuddyPress (1.6) 1049 1049 */ 1050 1050 function no_items() { … … 1055 1055 * Outputs the Activity data table 1056 1056 * 1057 * @since 1.61057 * @since BuddyPress (1.6) 1058 1058 */ 1059 1059 function display() { … … 1089 1089 * 1090 1090 * @param object $item The current item 1091 * @since 1.61091 * @since BuddyPress (1.6) 1092 1092 */ 1093 1093 function single_row( $item ) { … … 1103 1103 * Get the list of views available on this table (e.g. "all", "spam"). 1104 1104 * 1105 * @since 1.61105 * @since BuddyPress (1.6) 1106 1106 */ 1107 1107 function get_views() { … … 1121 1121 * 1122 1122 * @return array Key/value pairs for the bulk actions dropdown 1123 * @since 1.61123 * @since BuddyPress (1.6) 1124 1124 */ 1125 1125 function get_bulk_actions() { … … 1137 1137 * @see WP_List_Table::single_row_columns() 1138 1138 * @return array 1139 * @since 1.61139 * @since BuddyPress (1.6) 1140 1140 */ 1141 1141 function get_columns() { … … 1152 1152 * 1153 1153 * @return array 1154 * @since 1.61154 * @since BuddyPress (1.6) 1155 1155 * @todo For this to work, BP_Activity_Activity::get() needs updating to supporting ordering by specific fields 1156 1156 */ … … 1168 1168 * @global object $bp BuddyPress global settings 1169 1169 * @param string $which 'top' or 'bottom' 1170 * @since 1.61170 * @since BuddyPress (1.6) 1171 1171 */ 1172 1172 function extra_tablenav( $which ) { … … 1217 1217 * @param array $item A singular item (one full row) 1218 1218 * @see WP_List_Table::single_row_columns() 1219 * @since 1.61219 * @since BuddyPress (1.6) 1220 1220 */ 1221 1221 function column_cb( $item ) { … … 1228 1228 * @param array $item A singular item (one full row) 1229 1229 * @see WP_List_Table::single_row_columns() 1230 * @since 1.61230 * @since BuddyPress (1.6) 1231 1231 */ 1232 1232 function column_author( $item ) { … … 1241 1241 * @param array $item A singular item (one full row) 1242 1242 * @see WP_List_Table::single_row_columns() 1243 * @since 1.61243 * @since BuddyPress (1.6) 1244 1244 */ 1245 1245 function column_comment( $item ) { … … 1312 1312 * @param array $item A singular item (one full row) 1313 1313 * @see WP_List_Table::single_row_columns() 1314 * @since 1.61314 * @since BuddyPress (1.6) 1315 1315 */ 1316 1316 function column_response( $item ) { … … 1340 1340 * 1341 1341 * @param int $activity_id Activity ID to retrieve User ID for 1342 * @since 1.61342 * @since BuddyPress (1.6) 1343 1343 */ 1344 1344 protected function get_activity_user_id( $activity_id ) { … … 1374 1374 * @param array $tree Source array 1375 1375 * @return array Flattened array 1376 * @since 1.61376 * @since BuddyPress (1.6) 1377 1377 */ 1378 1378 public static function flatten_activity_array( $tree ){
Note: See TracChangeset
for help on using the changeset viewer.