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
c4e22ba8
Commit
c4e22ba8
authored
Mar 14, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged tokens into lexer.
parent
5b456410
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
Lexer.php
lib/Doctrine/ORM/Query/Lexer.php
+3
-24
No files found.
lib/Doctrine/ORM/Query/Lexer.php
View file @
c4e22ba8
...
@@ -162,27 +162,6 @@ class Lexer
...
@@ -162,27 +162,6 @@ class Lexer
}
}
}
}
/**
* Returns the next token in the input string.
*
* A token is an associative array containing three items:
* - 'value' : the string value of the token in the input string
* - 'type' : the type of the token (identifier, numeric, string, input
* parameter, none)
* - 'position' : the position of the token in the input string
*
* @return array|null the next token; null if there is no more tokens left
*/
/*public function next()
{
$this->_peek = 0;
if (isset($this->_tokens[$this->_position])) {
return $this->_tokens[$this->_position++];
} else {
return null;
}
}*/
/**
/**
* Checks if an identifier is a keyword and returns its correct type.
* Checks if an identifier is a keyword and returns its correct type.
*
*
...
@@ -209,7 +188,7 @@ class Lexer
...
@@ -209,7 +188,7 @@ class Lexer
*
*
* @param string $input a query string
* @param string $input a query string
*/
*/
pr
otected
function
_scan
(
$input
)
pr
ivate
function
_scan
(
$input
)
{
{
static
$regex
;
static
$regex
;
...
@@ -240,7 +219,7 @@ class Lexer
...
@@ -240,7 +219,7 @@ class Lexer
/**
/**
* @todo Doc
* @todo Doc
*/
*/
pr
otected
function
_getType
(
&
$value
)
pr
ivate
function
_getType
(
&
$value
)
{
{
// $value is referenced because it can be changed if it is numeric.
// $value is referenced because it can be changed if it is numeric.
// [TODO] Revisit the _isNumeric and _getNumeric methods to reduce overhead.
// [TODO] Revisit the _isNumeric and _getNumeric methods to reduce overhead.
...
@@ -269,7 +248,7 @@ class Lexer
...
@@ -269,7 +248,7 @@ class Lexer
/**
/**
* @todo Doc
* @todo Doc
*/
*/
pr
otected
function
_getNumeric
(
$value
)
pr
ivate
function
_getNumeric
(
$value
)
{
{
if
(
!
is_scalar
(
$value
))
{
if
(
!
is_scalar
(
$value
))
{
return
false
;
return
false
;
...
...
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