Skip to content

Commit

Permalink
add license
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Jul 29, 2016
1 parent 728563e commit 673e5f6
Show file tree
Hide file tree
Showing 83 changed files with 551 additions and 171 deletions.
11 changes: 7 additions & 4 deletions app/appadmin/config/appadmin.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
# 本文件在app/web/index.php 处引入。
#
# fecshop的核心模块
$modules = [];
foreach (glob(__DIR__ . '/modules/*.php') as $filename){
$modules = array_merge($modules,require($filename));
}



return [
'modules'=>$modules,
/* only config in front web */
Expand Down
7 changes: 7 additions & 0 deletions app/appadmin/config/modules/Catalog.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
return [
'catalog' => [
'class' => '\fecshop\app\appadmin\modules\Catalog\Module',
Expand Down
7 changes: 7 additions & 0 deletions app/appadmin/config/modules/Cms.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
return [
'cms' => [
'class' => '\fecshop\app\appadmin\modules\Cms\Module',
Expand Down
25 changes: 15 additions & 10 deletions app/appadmin/config/modules/Fecadmin.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
return [
'fecadmin' => [
'class' => '\fecadmin\Module',
//'controllerMap' => [
// 'login' => [
// 'class' => 'appadmin\local\fecadmin\controllers\LoginController',
// ],
//
//],

],
'fecadmin' => [
'class' => '\fecadmin\Module',
//'controllerMap' => [
// 'login' => [
// 'class' => 'appadmin\local\fecadmin\controllers\LoginController',
// ],
//],
],
];
12 changes: 11 additions & 1 deletion app/appadmin/interfaces/base/AppadminbaseBlockEditInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\interfaces\base;

/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
interface AppadminbaseBlockEditInterface{

/**
Expand Down
11 changes: 11 additions & 0 deletions app/appadmin/interfaces/base/AppadminbaseBlockInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\interfaces\base;
# use fecshop\app\appadmin\interfaces\base\AppadminbaseBlockInterface;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
interface AppadminbaseBlockInterface{


Expand Down
12 changes: 11 additions & 1 deletion app/appadmin/modules/AppadminbaseBlock.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules;
use fec\helpers\CRequest;
use fec\helpers\CUrl;
use yii\base\Object;
use fecshop\app\appadmin\interfaces\base\AppadminbaseBlockInterface;
# use fecshop\app\appadmin\modules\AppadminbaseBlock;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class AppadminbaseBlock extends Object{
/**
* parameter storage front passed.
Expand Down
12 changes: 11 additions & 1 deletion app/appadmin/modules/AppadminbaseBlockEdit.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules;
use Yii;
use fec\helpers\CRequest;
use fec\helpers\CUrl;
use fec\helpers\CConfig;
use yii\base\Object;

use fecshop\app\appadmin\interfaces\base\AppadminbaseBlockEditInterface;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class AppadminbaseBlockEdit extends Object{

public $_param;
Expand Down
12 changes: 11 additions & 1 deletion app/appadmin/modules/Catalog/CatalogController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules\Catalog;

/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
use Yii;
use yii\helpers\Url;
use fecadmin\FecadminbaseController;
Expand Down
15 changes: 13 additions & 2 deletions app/appadmin/modules/Catalog/Module.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules\Catalog;
use Yii;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class Module extends \fec\AdminModule
{
public function init()
{

# 以下代码必须指定
# 以下代码必须指定
$this->controllerNamespace = __NAMESPACE__ . '\\controllers';
$this->_currentDir = __DIR__ ;
$this->_currentNameSpace = __NAMESPACE__;

# 指定默认的man文件
# 指定默认的man文件
$this->layout = "/main_ajax.php";
parent::init();

Expand Down
1 change: 0 additions & 1 deletion app/appadmin/modules/Catalog/block/urlrewrite/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use fec\helpers\CUrl;
use fecshop\app\appadmin\interfaces\base\AppadminbaseBlockInterface;
/**
* block cms\article
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules\Catalog\controllers;
use Yii;
use yii\helpers\Url;
use fecshop\app\appadmin\modules\Catalog\CatalogController;
/**
* Site controller
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class UrlrewriteController extends CatalogController
{
Expand Down
1 change: 0 additions & 1 deletion app/appadmin/modules/Catalog/views/urlrewrite/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
use fec\helpers\CRequest;
/**
* Breadcrumbs services
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
Expand Down
12 changes: 11 additions & 1 deletion app/appadmin/modules/Cms/CmsController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules\Cms;

/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
use Yii;
use yii\helpers\Url;
use fecadmin\FecadminbaseController;
Expand Down
11 changes: 11 additions & 0 deletions app/appadmin/modules/Cms/Module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules\Cms;
use Yii;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class Module extends \fec\AdminModule
{
public function init()
Expand Down
10 changes: 9 additions & 1 deletion app/appadmin/modules/Cms/controllers/ArticleController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appadmin\modules\Cms\controllers;
use Yii;
use yii\helpers\Url;
use fecshop\app\appadmin\modules\Cms\CmsController;
/**
* Site controller
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class ArticleController extends CmsController
{
Expand Down
3 changes: 1 addition & 2 deletions app/appadmin/modules/Cms/views/article/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* @license http://www.fecshop.com/license/
*/
use fec\helpers\CRequest;
/**
* Breadcrumbs services
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
Expand Down
11 changes: 11 additions & 0 deletions app/appadmin/modules/Cms/views/article/manageredit.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
use yii\helpers\Html;
use fec\helpers\CRequest;
use fecadmin\models\AdminRole;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
?>
<style>
.checker{float:left;}
Expand Down
8 changes: 7 additions & 1 deletion app/appapi/config/appapi.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
# 本文件在app/web/index.php 处引入。
#
# fecshop - appfront 的核心模块
$modules = [];
foreach (glob(__DIR__ . '/modules/*.php') as $filename){
Expand Down
7 changes: 7 additions & 0 deletions app/appapi/config/modules/V1.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
return [
'v1' => [
'class' => '\fecshop\app\appapi\modules\V1\Module',
Expand Down
12 changes: 11 additions & 1 deletion app/appapi/modules/AppapiController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appapi\modules;
use Yii;
use fec\helpers\CConfig;
use yii\rest\ActiveController;
use yii\base\InvalidValueException;
# use fecshop\app\appfront\modules\AppfrontController;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class AppapiController extends ActiveController
{
public $blockNamespace;
Expand Down
11 changes: 11 additions & 0 deletions app/appapi/modules/AppapiModule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?php
/**
* FecShop file.
*
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
namespace fecshop\app\appapi\modules;
use Yii;
/**
* @author Terry Zhao <[email protected]>
* @since 1.0
*/
class AppapiModule extends \yii\base\Module
{

Expand Down
Loading

0 comments on commit 673e5f6

Please sign in to comment.