Add 'plugi-core/' from commit '6c478c54d048ab2fd5af4e8e79074153fb594c16'
git-subtree-dir: plugi-core git-subtree-mainline:d4c734cdbdgit-subtree-split:6c478c54d0
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Plugi\Repositories;
|
||||
|
||||
use Plugi\Contracts\PageTranslationRepositoryContract;
|
||||
|
||||
class PageTranslationRepository extends BaseRepository implements PageTranslationRepositoryContract
|
||||
{
|
||||
/**
|
||||
* The page translations database table.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table;
|
||||
|
||||
/**
|
||||
* The class that represents each page translation.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $class;
|
||||
|
||||
/**
|
||||
* PageTranslationRepository constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->table = empty(phpb_config('page.translation.table')) ? 'page_translations' : phpb_config('page.translation.table');
|
||||
parent::__construct();
|
||||
$this->class = phpb_instance('page.translation');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user