mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #1046 from openclassify/dia
#3820 TEXTİLCY ( İLAN EKLEMEK İSTEDİĞİNDE; SİTE AÇILMIYOR)
This commit is contained in:
commit
971119fdd0
@ -5,6 +5,14 @@ use Anomaly\Streams\Platform\Model\Cats\CatsCategoryEntryModel;
|
|||||||
|
|
||||||
class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
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)
|
public function getParentCats($id, $type = null, $noMainCat = true)
|
||||||
{
|
{
|
||||||
$cat = $this->getCat($id);
|
$cat = $this->getCat($id);
|
||||||
|
|||||||
@ -4,6 +4,8 @@ use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
|||||||
|
|
||||||
interface CategoryInterface extends EntryInterface
|
interface CategoryInterface extends EntryInterface
|
||||||
{
|
{
|
||||||
|
public function getCat($id);
|
||||||
|
|
||||||
public function getParentCats($id, $type = null, $noMainCat = true);
|
public function getParentCats($id, $type = null, $noMainCat = true);
|
||||||
|
|
||||||
public function getMetaKeywords();
|
public function getMetaKeywords();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user