This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,14 @@
<?php
namespace Stemcell\ChineseDirectory\Model\ResourceModel;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
class City extends AbstractDb
{
protected function _construct()
{
$this->_init('directory_country_city', 'code');
$this->_isPkAutoIncrement = false;
}
}
@@ -0,0 +1,14 @@
<?php
namespace Stemcell\ChineseDirectory\Model\ResourceModel\City;
use Stemcell\ChineseDirectory\Model\City;
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use \Stemcell\ChineseDirectory\Model\ResourceModel;
class Collection extends AbstractCollection
{
protected function _construct()
{
$this->_init(City::class, ResourceModel\City::class);
}
}
@@ -0,0 +1,14 @@
<?php
namespace Stemcell\ChineseDirectory\Model\ResourceModel;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
class District extends AbstractDb
{
protected function _construct()
{
$this->_init('directory_country_district', 'code');
$this->_isPkAutoIncrement = false;
}
}
@@ -0,0 +1,14 @@
<?php
namespace Stemcell\ChineseDirectory\Model\ResourceModel\District;
use Stemcell\ChineseDirectory\Model\District;
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use Stemcell\ChineseDirectory\Model\ResourceModel\District as DistrictResourceModel;
class Collection extends AbstractCollection
{
protected function _construct()
{
$this->_init(District::class, DistrictResourceModel::class);
}
}
@@ -0,0 +1,13 @@
<?php
namespace Stemcell\ChineseDirectory\Model\ResourceModel;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
class Town extends AbstractDb
{
protected function _construct()
{
$this->_init('directory_country_town', 'code');
$this->_isPkAutoIncrement = false;
}
}
@@ -0,0 +1,14 @@
<?php
namespace Stemcell\ChineseDirectory\Model\ResourceModel\Town;
use Stemcell\ChineseDirectory\Model\Town;
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use \Stemcell\ChineseDirectory\Model\ResourceModel;
class Collection extends AbstractCollection
{
protected function _construct()
{
$this->_init(Town::class, ResourceModel\Town::class);
}
}