mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php namespace Visiosoft\AdvsModule\Adv\Contract;
|
|
|
|
use Anomaly\Streams\Platform\Entry\Contract\EntryRepositoryInterface;
|
|
|
|
interface AdvRepositoryInterface extends EntryRepositoryInterface
|
|
{
|
|
public function findById($id);
|
|
|
|
public function searchAdvs(
|
|
$type, $param = null, $customParameters = null,
|
|
$limit = null, $category = null, $city = null, $paginate = true
|
|
);
|
|
|
|
public function softDeleteAdv($id);
|
|
|
|
public function getListItemAdv($id);
|
|
|
|
public function addAttributes($advs);
|
|
|
|
public function getLocationNames($adv);
|
|
|
|
public function getCatNames($adv);
|
|
|
|
public function cover_image_update($adv);
|
|
|
|
public function getRecommendedAds($id);
|
|
|
|
public function getLastAd($id);
|
|
|
|
public function getAdvArray($id);
|
|
|
|
public function getQuantity($quantity, $type, $item);
|
|
|
|
public function findByIds($ids);
|
|
|
|
public function latestAds();
|
|
|
|
public function getByCat($catID, $level = 1);
|
|
|
|
public function getCategoriesWithAdID($id);
|
|
|
|
public function extendAds($allAds, $isAdmin = false);
|
|
|
|
public function getByUsersIDs($usersIDs);
|
|
|
|
public function getPopular();
|
|
|
|
public function approveAds($adsIDs);
|
|
}
|