Changeset 10426
- Timestamp:
- 12/22/2015 05:42:32 AM (9 years ago)
- Location:
- trunk/src/bp-blogs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-functions.php
r10417 r10426 1278 1278 * @see BP_Blogs_Blog::get_all() for a description of parameters and return values. 1279 1279 * 1280 * @param int $limit See {@BP_Blogs_Blog::get_all()}.1281 * @param int $page See {@BP_Blogs_Blog::get_all()}.1280 * @param int|null $limit See {@BP_Blogs_Blog::get_all()}. 1281 * @param int|null $page See {@BP_Blogs_Blog::get_all()}. 1282 1282 * @return array See {@BP_Blogs_Blog::get_all()}. 1283 1283 */ … … 1291 1291 * @see BP_Blogs_Blog::get() for a description of parameters and return values. 1292 1292 * 1293 * @param int $limit See {@BP_Blogs_Blog::get()}.1294 * @param int $page See {@BP_Blogs_Blog::get()}.1293 * @param int|null $limit See {@BP_Blogs_Blog::get()}. 1294 * @param int|null $page See {@BP_Blogs_Blog::get()}. 1295 1295 * @return array See {@BP_Blogs_Blog::get()}. 1296 1296 */ -
trunk/src/bp-blogs/classes/class-bp-blogs-blog.php
r10417 r10426 45 45 * Constructor method. 46 46 * 47 * @param int $id Optional. The ID of the blog.47 * @param int|null $id Optional. The ID of the blog. 48 48 */ 49 49 public function __construct( $id = null ) { … … 270 270 * Delete the record of a given blog for a specific user. 271 271 * 272 * @param int $blog_id The blog being removed.273 * @param int $user_id Optional. The ID of the user from whom the blog is274 * being removed. If absent, defaults to the logged-in user ID.272 * @param int $blog_id The blog being removed. 273 * @param int|null $user_id Optional. The ID of the user from whom the blog is 274 * being removed. If absent, defaults to the logged-in user ID. 275 275 * @return int|bool Number of rows deleted on success, false on failure. 276 276 */ … … 289 289 * Delete all of a user's blog associations in the BP tables. 290 290 * 291 * @param int $user_id Optional. The ID of the user whose blog associations292 * are being deleted. If absent, defaults to logged-in user ID.291 * @param int|null $user_id Optional. The ID of the user whose blog associations 292 * are being deleted. If absent, defaults to logged-in user ID. 293 293 * @return int|bool Number of rows deleted on success, false on failure. 294 294 */ … … 390 390 * cap. 391 391 * 392 * @param int $user_id Optional. ID of the user whose blogs are being393 * queried. Defaults to logged-in user.392 * @param int|null $user_id Optional. ID of the user whose blogs are being 393 * queried. Defaults to logged-in user. 394 394 * @return int Blog count for the user. 395 395 */ … … 416 416 * blogmeta table. 417 417 * 418 * @param string $filter The search term.419 * @param int 420 * Default: null (no limit).421 * @param int 422 * null (no limit).418 * @param string $filter The search term. 419 * @param int|null $limit Optional. The maximum number of items to return. 420 * Default: null (no limit). 421 * @param int|null $page Optional. The page of results to return. Default: 422 * null (no limit). 423 423 * @return array Multidimensional results array, structured as follows: 424 424 * 'blogs' - Array of located blog objects. … … 454 454 * 'bp_moderate' cap. 455 455 * 456 * @param int $limit Optional. The maximum number of items to return.457 * Default: null (no limit).458 * @param int $page Optional. The page of results to return. Default:459 * null (no limit).456 * @param int|null $limit Optional. The maximum number of items to return. 457 * Default: null (no limit). 458 * @param int|null $page Optional. The page of results to return. Default: 459 * null (no limit). 460 460 * @return array Multidimensional results array, structured as follows: 461 461 * 'blogs' - Array of located blog objects. … … 482 482 * 'bp_moderate' cap. 483 483 * 484 * @param string $letter The letter you're looking for.485 * @param int 486 * Default: null (no limit).487 * @param int 488 * null (no limit).484 * @param string $letter The letter you're looking for. 485 * @param int|null $limit Optional. The maximum number of items to return. 486 * Default: null (no limit). 487 * @param int|null $page Optional. The page of results to return. Default: 488 * null (no limit). 489 489 * @return array Multidimensional results array, structured as follows: 490 490 * 'blogs' - Array of located blog objects.
Note: See TracChangeset
for help on using the changeset viewer.