mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-06 21:36:06 -06:00
#2450 store module (e-madencilik) improvments
This commit is contained in:
parent
064fc0498f
commit
508e0ab15d
@ -13,6 +13,7 @@ use Visiosoft\LocationModule\Country\CountryModel;
|
|||||||
use Visiosoft\CartsModule\Cart\Command\GetCart;
|
use Visiosoft\CartsModule\Cart\Command\GetCart;
|
||||||
use Visiosoft\LocationModule\District\DistrictModel;
|
use Visiosoft\LocationModule\District\DistrictModel;
|
||||||
use Visiosoft\LocationModule\Neighborhood\NeighborhoodModel;
|
use Visiosoft\LocationModule\Neighborhood\NeighborhoodModel;
|
||||||
|
use Visiosoft\LocationModule\Village\VillageModel;
|
||||||
|
|
||||||
class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||||
{
|
{
|
||||||
@ -373,6 +374,13 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
return $neighborhood ? $neighborhood->name : false;
|
return $neighborhood ? $neighborhood->name : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getVillage()
|
||||||
|
{
|
||||||
|
$villageModel = new VillageModel();
|
||||||
|
$village = $villageModel->newQuery()->find($this->village);
|
||||||
|
return $village ? $village->name : false;
|
||||||
|
}
|
||||||
|
|
||||||
public function expired()
|
public function expired()
|
||||||
{
|
{
|
||||||
return $this->finish_at ? $this->finish_at < Carbon::now() : true;
|
return $this->finish_at ? $this->finish_at < Carbon::now() : true;
|
||||||
|
|||||||
@ -4,5 +4,81 @@ use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
|||||||
|
|
||||||
interface AdvInterface extends EntryInterface
|
interface AdvInterface extends EntryInterface
|
||||||
{
|
{
|
||||||
|
public function is_enabled($slug);
|
||||||
|
|
||||||
|
public function is_enabled_extension($slug);
|
||||||
|
|
||||||
|
public function is_active($id);
|
||||||
|
|
||||||
|
public function getAdv($id = null, $nullable_ad = false, $trashed = false);
|
||||||
|
|
||||||
|
public function userAdv($nullable_ad = false, $checkRole = true);
|
||||||
|
|
||||||
|
public function getAdvByCat($cat_id);
|
||||||
|
|
||||||
|
public function pendingAdvsByUser();
|
||||||
|
|
||||||
|
public function favsAdvsByUser($fav_ids);
|
||||||
|
|
||||||
|
public function myAdvsByUser();
|
||||||
|
|
||||||
|
public function foreignCurrency($currency, $price, $isUpdate, $settings);
|
||||||
|
|
||||||
|
public function popularAdvs();
|
||||||
|
|
||||||
|
public function advsofDay();
|
||||||
|
|
||||||
|
public function statusAds($id, $status);
|
||||||
|
|
||||||
|
public function finish_at_Ads($id, $endDate);
|
||||||
|
|
||||||
|
public function publish_at_Ads($id);
|
||||||
|
|
||||||
|
public function getLastUserAdv();
|
||||||
|
|
||||||
|
public function getLocationNames($advs);
|
||||||
|
|
||||||
|
public function isAdv($id);
|
||||||
|
|
||||||
|
public function addCart($item, $quantity = 1, $name = null);
|
||||||
|
|
||||||
|
public function getAdvDetailLinkByModel($object, $type = null);
|
||||||
|
|
||||||
|
public function getAdvDetailLinkByAdId($id);
|
||||||
|
|
||||||
|
public function getAdvimage($id);
|
||||||
|
|
||||||
|
public function getLatestField($slug);
|
||||||
|
|
||||||
|
public function updateStock($id, $quantity);
|
||||||
|
|
||||||
|
public function stockControl($id, $quantity);
|
||||||
|
|
||||||
|
public function saveCustomField($category_id, $field_id, $name);
|
||||||
|
|
||||||
|
public function customfields();
|
||||||
|
|
||||||
|
public function priceFormat($adv);
|
||||||
|
|
||||||
|
public function AddAdsDefaultCoverImage($ad);
|
||||||
|
|
||||||
|
public function GetAdsDefaultCoverImageByAdId($id);
|
||||||
|
|
||||||
|
public function viewed_Ad($id);
|
||||||
|
|
||||||
|
public function getRecommended($id);
|
||||||
|
|
||||||
|
public function authControl();
|
||||||
|
|
||||||
|
public function inStock();
|
||||||
|
|
||||||
|
public function getCity();
|
||||||
|
|
||||||
|
public function getDistrict();
|
||||||
|
|
||||||
|
public function getNeighborhood();
|
||||||
|
|
||||||
|
public function getVillage();
|
||||||
|
|
||||||
public function expired();
|
public function expired();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user