Changeset 9833 for trunk/src/bp-activity/classes/class-bp-activity-feed.php
- Timestamp:
- 05/03/2015 06:51:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-feed.php
r9819 r9833 18 18 * See {@link bp_activity_action_sitewide_feed()} as an example. 19 19 * 20 * Accepted parameters: 21 * id - internal id for the feed; should be alphanumeric only 22 * (required) 23 * title - RSS feed title 24 * link - Relevant link for the RSS feed 25 * description - RSS feed description 26 * ttl - Time-to-live (see inline doc in constructor) 27 * update_period - Part of the syndication module (see inline doc in 28 * constructor for more info) 29 * update_frequency - Part of the syndication module (see inline doc in 30 * constructor for more info) 31 * max - Number of feed items to display 32 * activity_args - Arguments passed to {@link bp_has_activities()} 33 * 20 * @param array $args { 21 * @type string $id Required. Internal id for the feed; should be alphanumeric only. 22 * @type string $title Optional. RSS feed title. 23 * @type string $link Optional. Relevant link for the RSS feed. 24 * @type string $description Optional. RSS feed description. 25 * @type string $ttl Optional. Time-to-live. (see inline doc in constructor) 26 * @type string $update_period Optional. Part of the syndication module. 27 * (see inline doc in constructor for more info) 28 * @type string $update_frequency Optional. Part of the syndication module. 29 * (see inline doc in constructor for more info) 30 * @type string $max Optional. Number of feed items to display. 31 * @type array $activity_args Optional. Arguments passed to {@link bp_has_activities()} 32 * } 34 33 * @since BuddyPress (1.8.0) 35 34 */ 36 35 class BP_Activity_Feed { 36 37 37 /** 38 38 * Holds our custom class properties. … … 50 50 * 51 51 * @param string $key 52 * 53 * @return bool Whether or not data variable exists. 52 54 */ 53 55 public function __isset( $key ) { return isset( $this->data[$key] ); } … … 57 59 * 58 60 * @param string $key 61 * 62 * @return mixed Data in variable if available or null. 59 63 */ 60 64 public function __get( $key ) { return isset( $this->data[$key] ) ? $this->data[$key] : null; } … … 124 128 * @since BuddyPress (1.8.0) 125 129 * 126 * @param BP_Activity_Feed Reference to current instance of activity feed.130 * @param BP_Activity_Feed $this Current instance of activity feed. Passed by reference. 127 131 */ 128 132 do_action_ref_array( 'bp_activity_feed_prefetch', array( &$this ) ); … … 142 146 * @since BuddyPress (1.8.0) 143 147 * 144 * @param BP_Activity_Feed Reference to current instance of activity feed.148 * @param BP_Activity_Feed $this Current instance of activity feed. Passed by reference. 145 149 */ 146 150 do_action_ref_array( 'bp_activity_feed_postfetch', array( &$this ) );
Note: See TracChangeset
for help on using the changeset viewer.