Update Models\Post
This commit is contained in:
parent
1f657fb4cf
commit
1c0810e2df
13 changed files with 38 additions and 26 deletions
|
@ -12,10 +12,10 @@ namespace ForkBB\Models\Post;
|
|||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\DataModel;
|
||||
use ForkBB\Models\Forum\Model as Forum;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\User\Model as User;
|
||||
use ForkBB\Models\Forum\Forum;
|
||||
use ForkBB\Models\Post\Post;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
use ForkBB\Models\User\User;
|
||||
use PDO;
|
||||
use InvalidArgumentException;
|
||||
use RuntimeException;
|
||||
|
|
|
@ -12,8 +12,8 @@ namespace ForkBB\Models\Post;
|
|||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\DataModel;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\Forum\Model as Forum;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
use ForkBB\Models\Forum\Forum;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use RuntimeException;
|
||||
|
|
|
@ -11,8 +11,8 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\Post\Post;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
use InvalidArgumentException;
|
||||
use RuntimeException;
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
use ForkBB\Models\Post\Post;
|
||||
|
||||
class Move extends Action
|
||||
{
|
||||
|
|
|
@ -11,13 +11,19 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\DataModel;
|
||||
use ForkBB\Models\Forum\Model as Forum;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\User\Model as User;
|
||||
use ForkBB\Models\Forum\Forum;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
use ForkBB\Models\User\User;
|
||||
use RuntimeException;
|
||||
|
||||
class Model extends DataModel
|
||||
class Post extends DataModel
|
||||
{
|
||||
/**
|
||||
* Ключ модели для контейнера
|
||||
* @var string
|
||||
*/
|
||||
protected $cKey = 'Post';
|
||||
|
||||
/**
|
||||
* Получение родительской темы
|
||||
*/
|
|
@ -10,11 +10,17 @@ declare(strict_types=1);
|
|||
|
||||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\ManagerModel;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Manager;
|
||||
use ForkBB\Models\Post\Post;
|
||||
|
||||
class Manager extends ManagerModel
|
||||
class Posts extends Manager
|
||||
{
|
||||
/**
|
||||
* Ключ модели для контейнера
|
||||
* @var string
|
||||
*/
|
||||
protected $cKey = 'Posts';
|
||||
|
||||
/**
|
||||
* Создает новую модель сообщения
|
||||
*/
|
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Post\Post;
|
||||
|
||||
class PreviousPost extends Action
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
|
||||
class RebuildIndex extends Action
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Post\Post;
|
||||
use RuntimeException;
|
||||
|
||||
class Save extends Action
|
||||
|
|
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\User\Model as User;
|
||||
use ForkBB\Models\User\User;
|
||||
use RuntimeException;
|
||||
|
||||
class UpdateUsername extends Action
|
||||
|
|
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Post\Post;
|
||||
|
||||
class UserInfoFromIP extends Action
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Post\Post;
|
||||
use PDO;
|
||||
|
||||
class UserStat extends Action
|
||||
|
|
|
@ -11,9 +11,9 @@ declare(strict_types=1);
|
|||
namespace ForkBB\Models\Post;
|
||||
|
||||
use ForkBB\Models\Action;
|
||||
use ForkBB\Models\Post\Model as Post;
|
||||
use ForkBB\Models\Search\Model as Search;
|
||||
use ForkBB\Models\Topic\Model as Topic;
|
||||
use ForkBB\Models\Post\Post;
|
||||
use ForkBB\Models\Search\Search;
|
||||
use ForkBB\Models\Topic\Topic;
|
||||
use PDO;
|
||||
use InvalidArgumentException;
|
||||
use RuntimeException;
|
||||
|
|
Loading…
Reference in a new issue