HummingBirdAnimeClient/src/Aviat/AnimeClient/Base/Model/DB.php

34 lines
580 B
PHP

<?php
/**
* Base DB model
*/
namespace Aviat\AnimeClient\Base\Model;
use Aviat\AnimeClient\Base\Container;
/**
* Base model for database interaction
*/
class DB extends \Aviat\AnimeClient\Base\Model {
/**
* The query builder object
* @var object $db
*/
protected $db;
/**
* The database connection information array
* @var array $db_config
*/
protected $db_config;
/**
* Constructor
*/
public function __construct(Container $container)
{
parent::__construct($container);
$this->db_config = $this->config->database;
}
}
// End of BaseDBModel.php