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
7c0aca3c
Commit
7c0aca3c
authored
Oct 05, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
4634b7c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
Abstract.php
lib/Doctrine/Record/Abstract.php
+1
-1
Table.php
lib/Doctrine/Table.php
+16
-1
No files found.
lib/Doctrine/Record/Abstract.php
View file @
7c0aca3c
...
@@ -257,7 +257,7 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
...
@@ -257,7 +257,7 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/
*/
public
function
bindQueryParts
(
array
$queryParts
)
public
function
bindQueryParts
(
array
$queryParts
)
{
{
$this
->
_table
->
bindQueryParts
(
array
$queryParts
);
$this
->
_table
->
bindQueryParts
(
$queryParts
);
return
$this
;
return
$this
;
}
}
...
...
lib/Doctrine/Table.php
View file @
7c0aca3c
...
@@ -159,6 +159,8 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -159,6 +159,8 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
* @var array $_filters an array containing all record filters attached to this table
* @var array $_filters an array containing all record filters attached to this table
*/
*/
protected
$_filters
=
array
();
protected
$_filters
=
array
();
protected
$_queryParts
=
array
();
...
@@ -1292,6 +1294,19 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -1292,6 +1294,19 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
return
$this
;
return
$this
;
}
}
/**
* bindQueryParts
* binds query parts to given component
*
* @param array $queryParts an array of pre-bound query parts
* @return Doctrine_Record this object
*/
public
function
bindQueryParts
(
array
$queryParts
)
{
$this
->
_queryParts
=
$queryParts
;
return
$this
;
}
public
function
unshiftFilter
(
Doctrine_Record_Filter
$filter
)
public
function
unshiftFilter
(
Doctrine_Record_Filter
$filter
)
{
{
$filter
->
setTable
(
$this
);
$filter
->
setTable
(
$this
);
...
@@ -1315,4 +1330,4 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -1315,4 +1330,4 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
{
{
return
Doctrine_Lib
::
getTableAsString
(
$this
);
return
Doctrine_Lib
::
getTableAsString
(
$this
);
}
}
}
}
\ No newline at end of file
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