Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
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
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
bf0aaa3c
Commit
bf0aaa3c
authored
Aug 19, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove query::table method.
parent
e822f34c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
laravel/db/query.php
+2
-19
No files found.
laravel/db/query.php
View file @
bf0aaa3c
...
...
@@ -91,18 +91,6 @@ class Query {
}
/**
* Create a new query instance.
*
* @param string $table
* @param Connection $connection
* @return Query
*/
public
static
function
table
(
$table
,
Connection
$connection
)
{
return
new
static
(
$table
,
$connection
);
}
/**
* Force the query to return distinct results.
*
* @return Query
...
...
@@ -638,16 +626,11 @@ class Query {
*/
private
function
wrap
(
$value
)
{
if
(
strpos
(
strtolower
(
$value
),
' as '
)
!==
false
)
{
return
$this
->
wrap_alias
(
$value
);
}
$wrap
=
$this
->
connection
->
wrapper
();
if
(
strpos
(
strtolower
(
$value
),
' as '
)
!==
false
)
return
$this
->
wrap_alias
(
$value
);
foreach
(
explode
(
'.'
,
$value
)
as
$segment
)
{
$wrapped
[]
=
(
$segment
!=
'*'
)
?
$
wrap
.
$segment
.
$wrap
:
$segment
;
$wrapped
[]
=
(
$segment
!=
'*'
)
?
$
this
->
connection
->
wrapper
()
.
$segment
.
$this
->
connection
->
wrapper
()
:
$segment
;
}
return
implode
(
'.'
,
$wrapped
);
...
...
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