Update PM model for block
This commit is contained in:
parent
40ea64c25a
commit
a1a104d143
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,7 @@ use ForkBB\Core\Container;
|
|||
use ForkBB\Models\DataModel;
|
||||
use ForkBB\Models\Model as ParentModel;
|
||||
use ForkBB\Models\PM\Cnst;
|
||||
use ForkBB\Models\PM\PBlock;
|
||||
use ForkBB\Models\PM\PPost;
|
||||
use ForkBB\Models\PM\PTopic;
|
||||
use ForkBB\Models\User\Model as User;
|
||||
|
@ -473,4 +474,14 @@ class Model extends ParentModel
|
|||
|
||||
$this->c->users->update($user);
|
||||
}
|
||||
|
||||
protected function getblock(): PBlock
|
||||
{
|
||||
return $this->c->PBlockModel;
|
||||
}
|
||||
|
||||
protected function setblock(): void
|
||||
{
|
||||
throw new RuntimeException('Read-only block property');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue