Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
addcpm-json
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
addcpm-json
Commits
e1be2d5e
Commit
e1be2d5e
authored
Mar 04, 2019
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Вынес в конфиг категории для истории по кликам
parent
cdac90fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
ViewId.php
src/src/App/Action/User/ViewId.php
+13
-1
cabinet-feed-click-history.phtml
src/templates/app/user/cabinet-feed-click-history.phtml
+1
-11
No files found.
src/src/App/Action/User/ViewId.php
View file @
e1be2d5e
...
@@ -46,6 +46,16 @@ use Zend\Diactoros\Response\RedirectResponse;
...
@@ -46,6 +46,16 @@ use Zend\Diactoros\Response\RedirectResponse;
class
ViewId
extends
Common
class
ViewId
extends
Common
{
{
const
ACTION_STAT
=
'stat'
;
const
ACTION_STAT
=
'stat'
;
const
STAT_CATS
=
array
(
'StartTime'
=>
'StartTime'
,
'EndTime'
=>
'EndTime'
,
'IP'
=>
'IP'
,
'Basket'
=>
'Состав корзины'
,
'Pages'
=>
'Pages'
,
//'TransactionID' => 'TransactionID',
'ForeignID'
=>
'ForeignID'
,
'OrderSum'
=>
'OrderSum'
,
);
/**
/**
* @param ServerRequestInterface $request
* @param ServerRequestInterface $request
...
@@ -103,9 +113,11 @@ class ViewId extends Common
...
@@ -103,9 +113,11 @@ class ViewId extends Common
if
(
$feed_item
)
{
if
(
$feed_item
)
{
if
(
$feed_item
->
getClientid
()
==
$userId
){
if
(
$feed_item
->
getClientid
()
==
$userId
){
// Статистика по клику:
// Статистика-история по клику:
$viewIdStats
=
$stats
->
getViewIdStatData
(
$feed_id
,
$view_id
);
$viewIdStats
=
$stats
->
getViewIdStatData
(
$feed_id
,
$view_id
);
$data
[
'viewIdStats'
]
=
$viewIdStats
;
$data
[
'viewIdStats'
]
=
$viewIdStats
;
$data
[
'cats'
]
=
self
::
STAT_CATS
;
}
else
{
}
else
{
$data
[
'error'
]
=
_t
(
'Извините, данный фид закреплен за другим пользователем'
);
$data
[
'error'
]
=
_t
(
'Извините, данный фид закреплен за другим пользователем'
);
...
...
src/templates/app/user/cabinet-feed-click-history.phtml
View file @
e1be2d5e
...
@@ -59,17 +59,7 @@ $error = $this->error;
...
@@ -59,17 +59,7 @@ $error = $this->error;
if
(
!
$error
)
{
if
(
!
$error
)
{
$viewIdStats
=
$this
->
viewIdStats
;
$viewIdStats
=
$this
->
viewIdStats
;
$cats
=
$this
->
cats
;
$cats
=
array
(
'StartTime'
=>
'StartTime'
,
'EndTime'
=>
'EndTime'
,
'IP'
=>
'IP'
,
'Basket'
=>
'Basket'
,
'Pages'
=>
'Pages'
,
//'TransactionID' => 'TransactionID',
'ForeignID'
=>
'ForeignID'
,
'OrderSum'
=>
'OrderSum'
,
);
//$data_request_link = $this->url('user.cabinet', ['lang' => $this->lang, 'report' => $current_report]);
//$data_request_link = $this->url('user.cabinet', ['lang' => $this->lang, 'report' => $current_report]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment