-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hadi
committed
Jul 15, 2017
0 parents
commit 12762f1
Showing
12 changed files
with
1,222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Eclipse | ||
.project | ||
.settings | ||
/.buildpath | ||
|
||
# Composer | ||
/vendor/ | ||
composer.lock | ||
composer-setup.php | ||
composer.phar | ||
|
||
# Project | ||
storage/tenant | ||
|
||
# KDE | ||
.directory |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# mall | ||
|
||
این پروژه یک ماژول برای سرورهای pluf است که امکانات مربوط به مدیریت مجموعهای از فروشگاه آنلاین ساده (مجموعهای از ماژولهای pluf/shop) را فراهم میکند. | ||
|
||
این ماژول امکانات زیر را دارد: | ||
|
||
- CRM | ||
- GEO | ||
|
||
کارهای اصلی در این ماژول عبارتند از: | ||
|
||
- امکان جستجوی محصولات و سرویسهای تمام فروشگاهها | ||
- امکان جستجوی فروشگاهها | ||
|
||
## دادهها و مدل دادهای | ||
|
||
این ماژول روی دادههای ماژول pluf/shop کار میکند و دادهای ایجاد و یا تغییر نمیدهد | ||
|
||
# مدل | ||
|
||
مدل سیستم با استفاده از نرم افزار umlet ایجاد شده و در پوشه model ذخیره شده است. برای دانلود ابزار umlet و مشاهده مدل سیستم لینک زیر رو ببینید: | ||
|
||
http://www.umlet.com/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name" : "pluf/mall", | ||
"description" : "A module to work with multiple shop", | ||
"type" : "library", | ||
"license" : "MIT", | ||
"authors" : [{ | ||
"name" : "Mostafa Barmshory", | ||
"email" : "[email protected]", | ||
"homepage" : "http://dpq.co.ir", | ||
"role" : "developer" | ||
}, { | ||
"name" : "Mohammad Hadi Mansouri", | ||
"email" : "[email protected]", | ||
"homepage" : "http://dpq.co.ir", | ||
"role" : "developer" | ||
}, { | ||
"name" : "MahdiIsComing", | ||
"role" : "developer", | ||
"email" : "[email protected]" | ||
} | ||
], | ||
"minimum-stability" : "stable", | ||
"require" : { | ||
"pluf/cache" : "^2.1.0", | ||
"pluf/cms" : "^2.1.0", | ||
"pluf/core" : "^2.1.0", | ||
"pluf/bank" : "^2.1.0", | ||
"pluf/assort" : "^2.1.0", | ||
"pluf/geo" : "^2.1", | ||
"pluf/shop" : "^0.1.0" | ||
}, | ||
"repositories" : [{ | ||
"type" : "path", | ||
"url" : "../shop" | ||
} | ||
], | ||
"include-path" : [ | ||
"src/" | ||
], | ||
"homepage" : "https://gitlab.com/microshop/mall", | ||
"support" : { | ||
"email" : "[email protected]", | ||
"issues" : "https://gitlab.com/microshop/mall/issues", | ||
"wiki" : "https://gitlab.com/microshop/mall/wikis/home", | ||
"source" : "https://gitlab.com/microshop/mall" | ||
}, | ||
"keywords" : [ | ||
"pluf", | ||
"shop", | ||
"sell", | ||
"service" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* ساختار دادهای شعب یک فروشگاه را تعیین میکند. | ||
* | ||
* @author hadi <[email protected]> | ||
* | ||
*/ | ||
class Mall_Agency extends Shop_Agency | ||
{ | ||
|
||
/** | ||
* @brief مدل دادهای را بارگذاری میکند. | ||
* | ||
* تمام فیلدهای مورد نیاز برای این مدل دادهای در این متد تعیین شده و به | ||
* صورت کامل ساختار دهی میشود. | ||
* | ||
* @see Pluf_Model::init() | ||
*/ | ||
function init() | ||
{ | ||
parent::init(); | ||
$this->_a['multitenant'] = false; | ||
$this->_a['cols'] = array_merge($this->_a['cols'], array( | ||
'tenant' => array( | ||
'type' => 'Pluf_DB_Field_Foreignkey', | ||
'model' => 'Pluf_Tenant', | ||
'blank' => false, | ||
'unique' => true, | ||
'editable' => false | ||
) | ||
)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
class Mall_Product extends Shop_Product | ||
{ | ||
|
||
/** | ||
* @brief مدل دادهای را بارگذاری میکند. | ||
* | ||
* @see Pluf_Model::init() | ||
*/ | ||
function init() | ||
{ | ||
parent::init(); | ||
$this->_a['multitenant'] = false; | ||
// Merge parent columns with new columns | ||
$this->_a['cols'] = array_merge($this->_a['cols'], array( | ||
'tenant' => array( | ||
'type' => 'Pluf_DB_Field_Foreignkey', | ||
'model' => 'Pluf_Tenant', | ||
'blank' => false, | ||
'unique' => true, | ||
'editable' => false | ||
) | ||
)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
class Mall_Service extends Shop_Service | ||
{ | ||
|
||
/** | ||
* @brief مدل دادهای را بارگذاری میکند. | ||
* | ||
* @see Pluf_Model::init() | ||
*/ | ||
function init() | ||
{ | ||
parent::init(); | ||
$this->_a['multitenant'] = false; | ||
// Merge parent columns with new columns | ||
$this->_a['cols'] = array_merge($this->_a['cols'], array( | ||
'tenant' => array( | ||
'type' => 'Pluf_DB_Field_Foreignkey', | ||
'model' => 'Pluf_Tenant', | ||
'blank' => false, | ||
'unique' => true, | ||
'editable' => false | ||
) | ||
)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "Mall", | ||
"version": "0.1.0", | ||
"title": "Module to manage multiple shop", | ||
"model": [ ], | ||
"permisson": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
return array( | ||
// 'Shop_Product' => array( | ||
// 'relate_to_many' => array( | ||
// 'Shop_TaxClass', | ||
// 'Assort_Category', | ||
// 'Assort_Tag' | ||
// ) | ||
// ), | ||
// 'Shop_Service' => array( | ||
// 'relate_to_many' => array( | ||
// 'Shop_TaxClass', | ||
// 'Assort_Category', | ||
// 'Assort_Tag' | ||
// ) | ||
// ), | ||
// 'Shop_ProductItem' => array( | ||
// 'relate_to' => array( | ||
// 'Shop_Product', | ||
// 'Shop_Order' | ||
// ) | ||
// ), | ||
// 'Shop_ServiceItem' => array( | ||
// 'relate_to' => array( | ||
// 'Shop_Service', | ||
// 'Shop_Order' | ||
// ) | ||
// ), | ||
// 'Shop_Order' => array( | ||
// 'relate_to' => array( | ||
// 'Pluf_User' | ||
// ) | ||
// ), | ||
// 'Shop_Agency' => array( | ||
// 'relate_to_many' => array( | ||
// 'Pluf_User' | ||
// ) | ||
// ), | ||
); |
Oops, something went wrong.