Version 4.2.0

This commit is contained in:
Neo committed 2025-12-19 05:44:59 -08:00
1 parent 0dc2aee5ed
commit 96997ddd8e
2074 files changed
+125454 -55780

No files matched your search

+26 -7
View File
@@ -1,13 +1,12 @@
<?php
/**
* @brief Topics API
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Community Suite
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @subpackage Forums
* @since 4 Dec 2015
* @version SVN_VERSION_NUMBER
*/
namespace IPS\forums\api;
@@ -81,9 +80,29 @@ class _topics extends \IPS\Content\Api\ItemController
/* Return */
return $this->_list( $where, 'forums' );
}
/**
* GET /forums/topics/{id}
* View information about a specific topic
*
* @param int $id ID Number
* @throws 2F294/9 INVALID_ID The topic ID does not exist
* @return \IPS\forums\Topic
*/
public function GETitem( $id )
{
try
{
return $this->_view( $id );
}
catch ( \OutOfRangeException $e )
{
throw new \IPS\Api\Exception( 'INVALID_ID', '2F294/9', 404 );
}
}
/**
* GET /forums/topics/{id}/posts
* Get posts in a topic
*
* @param int $id ID Number
@@ -93,7 +112,7 @@ class _topics extends \IPS\Content\Api\ItemController
* @throws 1F294/1 INVALID_ID The topic ID does not exist
* @return \IPS\Api\PaginatedResponse<IPS\forums\Topic\Post>
*/
public function GETitem( $id )
public function GETitem_posts( $id )
{
try
{