35 lines
699 B
PHP
35 lines
699 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Hura8\Components\Media\Model;
|
||
|
|
|
||
|
|
use Hura8\Interfaces\iSearch;
|
||
|
|
use Hura8\System\Model\aSearchBaseModel;
|
||
|
|
|
||
|
|
|
||
|
|
class ItemMediaSearchModel extends aSearchBaseModel implements iSearch
|
||
|
|
{
|
||
|
|
|
||
|
|
private $filter_fields = [
|
||
|
|
'item_type' => "tb_item_media.item_type",
|
||
|
|
'item_id' => "tb_item_media.item_id",
|
||
|
|
'file_type' => "tb_item_media.file_type",
|
||
|
|
];
|
||
|
|
|
||
|
|
private $fulltext_fields = [
|
||
|
|
"keywords" => ["tb_item_media.title",],
|
||
|
|
];
|
||
|
|
|
||
|
|
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
parent::__construct(
|
||
|
|
"tb_item_media",
|
||
|
|
$this->fulltext_fields,
|
||
|
|
$this->filter_fields
|
||
|
|
);
|
||
|
|
|
||
|
|
//$this->createTableSearch();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|