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
a4ae926a
Commit
a4ae926a
authored
Oct 22, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added isIdentifier()
parent
a01ed064
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
Table.php
lib/Doctrine/Table.php
+9
-3
No files found.
lib/Doctrine/Table.php
View file @
a4ae926a
...
@@ -334,6 +334,12 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -334,6 +334,12 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
}
}
}
}
public
function
isIdentifier
(
$identifier
)
{
return
(
$identifier
===
$this
->
_identifier
||
in_array
(
$identifier
,
(
array
)
$this
->
_identifier
));
}
public
function
getMethodOwner
(
$method
)
public
function
getMethodOwner
(
$method
)
{
{
return
(
isset
(
$this
->
_invokedMethods
[
$method
]))
?
return
(
isset
(
$this
->
_invokedMethods
[
$method
]))
?
...
@@ -1372,7 +1378,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -1372,7 +1378,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
{
{
if
(
$value
===
self
::
$_null
)
{
if
(
$value
===
self
::
$_null
)
{
return
self
::
$_null
;
return
self
::
$_null
;
}
else
if
(
$value
===
null
)
{
}
elseif
(
$value
===
null
)
{
return
null
;
return
null
;
}
else
{
}
else
{
$type
=
$this
->
getTypeOf
(
$field
);
$type
=
$this
->
getTypeOf
(
$field
);
...
...
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