Version 5.0.0 beta 7
This commit is contained in:
1 parent
fa2a720105
commit
54d5dcd0a0
156 files changed
+4337
-2995
No files matched your search
@@ -15,7 +15,8 @@ namespace IPS\convert\Software\Forums;
|
||||
|
||||
use Exception;
|
||||
use IPS\convert\Software;
|
||||
use IPS\convert\Software\Core\UBBthreads;
|
||||
use IPS\convert\Software\Core\UBBthreads as UBBthreadsCore;
|
||||
use IPS\convert\Software\Exception as SoftwareException;
|
||||
use IPS\DateTime;
|
||||
use IPS\Db;
|
||||
use IPS\forums\Forum;
|
||||
@@ -245,14 +246,14 @@ class UBBthreads extends Software
|
||||
/**
|
||||
* Pre-process content for the Invision Community text parser
|
||||
*
|
||||
* @param string The post
|
||||
* @param string|null Content Classname passed by post-conversion rebuild
|
||||
* @param int|null Content ID passed by post-conversion rebuild
|
||||
* @param string $post The post
|
||||
* @param string|null $className Content Classname passed by post-conversion rebuild
|
||||
* @param int|null $contentId Content ID passed by post-conversion rebuild
|
||||
* @return string The converted post
|
||||
*/
|
||||
public static function fixPostData( string $post, ?string $className=null, ?int $contentId=null ): string
|
||||
{
|
||||
return UBBthreads::fixPostData( $post, $className, $contentId );
|
||||
return UBBthreadsCore::fixPostData( $post, $className, $contentId );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -260,7 +261,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertForumsForums()
|
||||
public function convertForumsForums(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
@@ -299,7 +300,7 @@ class UBBthreads extends Software
|
||||
) );
|
||||
}
|
||||
|
||||
throw new \IPS\convert\Software\Exception;
|
||||
throw new SoftwareException;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -307,7 +308,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertForumsForumsFollowers()
|
||||
public function convertForumsForumsFollowers(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
@@ -329,7 +330,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertForumsTopics()
|
||||
public function convertForumsTopics(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'TOPIC_ID' );
|
||||
@@ -429,7 +430,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertForumsTopicsRatings()
|
||||
public function convertForumsTopicsRatings(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
@@ -450,7 +451,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertForumsTopicsFollowers()
|
||||
public function convertForumsTopicsFollowers(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
@@ -472,7 +473,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertForumsPosts()
|
||||
public function convertForumsPosts(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'POST_ID' );
|
||||
@@ -503,7 +504,7 @@ class UBBthreads extends Software
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertAttachments()
|
||||
public function convertAttachments(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'FILE_ID' );
|
||||
|
||||
Reference in new issue
Block a user