Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/06/2011 12:30:01 PM (15 years ago)
Author:
boonebgorges
Message:

Adds PHPDoc throughout the activity component. References #2345. Turbo props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r4961 r5109  
    11<?php
     2
    23/**
    34 * BuddyPress Activity Functions
     
    67 *
    78 * @package BuddyPress
    8  * @subpackage Activity Core
     9 * @subpackage ActivityFunctions
    910 */
    1011
     
    1516 * Checks $bp pages global and looks for directory page
    1617 *
    17  * @since 1.5
    18  *
    19  * @global object $bp Global BuddyPress settings object
     18 * @since 1.5.0
     19 *
     20 * @global object $bp BuddyPress global settings
     21 *
    2022 * @return bool True if set, False if empty
    2123 */
     
    2931 * Searches through the content of an activity item to locate usernames, designated by an @ sign
    3032 *
    31  * @package BuddyPress Activity
    32  * @since 1.5
    33  *
    34  * @param str $content The content of the activity, usually found in $activity->content
    35  * @return array $usernames Array of the found usernames that match existing users
     33 * @since 1.5.0
     34 *
     35 * @param string $content The content of the activity, usually found in $activity->content
     36 *
     37 * @return bool|array $usernames Array of the found usernames that match existing users. False if no matches
    3638 */
    3739function bp_activity_find_mentions( $content ) {
     
    4951 * Resets a user's unread mentions list and count
    5052 *
    51  * @package BuddyPress Activity
    52  * @since 1.5
     53 * @since 1.5.0
    5354 *
    5455 * @param int $user_id The id of the user whose unread mentions are being reset
     56 * @uses bp_delete_user_meta()
    5557 */
    5658function bp_activity_clear_new_mentions( $user_id ) {
     
    6264 * Adjusts new mention count for mentioned users when activity items are deleted or created
    6365 *
    64  * @package BuddyPress Activity
    65  * @since 1.5
     66 * @since 1.5.0
    6667 *
    6768 * @param int $activity_id The unique id for the activity item
     69 * @param string $action Can be 'delete' or 'add'. Defaults to 'add'
     70 *
     71 * @uses BP_Activity_Activity() {@link BP_Activity_Activity}
     72 * @uses bp_activity_find_mentions()
     73 * @uses bp_is_username_compatibility_mode()
     74 * @uses bp_core_get_userid_from_nicename()
     75 * @uses bp_get_user_meta()
     76 * @uses bp_update_user_meta()
    6877 */
    6978function bp_activity_adjust_mention_count( $activity_id, $action = 'add' ) {
     
    114123 * Formats notifications related to activity
    115124 *
    116  * @package BuddyPress Activity
    117  * @param str $action The type of activity item. Just 'new_at_mention' for now
     125 * @since 1.5.0
     126 *
     127 * @param string $action The type of activity item. Just 'new_at_mention' for now
    118128 * @param int $item_id The activity id
    119129 * @param int $secondary_item_id In the case of at-mentions, this is the mentioner's id
    120130 * @param int $total_items The total number of notifications to format
    121  * @param str $format 'string' to get a BuddyBar-compatible notification, 'array' otherwise
     131 * @param string $format 'string' to get a BuddyBar-compatible notification, 'array' otherwise
     132 *
     133 * @global object $bp BuddyPress global settings
     134 * @uses bp_loggedin_user_domain()
     135 * @uses bp_get_activity_slug()
     136 * @uses bp_core_get_user_displayname()
     137 * @uses apply_filters() To call the 'bp_activity_multiple_at_mentions_notification' hook
     138 * @uses apply_filters() To call the 'bp_activity_single_at_mentions_notification' hook
     139 * @uses do_action() To call 'activity_format_notifications' hook
     140 *
     141 * @return string $return Formatted @mention notification
    122142 */
    123143function bp_activity_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
     
    156176}
    157177
    158 /** Actions *******************************************************************/
     178/** Actions ******************************************************************/
    159179
    160180/**
    161181 * Sets the current action for a given activity stream location
    162182 *
    163  * @global obj $bp
    164  * @param str $component_id
    165  * @param str $key
    166  * @param str $value
    167  * @return bool False on error, True on success
     183 * @since 1.1.0
     184 *
     185 * @param string $component_id
     186 * @param string $key
     187 * @param string $value
     188 *
     189 * @global object $bp BuddyPress global settings
     190 * @uses apply_filters() To call the 'bp_activity_set_action' hook
     191 *
     192 * @return bool False if any param is empty, otherwise true
    168193 */
    169194function bp_activity_set_action( $component_id, $key, $value ) {
     
    186211 * Retreives the current action from a component and key
    187212 *
    188  * @global obj $bp
    189  * @param str $component_id
    190  * @param str $key
     213 * @since 1.1.0
     214 *
     215 * @param string $component_id
     216 * @param string $key
     217 *
     218 * @global object $bp BuddyPress global settings
     219 * @uses apply_filters() To call the 'bp_activity_get_action' hook
     220 *
    191221 * @return mixed False on error, action on success
    192222 */
     
    201231}
    202232
    203 /** Favorites *****************************************************************/
     233/** Favorites ****************************************************************/
    204234
    205235/**
    206236 * Get a users favorite activity stream items
    207237 *
    208  * @global obj $bp
     238 * @since 1.2.0
     239 *
    209240 * @param int $user_id
     241 *
     242 * @global object $bp BuddyPress global settings
     243 * @uses bp_get_user_meta()
     244 * @uses apply_filters() To call the 'bp_activity_get_user_favorites' hook
     245 *
    210246 * @return array Array of users favorite activity stream ID's
    211247 */
     
    226262 * Add an activity stream item as a favorite for a user
    227263 *
    228  * @global obj $bp
     264 * @since 1.2.0
     265 *
    229266 * @param int $activity_id
    230267 * @param int $user_id
    231  * @return bool
     268 *
     269 * @global object $bp BuddyPress global settings
     270 * @uses is_user_logged_in()
     271 * @uses bp_get_user_meta()
     272 * @uses bp_activity_get_meta()
     273 * @uses bp_update_user_meta()
     274 * @uses bp_activity_update_meta()
     275 * @uses do_action() To call the 'bp_activity_add_user_favorite' hook
     276 * @uses do_action() To call the 'bp_activity_add_user_favorite_fail' hook
     277 *
     278 * @return bool True on success, false on failure
    232279 */
    233280function bp_activity_add_user_favorite( $activity_id, $user_id = 0 ) {
     
    271318}
    272319
     320/**
     321 * Remove an activity stream item as a favorite for a user
     322 *
     323 * @since 1.2.0
     324 *
     325 * @param int $activity_id
     326 * @param int $user_id
     327 *
     328 * @global object $bp BuddyPress global settings
     329 * @uses is_user_logged_in()
     330 * @uses bp_get_user_meta()
     331 * @uses bp_activity_get_meta()
     332 * @uses bp_activity_update_meta()
     333 * @uses bp_update_user_meta()
     334 * @uses do_action() To call the 'bp_activity_remove_user_favorite' hook
     335 *
     336 * @return bool True on success, false on failure
     337 */
    273338function bp_activity_remove_user_favorite( $activity_id, $user_id = 0 ) {
    274339    global $bp;
     
    322387 * Check if activity exists by scanning content
    323388 *
    324  * @param str $content
     389 * @since 1.1.0
     390 *
     391 * @param string $content
     392 *
     393 * @uses BP_Activity_Activity::check_exists_by_content() {@link BP_Activity_Activity}
     394 * @uses apply_filters() To call the 'bp_activity_check_exists_by_content' hook
     395 *
    325396 * @return bool
    326397 */
     
    330401
    331402/**
    332  * Retreive the last time activity was updated
    333  *
    334  * @return str
     403 * Retrieve the last time activity was updated
     404 *
     405 * @since 1.0.0
     406 *
     407 * @uses BP_Activity_Activity::get_last_updated() {@link BP_Activity_Activity}
     408 * @uses apply_filters() To call the 'bp_activity_get_last_updated' hook
     409 *
     410 * @return string Date last updated
    335411 */
    336412function bp_activity_get_last_updated() {
     
    339415
    340416/**
    341  * Retreive the number of favorite activity stream items a user has
    342  *
    343  * @global obj $bp
     417 * Retrieve the number of favorite activity stream items a user has
     418 *
     419 * @since 1.2.0
     420 *
    344421 * @param int $user_id
    345  * @return int
     422 *
     423 * @global object $bp BuddyPress global settings
     424 * @uses BP_Activity_Activity::total_favorite_count() {@link BP_Activity_Activity}
     425 *
     426 * @return int Total favorite count
    346427 */
    347428function bp_activity_total_favorites_for_user( $user_id = 0 ) {
     
    355436}
    356437
    357 /** Meta **********************************************************************/
     438/** Meta *********************************************************************/
    358439
    359440/**
    360441 * Delete a meta entry from the DB for an activity stream item
    361442 *
    362  * @global DB $wpdb
    363  * @global obj $bp
     443 * @since 1.2.0
     444 *
    364445 * @param int $activity_id
    365  * @param str $meta_key
    366  * @param str $meta_value
    367  * @return bool
     446 * @param string $meta_key
     447 * @param string $meta_value
     448 *
     449 * @global object $wpdb
     450 * @global object $bp BuddyPress global settings
     451 * @uses wp_cache_delete()
     452 * @uses is_wp_error()
     453 *
     454 * @return bool True on success, false on failure
    368455 */
    369456function bp_activity_delete_meta( $activity_id, $meta_key = '', $meta_value = '' ) {
     
    410497 * Get activity meta
    411498 *
    412  * @global DB $wpdb
    413  * @global obj $bp
     499 * @since 1.2.0
     500 *
    414501 * @param int $activity_id
    415  * @param str $meta_key
     502 * @param string $meta_key
     503 *
     504 * @global object $wpdb
     505 * @global object $bp BuddyPress global settings
     506 * @uses wp_cache_get()
     507 * @uses wp_cache_set()
     508 * @uses apply_filters() To call the 'bp_activity_get_meta' hook
     509 *
    416510 * @return bool
    417511 */
     
    461555 * Update activity meta
    462556 *
    463  * @global DB $wpdb
    464  * @global obj $bp
     557 * @since 1.2.0
     558 *
    465559 * @param int $activity_id
    466  * @param str $meta_key
    467  * @param str $meta_value
    468  * @return bool
     560 * @param string $meta_key
     561 * @param string $meta_value
     562 *
     563 * @global object $wpdb
     564 * @global object $bp BuddyPress global settings
     565 * @uses maybe_serialize()
     566 * @uses bp_activity_delete_meta()
     567 * @uses wp_cache_set()
     568 *
     569 * @return bool True on success, false on failure
    469570 */
    470571function bp_activity_update_meta( $activity_id, $meta_key, $meta_value ) {
     
    511612}
    512613
    513 /** Clean up ******************************************************************/
    514 
    515 /**
    516  * Completely remove
     614/** Clean up *****************************************************************/
     615
     616/**
     617 * Completely remove a user's activity data
     618 *
     619 * @since 1.5.0
     620 *
    517621 * @param int $user_id
     622 *
     623 * @uses is_user_logged_in()
     624 * @uses bp_activity_delete()
     625 * @uses bp_delete_user_meta()
     626 * @uses do_action() To call the 'bp_activity_remove_data' hook
     627 * @uses do_action() To call the 'bp_activity_remove_all_user_data' hook
    518628 */
    519629function bp_activity_remove_all_user_data( $user_id = 0 ) {
     
    543653 * Register the activity stream actions for updates
    544654 *
    545  * @global obj $bp
     655 * @since 1.2.0
     656 *
     657 * @global object $bp BuddyPress global settings
     658 * @uses bp_activity_set_action()
     659 * @uses do_action() To call the 'updates_register_activity_actions' hook
    546660 */
    547661function updates_register_activity_actions() {
     
    554668add_action( 'bp_register_activity_actions', 'updates_register_activity_actions' );
    555669
    556 /*******************************************************************************
     670/******************************************************************************
    557671 * Business functions are where all the magic happens in BuddyPress. They will
    558672 * handle the actual saving or manipulation of information. Usually they will
     
    561675 */
    562676
     677/**
     678 * Retrieve an activity or activities
     679 *
     680 * @since 1.2.0
     681 *
     682 * @param array $args
     683 *
     684 * @uses wp_parse_args()
     685 * @uses wp_cache_get()
     686 * @uses wp_cache_set()
     687 * @uses BP_Activity_Activity::get() {@link BP_Activity_Activity}
     688 * @uses apply_filters_ref_array() To call the 'bp_activity_get' hook
     689 *
     690 * @return object $activity The activity/activities object
     691 */
    563692function bp_activity_get( $args = '' ) {
    564693    $defaults = array(
     
    604733 * Fetch specific activity items
    605734 *
    606  * @package BuddyPress
     735 * @since 1.2.0
    607736 *
    608737 * @param array $args See docs for $defaults for details
     738 *
     739 * @uses wp_parse_args()
     740 * @uses apply_filters() To call the 'bp_activity_get_specific' hook
     741 * @uses BP_Activity_Activity::get() {@link BP_Activity_Activity}
     742 *
    609743 * @return array The array returned by BP_Activity_Activity::get()
    610744 */
     
    625759}
    626760
     761/**
     762 * Add an activity item
     763 *
     764 * @since 1.1.0
     765 *
     766 * @param array $args See docs for $defaults for details
     767 *
     768 * @global object $bp BuddyPress global settings
     769 * @uses wp_parse_args()
     770 * @uses BP_Activity_Activity::save() {@link BP_Activity_Activity}
     771 * @uses BP_Activity_Activity::rebuild_activity_comment_tree() {@link BP_Activity_Activity}
     772 * @uses wp_cache_delete()
     773 * @uses do_action() To call the 'bp_activity_add' hook
     774 *
     775 * @return int The activity id
     776 */
    627777function bp_activity_add( $args = '' ) {
    628778    global $bp;
     
    680830}
    681831
     832/**
     833 * Post an activity update
     834 *
     835 * @since 1.2.0
     836 *
     837 * @param array $args See docs for $defaults for details
     838 *
     839 * @global object $bp BuddyPress global settings
     840 * @uses wp_parse_args()
     841 * @uses bp_core_is_user_spammer()
     842 * @uses bp_core_is_user_deleted()
     843 * @uses bp_core_get_userlink()
     844 * @uses bp_activity_add()
     845 * @uses apply_filters() To call the 'bp_activity_new_update_action' hook
     846 * @uses apply_filters() To call the 'bp_activity_new_update_content' hook
     847 * @uses apply_filters() To call the 'bp_activity_new_update_primary_link' hook
     848 * @uses bp_update_user_meta()
     849 * @uses wp_filter_kses()
     850 * @uses do_action() To call the 'bp_activity_posted_update' hook
     851 *
     852 * @return int $activity_id The activity id
     853 */
    682854function bp_activity_post_update( $args = '' ) {
    683855    global $bp;
     
    720892}
    721893
     894/**
     895 * Add an activity comment
     896 *
     897 * @since 1.2.0
     898 *
     899 * @param array $args See docs for $defaults for details
     900 *
     901 * @global object $bp BuddyPress global settings
     902 * @uses wp_parse_args()
     903 * @uses bp_activity_add()
     904 * @uses apply_filters() To call the 'bp_activity_comment_action' hook
     905 * @uses apply_filters() To call the 'bp_activity_comment_content' hook
     906 * @uses bp_activity_new_comment_notification()
     907 * @uses wp_cache_delete()
     908 * @uses do_action() To call the 'bp_activity_comment_posted' hook
     909 *
     910 * @return int $comment_id The comment id
     911 */
    722912function bp_activity_new_comment( $args = '' ) {
    723913    global $bp;
     
    769959
    770960/**
    771  * bp_activity_get_activity_id()
    772  *
    773961 * Fetch the activity_id for an existing activity entry in the DB.
    774962 *
    775  * @package BuddyPress Activity
     963 * @since 1.2.0
     964 *
     965 * @param array $args See docs for $defaults for details
     966 *
     967 * @uses wp_parse_args()
     968 * @uses apply_filters() To call the 'bp_activity_get_activity_id' hook
     969 * @uses BP_Activity_Activity::save() {@link BP_Activity_Activity}
     970 *
     971 * @return int $activity_id The activity id
    776972 */
    777973function bp_activity_get_activity_id( $args = '' ) {
     
    793989}
    794990
    795 /***
     991/**
    796992 * Deleting Activity
    797993 *
     
    8051001 *
    8061002 * If you are deleting an activity comment please use bp_activity_delete_comment();
    807 */
    808 
     1003 *
     1004 * @since 1.0.0
     1005 *
     1006 * @param array $args See docs for $defaults for details
     1007 *
     1008 * @global object $bp BuddyPress global settings
     1009 * @uses wp_parse_args()
     1010 * @uses bp_activity_adjust_mention_count()
     1011 * @uses BP_Activity_Activity::delete() {@link BP_Activity_Activity}
     1012 * @uses do_action() To call the 'bp_before_activity_delete' hook
     1013 * @uses bp_get_user_meta()
     1014 * @uses bp_delete_user_meta()
     1015 * @uses do_action() To call the 'bp_activity_delete' hook
     1016 * @uses do_action() To call the 'bp_activity_deleted_activities' hook
     1017 * @uses wp_cache_delete()
     1018 *
     1019 * @return bool True on success, false on failure
     1020 */
    8091021function bp_activity_delete( $args = '' ) {
    8101022    global $bp;
     
    8541066    return true;
    8551067}
    856     // The following functions have been deprecated in place of bp_activity_delete()
     1068
     1069    /**
     1070     * Delete an activity item by activity id
     1071     *
     1072     * You should use bp_activity_delete() instead
     1073     *
     1074     * @since 1.1.0
     1075     * @deprecated 1.2.0
     1076     *
     1077     * @param array $args See docs for $defaults for details
     1078     *
     1079     * @global object $bp BuddyPress global settings
     1080     * @uses wp_parse_args()
     1081     * @uses bp_activity_delete()
     1082     *
     1083     * @return bool True on success, false on failure
     1084     */
    8571085    function bp_activity_delete_by_item_id( $args = '' ) {
    8581086        global $bp;
     
    8651093    }
    8661094
     1095    /**
     1096     * Delete an activity item by activity id
     1097     *
     1098     * You should use bp_activity_delete() instead
     1099     *
     1100     * @since 1.1.0
     1101     * @deprecated 1.2.0
     1102     *
     1103     * @param int $activity_id The activity id
     1104     *
     1105     * @uses bp_activity_delete()
     1106     *
     1107     * @return bool True on success, false on failure
     1108     */
    8671109    function bp_activity_delete_by_activity_id( $activity_id ) {
    8681110        return bp_activity_delete( array( 'id' => $activity_id ) );
    8691111    }
    8701112
     1113    /**
     1114     * Delete an activity item by it's content
     1115     *
     1116     * You should use bp_activity_delete() instead
     1117     *
     1118     * @since 1.1.0
     1119     * @deprecated 1.2.0
     1120     *
     1121     * @param int $user_id The user id
     1122     * @param string $content The activity id
     1123     * @param string $component The activity component
     1124     * @param string $type The activity type
     1125     *
     1126     * @uses bp_activity_delete()
     1127     *
     1128     * @return bool True on success, false on failure
     1129     */
    8711130    function bp_activity_delete_by_content( $user_id, $content, $component, $type ) {
    8721131        return bp_activity_delete( array( 'user_id' => $user_id, 'content' => $content, 'component' => $component, 'type' => $type ) );
    8731132    }
    8741133
     1134    /**
     1135     * Delete a user's activity for a component
     1136     *
     1137     * You should use bp_activity_delete() instead
     1138     *
     1139     * @since 1.1.0
     1140     * @deprecated 1.2.0
     1141     *
     1142     * @param int $user_id The user id
     1143     * @param string $component The activity component
     1144     *
     1145     * @uses bp_activity_delete()
     1146     *
     1147     * @return bool True on success, false on failure
     1148     */
    8751149    function bp_activity_delete_for_user_by_component( $user_id, $component ) {
    8761150        return bp_activity_delete( array( 'user_id' => $user_id, 'component' => $component ) );
    8771151    }
    878     // End deprecation
    879 
     1152
     1153/**
     1154 * Delete an activity comment
     1155 *
     1156 * @since 1.2.0
     1157 *
     1158 * @param int $activity_id The activity id
     1159 * @param int $comment_id The activity comment id
     1160 *
     1161 * @uses apply_filters() To call the 'bp_activity_delete_comment_pre' hook
     1162 * @uses bp_activity_delete_children()
     1163 * @uses bp_activity_delete()
     1164 * @uses BP_Activity_Activity::rebuild_activity_comment_tree() {@link BP_Activity_Activity}
     1165 * @uses do_action() To call the 'bp_activity_delete_comment' hook
     1166 *
     1167 * @return bool True on success, false on failure
     1168 */
    8801169function bp_activity_delete_comment( $activity_id, $comment_id ) {
    8811170    /***
     
    9001189    return true;
    9011190}
     1191
     1192    /**
     1193     * Delete an activity comment's children
     1194     *
     1195     * @since 1.2.0
     1196     *
     1197     * @param int $activity_id The activity id
     1198     * @param int $comment_id The activity comment id
     1199     *
     1200     * @uses BP_Activity_Activity::get_child_comments() {@link BP_Activity_Activity}
     1201     * @uses bp_activity_delete_children()
     1202     * @uses bp_activity_delete()
     1203     */
    9021204    function bp_activity_delete_children( $activity_id, $comment_id) {
    9031205        // Recursively delete all children of this comment.
     
    9161218 * as well, if you already have it available.
    9171219 *
    918  * @package BuddyPress
    919  *
    920  * @uses apply_filters_ref_array() Filter 'bp_activity_get_permalink' to modify the function output
     1220 * @since 1.2.0
     1221 *
    9211222 * @param int $activity_id The unique id of the activity object
    922  * @param obj $activity_obj (optional) The activity object
    923  * @return str $link Permalink for the activity item
     1223 * @param object $activity_obj (optional) The activity object
     1224 *
     1225 * @global object $bp BuddyPress global settings
     1226 * @uses bp_get_root_domain()
     1227 * @uses bp_get_activity_root_slug()
     1228 * @uses apply_filters_ref_array() To call the 'bp_activity_get_permalink' hook
     1229 *
     1230 * @return string $link Permalink for the activity item
    9241231 */
    9251232function bp_activity_get_permalink( $activity_id, $activity_obj = false ) {
     
    9451252}
    9461253
     1254/**
     1255 * Hide a user's activity
     1256 *
     1257 * @since 1.2.0
     1258 *
     1259 * @param int $user_id The user id
     1260 *
     1261 * @uses BP_Activity_Activity::hide_all_for_user() {@link BP_Activity_Activity}
     1262 *
     1263 * @return bool True on success, false on failure
     1264 */
    9471265function bp_activity_hide_user_activity( $user_id ) {
    9481266    return BP_Activity_Activity::hide_all_for_user( $user_id );
     
    9501268
    9511269/**
    952  * bp_activity_thumbnail_content_images()
    953  *
    9541270 * Take content, remove all images and replace them with one thumbnail image.
    9551271 *
    956  * @package BuddyPress Activity
    957  * @param $content str - The content to work with
    958  * @param $link str - Optional. The URL that the image should link to
    959  * @return $content str - The content with images stripped and replaced with a single thumb.
     1272 * @since 1.2.0
     1273 *
     1274 * @param string $content The content to work with
     1275 * @param string $link Optional. The URL that the image should link to
     1276 *
     1277 * @uses esc_attr()
     1278 * @uses apply_filters() To call the 'bp_activity_thumbnail_content_images' hook
     1279 *
     1280 * @return string $content The content with images stripped and replaced with a single thumb.
    9601281 */
    9611282function bp_activity_thumbnail_content_images( $content, $link = false ) {
     
    10091330 * For that, see {@link bp_activity_comment_embed()}.
    10101331 *
     1332 * @since 1.5
     1333 *
    10111334 * @see BP_Embed
    10121335 * @see bp_embed_activity_cache()
    10131336 * @see bp_embed_activity_save_cache()
    1014  * @package BuddyPress Activity
    1015  * @since 1.5
     1337 *
     1338 * @uses add_filter() To attach 'bp_get_activity_id' to 'embed_post_id'
     1339 * @uses add_filter() To attach 'bp_embed_activity_cache' to 'bp_embed_get_cache'
     1340 * @uses add_action() To attach 'bp_embed_activity_save_cache' to 'bp_embed_update_cache'
    10161341 */
    10171342function bp_activity_embed() {
     
    10271352 * If no cache and link is embeddable, cache it.
    10281353 *
     1354 * @since 1.5
     1355 *
    10291356 * @see BP_Embed
    10301357 * @see bp_embed_activity_cache()
    10311358 * @see bp_embed_activity_save_cache()
    1032  * @package BuddyPress Activity
    1033  * @since 1.5
     1359 *
     1360 * @uses add_filter() To attach 'bp_get_activity_comment_id' to 'embed_post_id'
     1361 * @uses add_filter() To attach 'bp_embed_activity_cache' to 'bp_embed_get_cache'
     1362 * @uses add_action() To attach 'bp_embed_activity_save_cache' to 'bp_embed_update_cache'
    10341363 */
    10351364function bp_activity_comment_embed() {
     
    10431372 * When a user clicks on a "Read More" item, make sure embeds are correctly parsed and shown for the expanded content.
    10441373 *
    1045  * @global object $bp BuddyPress global settings
    1046  * @param BP_Activity_Activity $activity The activity that is being expanded
     1374 * @since 1.5
     1375 *
    10471376 * @see BP_Embed
    1048  * @since 1.5
     1377 *
     1378 * @param object $activity The activity that is being expanded
     1379 *
     1380 * @global object $bp BuddyPress global settings
     1381 * @uses add_filter() To attach create_function() to 'embed_post_id'
     1382 * @uses add_filter() To attach 'bp_embed_activity_cache' to 'bp_embed_get_cache'
     1383 * @uses add_action() To attach 'bp_embed_activity_save_cache' to 'bp_embed_update_cache'
    10491384 */
    10501385function bp_dtheme_embed_read_more( $activity ) {
     
    10641399 * {@link bp_activity_embed()} or any other component embeds.
    10651400 *
     1401 * @since 1.5
     1402 *
    10661403 * @see bp_activity_comment_embed()
    1067  * @package BuddyPress Activity
    1068  * @since 1.5
     1404 *
     1405 * @uses remove_filter() To remove 'bp_get_activity_comment_id' from 'embed_post_id'
    10691406 */
    10701407function bp_activity_comment_embed_after_recurse() {
     
    10771414 * Used during {@link BP_Embed::parse_oembed()} via {@link bp_activity_embed()}.
    10781415 *
    1079  * @package BuddyPress Activity
    10801416 * @since 1.5
     1417 *
     1418 * @uses bp_activity_get_meta()
     1419 *
     1420 * @return mixed The activity meta
    10811421 */
    10821422function bp_embed_activity_cache( $cache, $id, $cachekey ) {
     
    10881428 * Used during {@link BP_Embed::parse_oembed()} via {@link bp_activity_embed()}.
    10891429 *
    1090  * @package BuddyPress Activity
    10911430 * @since 1.5
     1431 *
     1432 * @uses bp_activity_update_meta()
    10921433 */
    10931434function bp_embed_activity_save_cache( $cache, $cachekey, $id ) {
Note: See TracChangeset for help on using the changeset viewer.