Changeset 10108 for trunk/src/bp-core/classes/class-bp-suggestions.php
- Timestamp:
- 09/13/2015 02:02:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-suggestions.php
r10012 r10108 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 24 24 * recommendations provided in the phpDoc blocks, particularly the expected return types. 25 25 * 26 * @since BuddyPress (2.1.0)26 * @since 2.1.0 27 27 */ 28 28 abstract class BP_Suggestions { … … 33 33 * If your custom service requires further defaults, add them here. 34 34 * 35 * @since BuddyPress (2.1.0)35 * @since 2.1.0 36 36 * @var array 37 37 */ … … 47 47 * This includes `$default_args`, as well as the user-supplied values. 48 48 * 49 * @since BuddyPress (2.1.0)49 * @since 2.1.0 50 50 * @var array 51 51 */ … … 58 58 * 59 59 * @param array $args Optional. If set, used as the parameters for the suggestions service query. 60 * @since BuddyPress (2.1.0)60 * @since 2.1.0 61 61 */ 62 62 public function __construct( array $args = array() ) { … … 75 75 * Mandatory. 76 76 * } 77 * @since BuddyPress (2.1.0)77 * @since 2.1.0 78 78 */ 79 79 public function set_query( array $args = array() ) { … … 87 87 * If validation fails, you must return a WP_Error object. 88 88 * 89 * @since BuddyPress (2.1.0)89 * @since 2.1.0 90 90 * 91 91 * @return true|WP_Error If validation fails, return a WP_Error object. On success, return true (bool). … … 98 98 * Filters the arguments to be validated for the BP_Suggestions query. 99 99 * 100 * @since BuddyPress (2.1.0)100 * @since 2.1.0 101 101 * 102 102 * @param BP_Suggestions $value Arguments to be validated. … … 118 118 * Filters the status of validation for the BP_Suggestions query. 119 119 * 120 * @since BuddyPress (2.1.0)120 * @since 2.1.0 121 121 * 122 122 * @param bool $value Whether or not the values are valid. … … 135 135 * For example: { 'ID': 'admin', 'image': 'http://example.com/logo.png', 'name': 'Name Surname' } 136 136 * 137 * @since BuddyPress (2.1.0)137 * @since 2.1.0 138 138 * 139 139 * @return array|WP_Error Array of results. If there were problems, returns a WP_Error object.
Note: See TracChangeset
for help on using the changeset viewer.