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
edfd9f65
Commit
edfd9f65
authored
Nov 13, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
68d12596
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
Export.php
lib/Doctrine/Export.php
+26
-7
No files found.
lib/Doctrine/Export.php
View file @
edfd9f65
...
...
@@ -1165,15 +1165,14 @@ class Doctrine_Export extends Doctrine_Connection_Module
}
/**
* exportPluginsSql
* exports plugin tables for given table
* fetches all plugins recursively for given table
*
* @param Doctrine_Table $table t
he table in which the plugins belong to
* @return array
an array of sql string
s
*/
public
function
exportPluginsSql
(
Doctrine_Table
$table
)
* @param Doctrine_Table $table t
able object to retrieve the plugins from
* @return array
an array of Doctrine_Plugin object
s
*/
public
function
getAllPlugins
(
Doctrine_Table
$table
)
{
$sql
=
array
();
$plugins
=
array
();
foreach
(
$table
->
getTemplates
()
as
$name
=>
$template
)
{
$plugin
=
$template
->
getPlugin
();
...
...
@@ -1182,6 +1181,26 @@ class Doctrine_Export extends Doctrine_Connection_Module
continue
;
}
$plugins
[]
=
$plugin
;
$plugins
=
array_merge
(
$plugins
,
$this
->
getAllPlugins
(
$plugin
->
getOption
(
'pluginTable'
)));
}
return
$plugins
;
}
/**
* exportPluginsSql
* exports plugin tables for given table
*
* @param Doctrine_Table $table the table in which the plugins belong to
* @return array an array of sql strings
*/
public
function
exportPluginsSql
(
Doctrine_Table
$table
)
{
$sql
=
array
();
foreach
(
$this
->
getAllPlugins
(
$table
)
as
$name
=>
$plugin
)
{
$table
=
$plugin
->
getOption
(
'pluginTable'
);
// Make sure plugin has a valid table
...
...
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