#3820 TEXTİLCY ( İLAN EKLEMEK İSTEDİĞİNDE; SİTE AÇILMIYOR)

This commit is contained in:
Diatrex 2021-04-19 15:38:56 +03:00
parent 3e441a93d3
commit 9a05f36a18
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,14 @@ use Anomaly\Streams\Platform\Model\Cats\CatsCategoryEntryModel;
class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
{
public function getCat($id)
{
return CategoryModel::query()
->where('cats_category.id', $id)
->whereRaw('deleted_at IS NULL')
->first();
}
public function getParentCats($id, $type = null, $noMainCat = true)
{
$cat = $this->getCat($id);

View File

@ -4,6 +4,8 @@ use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
interface CategoryInterface extends EntryInterface
{
public function getCat($id);
public function getParentCats($id, $type = null, $noMainCat = true);
public function getMetaKeywords();