Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
9a758ef8
Commit
9a758ef8
authored
Mar 02, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1048 - Исправление ошибок верстки в Блоге.
parent
9fd2f673
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
common/modules/blog/models/SearchSession.php
common/modules/blog/models/SearchSession.php
+8
-4
No files found.
common/modules/blog/models/SearchSession.php
View file @
9a758ef8
...
@@ -61,16 +61,20 @@ class SearchSession extends Session
...
@@ -61,16 +61,20 @@ class SearchSession extends Session
return
$dataProvider
;
return
$dataProvider
;
}
}
$query
->
joinWith
(
'urls'
);
$query
->
select
([
'*'
,
'urls.time'
]
);
$query
->
select
([
'*'
,
new
\yii\db\Expression
(
"SUM("
.
SessionUrl
::
tableName
()
.
".updated_at - "
.
SessionUrl
::
tableName
()
.
".created_at) as time"
)]);
$queryUrl
=
SessionUrl
::
find
()
->
select
(
'session_id, url, SUM('
.
SessionUrl
::
tableName
()
.
'.updated_at - '
.
SessionUrl
::
tableName
()
.
'.created_at) as time'
)
->
andWhere
([
'url'
=>
$this
->
blogUrl
])
->
groupBy
(
'session_id'
);
$query
->
leftJoin
([
'urls'
=>
$queryUrl
],
'urls.session_id = id'
);
// grid filtering conditions
// grid filtering conditions
$query
->
andFilterWhere
([
$query
->
andFilterWhere
([
'id'
=>
$this
->
id
,
'id'
=>
$this
->
id
,
'user_id'
=>
$this
->
user_id
,
'user_id'
=>
$this
->
user_id
,
'created_at'
=>
$this
->
created_at
,
'created_at'
=>
$this
->
created_at
SessionUrl
::
tableName
()
.
'.url'
=>
$this
->
blogUrl
]);
]);
$query
->
andFilterWhere
([
'like'
,
'PHPSESSID'
,
$this
->
PHPSESSID
])
$query
->
andFilterWhere
([
'like'
,
'PHPSESSID'
,
$this
->
PHPSESSID
])
...
...
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