openvk/Web/Models/Repositories/ContentSearchRepository.php

35 lines
689 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
2020-06-07 19:04:43 +03:00
namespace openvk\Web\Models\Repositories;
2020-06-07 19:04:43 +03:00
use Chandler\Database\DatabaseConnection;
class ContentSearchRepository
{
private $ctx;
private $builder;
private $passedParams = [];
private $tables = [
"albums",
"photos",
"posts",
];
public function __construct()
2020-06-07 19:04:43 +03:00
{
$this->ctx = DatabaseConnection::i()->getContext();
$this->builder = $this->ctx;
}
2020-06-07 19:04:43 +03:00
private function markParameterAsPassed(string $param): void
{
if (!in_array($param, $this->passedParams)) {
2020-06-07 19:04:43 +03:00
$this->passedParams[] = $param;
}
2020-06-07 19:04:43 +03:00
}
public function setContentType() {}
2020-06-07 19:04:43 +03:00
}