mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-28 14:37:19 +02:00
- update Component class structure and remove component helper function and ComponentLoader - update residual activitypub naming to fediverse
27 lines
649 B
PHP
27 lines
649 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Fediverse\Models;
|
|
|
|
use CodeIgniter\Database\ConnectionInterface;
|
|
use CodeIgniter\Model;
|
|
use CodeIgniter\Validation\ValidationInterface;
|
|
|
|
class BaseModel extends Model
|
|
{
|
|
/**
|
|
* Model constructor.
|
|
*
|
|
* @param ConnectionInterface|null $db DB Connection
|
|
* @param ValidationInterface|null $validation Validation
|
|
*/
|
|
public function __construct(ConnectionInterface &$db = null, ValidationInterface $validation = null)
|
|
{
|
|
parent::__construct($db, $validation);
|
|
|
|
$this->table = config('Fediverse')
|
|
->tablesPrefix . $this->table;
|
|
}
|
|
}
|