Commit 732d2e6c by semenov

Начало разработки

parent c854a23d
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 01.04.2015
*/
namespace skeeks\modules\cms\shop\assets;
/**
* Class Asset
* @package skeeks\modules\cms\shop\assets
*/
class ShopAsset extends Asset
{
public $css = [];
public $js = [
'classes/Shop.js',
'classes/Cart.js'
];
public $depends = [
'\skeeks\sx\assets\Core',
];
}
/*!
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 03.04.2015
*/
(function(sx, $, _)
{
sx.createNamespace('classes.shop', sx);
sx.classes.shop._Cart = sx.classes.Component.extend({
_init: function()
{},
_onDomReady: function()
{},
_onWindowReady: function()
{}
});
sx.classes.shop.Cart = sx.classes.shop._Cart.extend({});
})(sx, sx.$, sx._);
\ No newline at end of file
/*!
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 03.04.2015
*/
(function(sx, $, _)
{
sx.createNamespace('classes.shop', sx);
sx.classes.shop._App = sx.classes.Component.extend({
_init: function()
{
this.Cart = new sx.classes.shop.Cart();
},
_onDomReady: function()
{},
_onWindowReady: function()
{}
});
sx.classes.shop.App = sx.classes.shop._App.extend({});
})(sx, sx.$, sx._);
\ No newline at end of file
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 03.04.2015
*/
namespace skeeks\modules\cms\shop\widgets\cart;
use skeeks\cms\widgets\base\hasTemplate\WidgetHasTemplate;
/**
* Class Products
* @package skeeks\modules\cms\shop\widgets\cart
*/
class CartWidget extends WidgetHasTemplate
{
public function rules()
{
return ArrayHelper::merge(parent::rules(), [
]);
}
public function attributeLabels()
{
return ArrayHelper::merge(parent::attributeLabels(), [
]);
}
/**
* Подготовка данных для шаблона
* @return $this
*/
public function bind()
{
parent::bind();
return $this;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment