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
eb555668
Commit
eb555668
authored
Nov 26, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
d411ba42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
Table.php
lib/Doctrine/Table.php
+28
-0
No files found.
lib/Doctrine/Table.php
View file @
eb555668
...
...
@@ -179,6 +179,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
protected
$_parser
;
/**
* @see Doctrine_Template
* @var array $_templates an array containing all templates attached to this table
*/
protected
$_templates
=
array
();
...
...
@@ -187,6 +188,11 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
* @var array $_filters an array containing all record filters attached to this table
*/
protected
$_filters
=
array
();
/**
* @see Doctrine_Plugin
* @var array $_plugins an array containing all plugins attached to this table
*/
protected
$_plugins
=
array
();
/**
* @var array $_invokedMethods method invoker cache
...
...
@@ -1747,7 +1753,29 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
return
$this
;
}
public
function
getPlugin
(
$plugin
)
{
if
(
!
isset
(
$this
->
_plugins
[
$plugin
]))
{
throw
new
Doctrine_Table_Exception
(
'Plugin '
.
$plugin
.
' not loaded'
);
}
return
$this
->
_plugins
[
$plugin
];
}
public
function
hasPlugin
(
$plugin
)
{
return
isset
(
$this
->
_plugins
[
$plugin
]);
}
public
function
addPlugin
(
Doctrine_Plugin
$plugin
,
$name
=
null
)
{
if
(
$name
===
null
)
{
$this
->
_plugins
[]
=
$plugin
;
}
else
{
$this
->
_plugins
[
$name
]
=
$plugin
;
}
return
$this
;
}
/**
* bindQueryParts
* binds query parts to given component
...
...
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