Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
e4381a6a
Commit
e4381a6a
authored
Jan 16, 2008
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
46d74951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
63 deletions
+2
-63
Abstract.php
draft/Doctrine/Query/Abstract.php
+2
-63
No files found.
draft/Doctrine/Query/Abstract.php
View file @
e4381a6a
...
...
@@ -179,7 +179,7 @@ abstract class Doctrine_Query_Abstract
* @var Doctrine_Hydrator The hydrator object used to hydrate query results.
*/
protected
$_hydrator
;
/**
* @var Doctrine_Query_Parser The parser that is used for query parsing.
*/
...
...
@@ -191,14 +191,7 @@ abstract class Doctrine_Query_Abstract
* aliases.
*/
protected
$_tableAliasSeeds
=
array
();
/**
* @var array $_options an array of options
*/
protected
$_options
=
array
(
'fetchMode'
=>
Doctrine
::
FETCH_RECORD
);
/**
* @var array $_enumParams an array containing the keys of the parameters that should be enumerated
*/
...
...
@@ -1535,61 +1528,7 @@ abstract class Doctrine_Query_Abstract
$this
->
_state
=
Doctrine_Query
::
STATE_DIRTY
;
return
$this
;
}
/**
* _processDqlQueryPart
* parses given query part
*
* @param string $queryPartName the name of the query part
* @param array $queryParts an array containing the query part data
* @return Doctrine_Query this object
* @todo Better description. "parses given query part" ??? Then wheres the difference
* between process/parseQueryPart? I suppose this does something different.
*/
protected
function
_processDqlQueryPart
(
$queryPartName
,
$queryParts
)
{
$this
->
removeSqlQueryPart
(
$queryPartName
);
if
(
is_array
(
$queryParts
)
&&
!
empty
(
$queryParts
))
{
foreach
(
$queryParts
as
$queryPart
)
{
$parser
=
$this
->
_getParser
(
$queryPartName
);
$sql
=
$parser
->
parse
(
$queryPart
);
if
(
isset
(
$sql
))
{
if
(
$queryPartName
==
'limit'
||
$queryPartName
==
'offset'
)
{
$this
->
setSqlQueryPart
(
$queryPartName
,
$sql
);
}
else
{
$this
->
addSqlQueryPart
(
$queryPartName
,
$sql
);
}
}
}
}
}
/**
* _getParser
* parser lazy-loader
*
* @throws Doctrine_Query_Exception if unknown parser name given
* @return Doctrine_Query_Part
* @todo Doc/Description: What is the parameter for? Which parsers are available?
*/
protected
function
_getParser
(
$name
)
{
if
(
!
isset
(
$this
->
_parsers
[
$name
]))
{
$class
=
'Doctrine_Query_'
.
ucwords
(
strtolower
(
$name
));
Doctrine
::
autoload
(
$class
);
if
(
!
class_exists
(
$class
))
{
throw
new
Doctrine_Query_Exception
(
'Unknown parser '
.
$name
);
}
$this
->
_parsers
[
$name
]
=
new
$class
(
$this
,
$this
->
_tokenizer
);
}
return
$this
->
_parsers
[
$name
];
}
/**
* Gets the SQL query that corresponds to this query object.
* The returned SQL syntax depends on the connection driver that is used
...
...
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