summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2013-08-17 13:39:04 +0200
committerBertrand Jacquin <beber@meleeweb.net>2013-08-17 13:50:02 +0200
commit642d39b33cf643c99a2c7e27a5df68d6cd4dbc57 (patch)
tree51c90aeed90ce547dad9946db4b06c55fc19fcf4
parent95ef75ccb8c1cfc9cd0453ba8f94c1a7178a0b24 (diff)
Upgrade exchange to represent new file/apps structure
Move public files to public_html/ Move private files to exchange/ Remove plugins/sfDoctrinePlugin, now a system package Remove unnecessary files Remove CVS/SVN handling
-rw-r--r--.gitignore5
-rw-r--r--README39
-rw-r--r--apps/exchange/modules/home/templates/cvsSuccess.php6
-rw-r--r--config/config_prod.php5
-rw-r--r--config/databases.yml10
-rw-r--r--config/rsync_exclude.txt4
-rw-r--r--config/schema.yml0
-rw-r--r--data/environment.migrated0
-rw-r--r--data/fixtures/defaultData.yml7
-rw-r--r--exchange/TODO (renamed from TODO)0
-rw-r--r--exchange/apps/exchange/config/app.yml (renamed from apps/exchange/config/app.yml)2
-rw-r--r--exchange/apps/exchange/config/cache.yml (renamed from apps/exchange/config/cache.yml)0
-rw-r--r--exchange/apps/exchange/config/exchangeConfiguration.class.php (renamed from apps/exchange/config/exchangeConfiguration.class.php)0
-rw-r--r--exchange/apps/exchange/config/factories.yml (renamed from apps/exchange/config/factories.yml)0
-rw-r--r--exchange/apps/exchange/config/filters.yml (renamed from apps/exchange/config/filters.yml)0
-rw-r--r--exchange/apps/exchange/config/routing.yml (renamed from apps/exchange/config/routing.yml)0
-rw-r--r--exchange/apps/exchange/config/security.yml (renamed from apps/exchange/config/security.yml)0
-rw-r--r--exchange/apps/exchange/config/settings.yml (renamed from apps/exchange/config/settings.yml)0
-rw-r--r--exchange/apps/exchange/config/view.yml (renamed from apps/exchange/config/view.yml)0
-rw-r--r--exchange/apps/exchange/lib/Thumbnail.class.php (renamed from apps/exchange/lib/Thumbnail.class.php)0
-rw-r--r--exchange/apps/exchange/lib/Tools.class.php (renamed from apps/exchange/lib/Tools.class.php)0
-rw-r--r--exchange/apps/exchange/lib/WikiText.class.php (renamed from apps/exchange/lib/WikiText.class.php)14
-rw-r--r--exchange/apps/exchange/lib/exchangeActions.php (renamed from apps/exchange/lib/exchangeActions.php)0
-rw-r--r--exchange/apps/exchange/lib/exchangeComponents.php (renamed from apps/exchange/lib/exchangeComponents.php)0
-rw-r--r--exchange/apps/exchange/lib/forwardUnsecureException.php (renamed from apps/exchange/lib/forwardUnsecureException.php)0
-rw-r--r--exchange/apps/exchange/lib/myUser.class.php (renamed from apps/exchange/lib/myUser.class.php)0
-rw-r--r--exchange/apps/exchange/modules/api/actions/actions.class.php (renamed from apps/exchange/modules/api/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/api/config/view.yml (renamed from apps/exchange/modules/api/config/view.yml)0
-rw-r--r--exchange/apps/exchange/modules/api/templates/indexSuccess.php (renamed from apps/exchange/modules/api/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/application/actions/actions.class.php (renamed from apps/exchange/modules/application/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/application/actions/components.class.php (renamed from apps/exchange/modules/application/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/application/config/security.yml (renamed from apps/exchange/modules/application/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/application/templates/_table.php (renamed from apps/exchange/modules/application/templates/_table.php)0
-rw-r--r--exchange/apps/exchange/modules/application/templates/indexSuccess.php (renamed from apps/exchange/modules/application/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/application/templates/readSuccess.php (renamed from apps/exchange/modules/application/templates/readSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/application/templates/updateSuccess.php (renamed from apps/exchange/modules/application/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/applicationThemeGroup/actions/actions.class.php (renamed from apps/exchange/modules/applicationThemeGroup/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/applicationThemeGroup/config/security.yml (renamed from apps/exchange/modules/applicationThemeGroup/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/applicationThemeGroup/templates/indexSuccess.php (renamed from apps/exchange/modules/applicationThemeGroup/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/applicationThemeGroup/templates/updateSuccess.php (renamed from apps/exchange/modules/applicationThemeGroup/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/comment/actions/actions.class.php (renamed from apps/exchange/modules/comment/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/comment/actions/components.class.php (renamed from apps/exchange/modules/comment/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/comment/config/security.yml (renamed from apps/exchange/modules/comment/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/comment/templates/_table.php (renamed from apps/exchange/modules/comment/templates/_table.php)0
-rw-r--r--exchange/apps/exchange/modules/comment/templates/indexSuccess.php (renamed from apps/exchange/modules/comment/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/comment/templates/readSuccess.php (renamed from apps/exchange/modules/comment/templates/readSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/comment/templates/updateSuccess.php (renamed from apps/exchange/modules/comment/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/home/actions/actions.class.php (renamed from apps/exchange/modules/home/actions/actions.class.php)5
-rw-r--r--exchange/apps/exchange/modules/home/actions/components.class.php (renamed from apps/exchange/modules/home/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/home/config/security.yml (renamed from apps/exchange/modules/home/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/home/config/view.yml (renamed from apps/exchange/modules/home/config/view.yml)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/_navigation.php (renamed from apps/exchange/modules/home/templates/_navigation.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/aboutSuccess.php (renamed from apps/exchange/modules/home/templates/aboutSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/error404Success.php (renamed from apps/exchange/modules/home/templates/error404Success.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/indexSuccess.php (renamed from apps/exchange/modules/home/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/searchSuccess.php (renamed from apps/exchange/modules/home/templates/searchSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/secureSuccess.php (renamed from apps/exchange/modules/home/templates/secureSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/sitemapSuccess.php (renamed from apps/exchange/modules/home/templates/sitemapSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/home/templates/wikiSyntaxSuccess.php (renamed from apps/exchange/modules/home/templates/wikiSyntaxSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/module/actions/actions.class.php (renamed from apps/exchange/modules/module/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/module/actions/components.class.php (renamed from apps/exchange/modules/module/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/module/config/security.yml (renamed from apps/exchange/modules/module/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/module/templates/_table.php (renamed from apps/exchange/modules/module/templates/_table.php)0
-rw-r--r--exchange/apps/exchange/modules/module/templates/indexSuccess.php (renamed from apps/exchange/modules/module/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/module/templates/readSuccess.php (renamed from apps/exchange/modules/module/templates/readSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/module/templates/updateSuccess.php (renamed from apps/exchange/modules/module/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/moduleThemeGroup/actions/actions.class.php (renamed from apps/exchange/modules/moduleThemeGroup/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/moduleThemeGroup/config/security.yml (renamed from apps/exchange/modules/moduleThemeGroup/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/moduleThemeGroup/templates/indexSuccess.php (renamed from apps/exchange/modules/moduleThemeGroup/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/moduleThemeGroup/templates/updateSuccess.php (renamed from apps/exchange/modules/moduleThemeGroup/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/rating/actions/actions.class.php (renamed from apps/exchange/modules/rating/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/rating/actions/components.class.php (renamed from apps/exchange/modules/rating/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/rating/templates/_rating.php (renamed from apps/exchange/modules/rating/templates/_rating.php)0
-rw-r--r--exchange/apps/exchange/modules/rating/templates/indexSuccess.php (renamed from apps/exchange/modules/rating/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/rating/templates/rateSuccess.php (renamed from apps/exchange/modules/rating/templates/rateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/theme/actions/actions.class.php (renamed from apps/exchange/modules/theme/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/theme/actions/components.class.php (renamed from apps/exchange/modules/theme/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/theme/config/security.yml (renamed from apps/exchange/modules/theme/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/theme/templates/_table.php (renamed from apps/exchange/modules/theme/templates/_table.php)2
-rw-r--r--exchange/apps/exchange/modules/theme/templates/indexSuccess.php (renamed from apps/exchange/modules/theme/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/theme/templates/readSuccess.php (renamed from apps/exchange/modules/theme/templates/readSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/theme/templates/updateSuccess.php (renamed from apps/exchange/modules/theme/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/themeGroup/actions/actions.class.php (renamed from apps/exchange/modules/themeGroup/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/themeGroup/actions/components.class.php (renamed from apps/exchange/modules/themeGroup/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/themeGroup/config/security.yml (renamed from apps/exchange/modules/themeGroup/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/themeGroup/templates/_table.php (renamed from apps/exchange/modules/themeGroup/templates/_table.php)2
-rw-r--r--exchange/apps/exchange/modules/themeGroup/templates/indexSuccess.php (renamed from apps/exchange/modules/themeGroup/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/themeGroup/templates/readSuccess.php (renamed from apps/exchange/modules/themeGroup/templates/readSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/themeGroup/templates/updateSuccess.php (renamed from apps/exchange/modules/themeGroup/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/actions/actions.class.php (renamed from apps/exchange/modules/user/actions/actions.class.php)0
-rw-r--r--exchange/apps/exchange/modules/user/actions/components.class.php (renamed from apps/exchange/modules/user/actions/components.class.php)0
-rw-r--r--exchange/apps/exchange/modules/user/config/security.yml (renamed from apps/exchange/modules/user/config/security.yml)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/_table.php (renamed from apps/exchange/modules/user/templates/_table.php)2
-rw-r--r--exchange/apps/exchange/modules/user/templates/activateSuccess.php (renamed from apps/exchange/modules/user/templates/activateSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/checkEmailSuccess.php (renamed from apps/exchange/modules/user/templates/checkEmailSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/forgotSuccess.php (renamed from apps/exchange/modules/user/templates/forgotSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/indexSuccess.php (renamed from apps/exchange/modules/user/templates/indexSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/loginSuccess.php (renamed from apps/exchange/modules/user/templates/loginSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/readSuccess.php (renamed from apps/exchange/modules/user/templates/readSuccess.php)0
-rw-r--r--exchange/apps/exchange/modules/user/templates/updateSuccess.php (renamed from apps/exchange/modules/user/templates/updateSuccess.php)0
-rw-r--r--exchange/apps/exchange/templates/empty.php (renamed from apps/exchange/templates/empty.php)0
-rw-r--r--exchange/apps/exchange/templates/layout.php (renamed from apps/exchange/templates/layout.php)0
-rw-r--r--exchange/config/ProjectConfiguration.class.php (renamed from config/ProjectConfiguration.class.php)4
-rw-r--r--exchange/config/databases.yml5
-rw-r--r--exchange/config/doctrine/schema.yml (renamed from config/doctrine/schema.yml)0
-rw-r--r--exchange/config/properties.ini (renamed from config/properties.ini)0
-rw-r--r--exchange/data/sql/reload.sql (renamed from data/sql/reload.sql)0
-rw-r--r--exchange/data/sql/schema.sql (renamed from data/sql/schema.sql)28
-rw-r--r--exchange/lib/form/ApplicationForm.class.php (renamed from lib/form/ApplicationForm.class.php)3
-rw-r--r--exchange/lib/form/ApplicationThemeGroupForm.class.php (renamed from lib/form/ApplicationThemeGroupForm.class.php)0
-rw-r--r--exchange/lib/form/CommentForm.class.php (renamed from lib/form/CommentForm.class.php)0
-rw-r--r--exchange/lib/form/ForgotForm.class.php (renamed from lib/form/ForgotForm.class.php)0
-rw-r--r--exchange/lib/form/LoginForm.class.php (renamed from lib/form/LoginForm.class.php)0
-rw-r--r--exchange/lib/form/ModuleForm.class.php (renamed from lib/form/ModuleForm.class.php)3
-rw-r--r--exchange/lib/form/ModuleThemeGroupForm.class.php (renamed from lib/form/ModuleThemeGroupForm.class.php)0
-rw-r--r--exchange/lib/form/SearchForm.class.php (renamed from lib/form/SearchForm.class.php)0
-rw-r--r--exchange/lib/form/SortForm.class.php (renamed from lib/form/SortForm.class.php)0
-rw-r--r--exchange/lib/form/ThemeForm.class.php (renamed from lib/form/ThemeForm.class.php)0
-rw-r--r--exchange/lib/form/ThemeGroupForm.class.php (renamed from lib/form/ThemeGroupForm.class.php)0
-rw-r--r--exchange/lib/form/UserForm.class.php (renamed from lib/form/UserForm.class.php)0
-rw-r--r--exchange/lib/form/exchangeWidgetFormSchemaFormatter.class.php (renamed from lib/form/exchangeWidgetFormSchemaFormatter.class.php)0
-rw-r--r--exchange/lib/form/validatorLogin.php (renamed from lib/form/validatorLogin.php)0
-rw-r--r--exchange/lib/migration/doctrine/001_add_theme_theme_group.class.php (renamed from lib/migration/doctrine/001_add_theme_theme_group.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/002_add_application.class.php (renamed from lib/migration/doctrine/002_add_application.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/003_add_madule.class.php (renamed from lib/migration/doctrine/003_add_madule.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/004_add_comment.class.php (renamed from lib/migration/doctrine/004_add_comment.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/005_add_rating.class.php (renamed from lib/migration/doctrine/005_add_rating.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/006_add_application_theme_group.class.php (renamed from lib/migration/doctrine/006_add_application_theme_group.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/007_add_theme_group.class.php (renamed from lib/migration/doctrine/007_add_theme_group.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/008_add_theme.class.php (renamed from lib/migration/doctrine/008_add_theme.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/009_add_user.class.php (renamed from lib/migration/doctrine/009_add_user.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/010_add_object_theme_group.class.php (renamed from lib/migration/doctrine/010_add_object_theme_group.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/011_add_object.class.php (renamed from lib/migration/doctrine/011_add_object.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/012_add_madule_theme_group.class.php (renamed from lib/migration/doctrine/012_add_madule_theme_group.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/013_apply_foreign_key_constraints.class.php (renamed from lib/migration/doctrine/013_apply_foreign_key_constraints.class.php)0
-rw-r--r--exchange/lib/migration/doctrine/014_metadata.class.php (renamed from lib/migration/doctrine/014_metadata.class.php)0
-rwxr-xr-xexchange/lib/migration/doctrine/015_showcase.class.php (renamed from lib/migration/doctrine/015_showcase.class.php)0
-rw-r--r--exchange/lib/model/doctrine/Application.class.php (renamed from lib/model/doctrine/Application.class.php)8
-rw-r--r--exchange/lib/model/doctrine/ApplicationTable.class.php (renamed from lib/model/doctrine/ApplicationTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/ApplicationThemeGroup.class.php (renamed from lib/model/doctrine/ApplicationThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/ApplicationThemeGroupTable.class.php (renamed from lib/model/doctrine/ApplicationThemeGroupTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/Comment.class.php (renamed from lib/model/doctrine/Comment.class.php)0
-rw-r--r--exchange/lib/model/doctrine/CommentTable.class.php (renamed from lib/model/doctrine/CommentTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/Madule.class.php (renamed from lib/model/doctrine/Madule.class.php)8
-rw-r--r--exchange/lib/model/doctrine/MaduleTable.class.php (renamed from lib/model/doctrine/MaduleTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/MaduleThemeGroup.class.php (renamed from lib/model/doctrine/MaduleThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/MaduleThemeGroupTable.class.php (renamed from lib/model/doctrine/MaduleThemeGroupTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/Rating.class.php (renamed from lib/model/doctrine/Rating.class.php)0
-rw-r--r--exchange/lib/model/doctrine/RatingTable.class.php (renamed from lib/model/doctrine/RatingTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/Theme.class.php (renamed from lib/model/doctrine/Theme.class.php)2
-rw-r--r--exchange/lib/model/doctrine/ThemeGroup.class.php (renamed from lib/model/doctrine/ThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/ThemeGroupTable.class.php (renamed from lib/model/doctrine/ThemeGroupTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/ThemeTable.class.php (renamed from lib/model/doctrine/ThemeTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/ThemeThemeGroup.class.php (renamed from lib/model/doctrine/ThemeThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/ThemeThemeGroupTable.class.php (renamed from lib/model/doctrine/ThemeThemeGroupTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/User.class.php (renamed from lib/model/doctrine/User.class.php)0
-rw-r--r--exchange/lib/model/doctrine/UserTable.class.php (renamed from lib/model/doctrine/UserTable.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseApplication.class.php (renamed from lib/model/doctrine/generated/BaseApplication.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseApplicationThemeGroup.class.php (renamed from lib/model/doctrine/generated/BaseApplicationThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseComment.class.php (renamed from lib/model/doctrine/generated/BaseComment.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseMadule.class.php (renamed from lib/model/doctrine/generated/BaseMadule.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseMaduleThemeGroup.class.php (renamed from lib/model/doctrine/generated/BaseMaduleThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseRating.class.php (renamed from lib/model/doctrine/generated/BaseRating.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseTheme.class.php (renamed from lib/model/doctrine/generated/BaseTheme.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseThemeGroup.class.php (renamed from lib/model/doctrine/generated/BaseThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseThemeThemeGroup.class.php (renamed from lib/model/doctrine/generated/BaseThemeThemeGroup.class.php)0
-rw-r--r--exchange/lib/model/doctrine/generated/BaseUser.class.php (renamed from lib/model/doctrine/generated/BaseUser.class.php)0
-rw-r--r--exchange/lib/rememberFilter.class.php (renamed from lib/rememberFilter.class.php)0
-rw-r--r--exchange/test/bootstrap/functional.php (renamed from test/bootstrap/functional.php)0
-rw-r--r--exchange/test/bootstrap/unit.php (renamed from test/bootstrap/unit.php)0
-rw-r--r--exchange/test/functional/exchange/apiActionsTest.php (renamed from test/functional/exchange/apiActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/applicationActionsTest.php (renamed from test/functional/exchange/applicationActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/applicationThemeGroupActionsTest.php (renamed from test/functional/exchange/applicationThemeGroupActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/commentActionsTest.php (renamed from test/functional/exchange/commentActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/homeActionsTest.php (renamed from test/functional/exchange/homeActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/moduleActionsTest.php (renamed from test/functional/exchange/moduleActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/moduleThemeGroupActionsTest.php (renamed from test/functional/exchange/moduleThemeGroupActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/objectActionsTest.php (renamed from test/functional/exchange/objectActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/ratingActionsTest.php (renamed from test/functional/exchange/ratingActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/restActionsTest.php (renamed from test/functional/exchange/restActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/themeActionsTest.php (renamed from test/functional/exchange/themeActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/themeGroupActionsTest.php (renamed from test/functional/exchange/themeGroupActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/userActionsTest.php (renamed from test/functional/exchange/userActionsTest.php)0
-rw-r--r--exchange/test/functional/exchange/wallpaperActionsTest.php (renamed from test/functional/exchange/wallpaperActionsTest.php)0
-rw-r--r--plugins/sfDoctrinePlugin/LICENSE7
-rw-r--r--plugins/sfDoctrinePlugin/README24
-rw-r--r--plugins/sfDoctrinePlugin/config/autoload.yml11
-rw-r--r--plugins/sfDoctrinePlugin/config/config_handlers.yml7
-rw-r--r--plugins/sfDoctrinePlugin/config/doctrine.yml28
-rw-r--r--plugins/sfDoctrinePlugin/config/settings.yml3
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/actions/actions.class.php13
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/config/generator.yml5
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/lib/.sf0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/templates/.sf0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/validate/.sf0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/actions/actions.class.php104
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/editSuccess.php31
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php27
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php13
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/actions/actions.class.php13
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/config/generator.yml5
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/actions/actions.class.php422
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_actions.php13
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_footer.php0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_form.php86
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_header.php0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_messages.php15
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_filters.php37
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list.php43
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_actions.php10
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_batch_actions.php13
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_footer.php0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_header.php0
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_messages.php12
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_actions.php9
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_batch_actions.php5
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_stacked.php16
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_tabular.php16
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_stacked.php1
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_tabular.php24
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/editSuccess.php22
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/listSuccess.php34
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormBaseTemplate.php14
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php114
-rw-r--r--plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormTemplate.php16
-rw-r--r--plugins/sfDoctrinePlugin/lib/database/sfDoctrineDataRetriever.class.php28
-rw-r--r--plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php215
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine.php1048
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Access.php203
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter.php108
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Db2.php325
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Interface.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Mock.php294
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Mysqli.php142
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Oracle.php257
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Statement.php131
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Statement/Interface.php276
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Adapter/Statement/Mock.php379
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/AuditLog.php139
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/AuditLog/Listener.php147
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache.php416
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Apc.php100
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Array.php113
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Db.php200
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Driver.php80
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Interface.php73
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Memcache.php128
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cache/Xcache.php97
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli.php356
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli/AnsiColorFormatter.php160
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli/Formatter.php116
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection.php917
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection/Iterator.php119
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection/Iterator/Expandable.php54
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection/Iterator/Normal.php42
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection/Iterator/Offset.php37
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Collection/Offset.php65
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Column.php158
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Compiler.php139
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Compiler/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Configurable.php484
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection.php1535
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Common.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Db2.php64
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Exception.php130
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Firebird.php114
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Firebird/Exception.php136
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Informix.php62
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Informix/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Mock.php51
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Module.php83
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Mssql.php205
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Mssql/Exception.php75
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Mysql.php213
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Mysql/Exception.php86
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Oracle.php130
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Oracle/Exception.php80
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Pgsql.php195
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Pgsql/Exception.php108
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Profiler.php182
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Profiler/Exception.php35
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Sqlite.php141
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Sqlite/Exception.php78
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/Statement.php459
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Connection/UnitOfWork.php851
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Data.php286
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Data/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Data/Export.php208
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Data/Import.php449
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict.php96
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Firebird.php218
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Informix.php110
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Mssql.php195
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Mysql.php477
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Oracle.php199
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Pgsql.php641
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataDict/Sqlite.php312
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/DataType.php49
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Event.php351
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/EventListener.php119
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/EventListener/Chain.php405
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/EventListener/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/EventListener/Interface.php68
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Exception.php92
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export.php1310
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Firebird.php551
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Frontbase.php316
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Informix.php37
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Mssql.php256
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Mysql.php744
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Oracle.php505
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Pgsql.php364
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Reporter.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Schema.php146
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Export/Sqlite.php407
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression.php145
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Driver.php762
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Firebird.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Informix.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Mock.php35
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Mssql.php92
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Mysql.php149
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Oracle.php108
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Pgsql.php222
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Expression/Sqlite.php172
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/File.php53
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/File/Index.php56
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Formatter.php245
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hook.php230
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hook/Equal.php52
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hook/Integer.php75
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hook/Parser.php67
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hook/Parser/Complex.php107
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hook/WordLike.php66
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hydrator.php348
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hydrator/Abstract.php124
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hydrator/ArrayDriver.php75
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hydrator/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Hydrator/RecordDriver.php143
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/I18n.php123
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/I18n/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import.php385
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Builder.php1073
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Builder/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Firebird.php128
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Informix.php55
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Mssql.php201
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Mysql.php212
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Oracle.php239
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Pgsql.php251
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Schema.php702
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Import/Sqlite.php240
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Inflector.php447
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/IntegrityMapper.php174
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Lib.php447
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Locator.php197
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Locator/Exception.php36
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Locator/Injectable.php149
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Locking/Exception.php37
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Locking/Manager/Pessimistic.php291
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Manager.php643
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Manager/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration.php629
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Builder.php320
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/IrreversibleMigrationException.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Process.php251
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node.php190
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/AdjacencyList.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/AdjacencyList/LevelOrderIterator.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/AdjacencyList/PostOrderIterator.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/AdjacencyList/PreOrderIterator.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/Interface.php268
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/MaterializedPath.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/MaterializedPath/LevelOrderIterator.php68
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/MaterializedPath/PostOrderIterator.php68
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/MaterializedPath/PreOrderIterator.php68
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet.php1019
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet/LevelOrderIterator.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet/PostOrderIterator.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Node/NestedSet/PreOrderIterator.php183
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Null.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Overloadable.php44
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Pager.php576
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Pager/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Pager/Layout.php513
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Pager/Range.php176
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Pager/Range/Jumping.php117
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Pager/Range/Sliding.php133
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser.php149
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Json.php68
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Serialize.php65
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Spyc.php836
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Spyc/YamlNode.php56
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Xml.php140
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Parser/Yml.php72
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query.php1938
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Abstract.php1972
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Check.php169
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Condition.php118
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Filter.php63
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Filter/Chain.php109
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Filter/Interface.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/From.php96
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Groupby.php52
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Having.php102
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/JoinCondition.php143
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Limit.php39
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Offset.php39
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Orderby.php53
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Parser.php35
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Part.php61
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Registry.php70
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Registry/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Select.php39
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Set.php58
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Tokenizer.php387
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Tokenizer/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Query/Where.php180
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/RawSql.php330
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/RawSql/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record.php1900
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Abstract.php359
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Filter.php62
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Filter/Compound.php100
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Filter/Standard.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Generator.php368
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Iterator.php81
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Listener.php85
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Listener/Chain.php209
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/Listener/Interface.php62
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Record/State/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation.php376
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/Association.php98
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/Association/Self.php111
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/ForeignKey.php100
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/LocalKey.php82
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/Nest.php146
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/Parser.php512
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Relation/Parser/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search.php267
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Analyzer.php39
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Analyzer/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Analyzer/Interface.php36
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Analyzer/Standard.php298
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/File.php80
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Indexer.php75
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Indexer/Dir.php47
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Indexer/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Listener.php59
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Parser.php41
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Query.php235
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Record.php47
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Search/Scorer.php63
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence.php74
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Db2.php123
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Firebird.php107
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Informix.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Mssql.php157
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Mysql.php112
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Oracle.php96
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Pgsql.php94
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Sequence/Sqlite.php114
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Table.php2208
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Table/Exception.php41
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Table/Repository.php163
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Table/Repository/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task.php232
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/BuildAll.php65
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/BuildAllLoad.php58
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/BuildAllReload.php58
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/Compile.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/CreateDb.php48
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/CreateTables.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/Dql.php73
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/DropDb.php59
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/DumpData.php54
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateMigration.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateMigrationsDb.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateMigrationsModels.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateModelsDb.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateModelsYaml.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateSql.php56
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateYamlDb.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateYamlModels.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/LoadData.php47
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/LoadDummyData.php47
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/Migrate.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/RebuildDb.php58
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template.php152
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Geographical.php133
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/I18n.php65
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Listener/Sluggable.php180
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Listener/SoftDelete.php118
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Listener/Timestampable.php109
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/NestedSet.php73
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Searchable.php70
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Sluggable.php83
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/SoftDelete.php71
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Timestampable.php85
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Template/Versionable.php102
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction.php515
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Firebird.php140
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Informix.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Mock.php36
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Mssql.php92
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Mysql.php116
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Oracle.php106
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Pgsql.php105
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Transaction/Sqlite.php66
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Tree.php131
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Tree/AdjacencyList.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Tree/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Tree/Interface.php65
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Tree/MaterializedPath.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Tree/NestedSet.php357
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Util.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator.php168
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Country.php302
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Creditcard.php82
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Date.php53
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Driver.php116
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Email.php78
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/ErrorStack.php185
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Exception.php100
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Future.php79
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Htmlcolor.php48
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Ip.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Minlength.php49
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Nospace.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Notblank.php46
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Notnull.php45
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Past.php79
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Range.php51
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Readonly.php43
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Regexp.php62
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Time.php65
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Timestamp.php66
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Unique.php71
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Unsigned.php50
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Validator/Usstate.php105
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/View.php192
-rw-r--r--plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/View/Exception.php34
-rw-r--r--plugins/sfDoctrinePlugin/lib/generator/sfDoctrineAdminColumn.class.php232
-rw-r--r--plugins/sfDoctrinePlugin/lib/generator/sfDoctrineAdminGenerator.class.php263
-rw-r--r--plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php548
-rw-r--r--plugins/sfDoctrinePlugin/lib/helper/ObjectDoctrineAdminHelper.php116
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineCli.class.php67
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineConfigHandler.class.php104
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineConnectionListener.class.php30
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineException.class.php30
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrinePager.class.php145
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineQueryLogger.class.php132
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineRecord.class.php163
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineRecordListener.class.php51
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfDoctrineSchemasConfigHandler.class.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/sfFormDoctrine.class.php285
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php98
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildAllLoadTask.class.php85
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildAllReloadTask.class.php94
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildAllReloadTestAllTask.class.php91
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildAllTask.class.php72
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildDbTask.class.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildFormsTask.class.php85
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php97
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildSchemaTask.class.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildSqlTask.class.php59
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineDataDumpTask.class.php78
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineDataLoadTask.class.php81
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineDqlTask.class.php54
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineDropDbTask.class.php58
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateCrudTask.class.php101
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationTask.class.php56
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsDbTask.class.php55
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineGenerateMigrationsModelsTask.class.php55
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineInitAdminTask.class.php93
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineInsertSqlTask.class.php58
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineMigrateTask.class.php57
-rw-r--r--plugins/sfDoctrinePlugin/lib/task/sfDoctrineRebuildDbTask.class.php71
-rw-r--r--plugins/sfDoctrinePlugin/lib/validator/sfDoctrineUniqueValidator.class.php111
-rw-r--r--plugins/sfDoctrinePlugin/lib/validator/sfValidatorDoctrineChoice.class.php84
-rw-r--r--plugins/sfDoctrinePlugin/lib/validator/sfValidatorDoctrineChoiceMany.class.php44
-rw-r--r--plugins/sfDoctrinePlugin/lib/validator/sfValidatorDoctrineUnique.class.php137
-rw-r--r--plugins/sfDoctrinePlugin/lib/widget/sfWidgetFormDoctrineSelect.class.php97
-rw-r--r--plugins/sfDoctrinePlugin/lib/widget/sfWidgetFormDoctrineSelectMany.class.php32
-rw-r--r--plugins/sfDoctrinePlugin/package.xml49
-rw-r--r--public_html/.htaccess16
-rw-r--r--public_html/css/ReMooz.css (renamed from web/css/ReMooz.css)0
-rw-r--r--public_html/css/main.css (renamed from web/css/main.css)0
-rw-r--r--public_html/css/ratings.css (renamed from web/css/ratings.css)0
-rw-r--r--public_html/favicon.ico (renamed from web/favicon.ico)bin1150 -> 1150 bytes
-rw-r--r--public_html/images/ajax-loading.gif (renamed from web/images/ajax-loading.gif)bin847 -> 847 bytes
-rw-r--r--public_html/images/button.png (renamed from web/images/button.png)bin1441 -> 1441 bytes
-rw-r--r--public_html/images/button_cat.png (renamed from web/images/button_cat.png)bin891 -> 891 bytes
-rw-r--r--public_html/images/button_cat2.png (renamed from web/images/button_cat2.png)bin1744 -> 1744 bytes
-rw-r--r--public_html/images/button_down.png (renamed from web/images/button_down.png)bin1705 -> 1705 bytes
-rw-r--r--public_html/images/closebox.gif (renamed from web/images/closebox.gif)bin351 -> 351 bytes
-rw-r--r--public_html/images/closebox.png (renamed from web/images/closebox.png)bin1910 -> 1910 bytes
-rw-r--r--public_html/images/exchange.svg (renamed from web/images/exchange.svg)0
-rw-r--r--public_html/images/logo.png (renamed from web/images/logo.png)bin24899 -> 24899 bytes
-rw-r--r--public_html/images/magnifier.png (renamed from web/images/magnifier.png)bin2251 -> 2251 bytes
-rw-r--r--public_html/images/rating.png (renamed from web/images/rating.png)bin417 -> 417 bytes
-rw-r--r--public_html/images/rating2.png (renamed from web/images/rating2.png)bin425 -> 425 bytes
-rw-r--r--public_html/images/remo_bg_e.png (renamed from web/images/remo_bg_e.png)bin990 -> 990 bytes
-rw-r--r--public_html/images/remo_bg_n.png (renamed from web/images/remo_bg_n.png)bin986 -> 986 bytes
-rw-r--r--public_html/images/remo_bg_ne.png (renamed from web/images/remo_bg_ne.png)bin1367 -> 1367 bytes
-rw-r--r--public_html/images/remo_bg_nw.png (renamed from web/images/remo_bg_nw.png)bin1246 -> 1246 bytes
-rw-r--r--public_html/images/remo_bg_s.png (renamed from web/images/remo_bg_s.png)bin985 -> 985 bytes
-rw-r--r--public_html/images/remo_bg_se.png (renamed from web/images/remo_bg_se.png)bin1260 -> 1260 bytes
-rw-r--r--public_html/images/remo_bg_sw.png (renamed from web/images/remo_bg_sw.png)bin1223 -> 1223 bytes
-rw-r--r--public_html/images/remo_bg_w.png (renamed from web/images/remo_bg_w.png)bin981 -> 981 bytes
-rw-r--r--public_html/images/spinner.gif (renamed from web/images/spinner.gif)bin1569 -> 1569 bytes
-rw-r--r--public_html/index.php (renamed from web/index_prod.php)2
-rw-r--r--public_html/js/ReMooz.js (renamed from web/js/ReMooz.js)0
-rw-r--r--public_html/js/mootools-more.js (renamed from web/js/mootools-more.js)0
-rw-r--r--public_html/js/mootools.js (renamed from web/js/mootools.js)0
-rw-r--r--public_html/js/ratings.js (renamed from web/js/ratings.js)0
-rw-r--r--public_html/js/script.js (renamed from web/js/script.js)0
-rw-r--r--public_html/robots.txt2
-rwxr-xr-xsymfony15
-rwxr-xr-xupdate.sh8
-rw-r--r--web/.htaccess25
-rw-r--r--web/exchange_dev.php6
-rw-r--r--web/index.php6
-rw-r--r--web/js/mootools-more_dev.js1491
-rw-r--r--web/js/mootools_dev.js3816
-rw-r--r--web/robots.txt2
644 files changed, 54 insertions, 71819 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..486c78e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
1# Cache directory
2exchange/cache
3
4# Upload directory
5public_html/files
diff --git a/README b/README
deleted file mode 100644
index 54639b5..0000000
--- a/README
+++ /dev/null
@@ -1,39 +0,0 @@
1Exchange is the web application that runs exchange.enlightenment.org
2
3For Administrators:
4-------------------
5Administrators are expected to test and approve themes, apps & modules.
6Administrators are also responsible for moderating comments and building a positive atmosphere for the community.
7Administrators should test themes to make sure they are bugfree and do not cause problems when in use. However, administrators should not disapprove themes simply because they look bad.
8
9For Developers:
10---------------
11Exchange is built on top of the symfony (1.1) framework for PHP.
12I recommend going through some of the documentation here http://www.symfony-project.org/doc/1_1/
13At least the first two chapters of the book.
14Exchange also uses PHPDoctrine instead of symfony's default ORM.
15http://www.phpdoctrine.org/
16
17If you are working on developing Exchange, it is recommended that you have a copy of the web application running on your local machine.
18For this you will need a LAMP stack (Linux, Apache, Mysql & PHP)
19You must download symfony 1.1 and setup a database for exchange.
20Edit config/databases.yml and configure your webserver to point to web/index.php
21
22To push changes to the actual website, login to the server
23cd /var/www/exchange
24sudo ./sync.sh
25
26If there are any css/js changes, copy them:
27cp exchange/web/css/* html/css/
28cp exchange/web/js/* html/js/
29
30Remember: Always backup the database and the /var/www/exchange/html/ folder before performing any updates.
31
32If you are making changes to the database schema, you need to edit config/doctrine/schema.yml and create a migration.
33symfony doctrine:generate-migration
34
35On the production server, run:
36symfony doctrine:migrate exchange
37to migrate the production database.
38
39
diff --git a/apps/exchange/modules/home/templates/cvsSuccess.php b/apps/exchange/modules/home/templates/cvsSuccess.php
deleted file mode 100644
index d56a702..0000000
--- a/apps/exchange/modules/home/templates/cvsSuccess.php
+++ /dev/null
@@ -1,6 +0,0 @@
1<?php slot('title') ?>Download from official Enlightenment SVN<?php end_slot() ?>
2<h1>Download from official Enlightenment SVN</h1>
3This code is available from the Enlightenment SVN at: <strong><?php echo $path ?></strong><br/>
4To download, run the following command:<br/>
5<strong>svn co http://svn.enlightenment.org/svn/e/trunk/<?php echo $path ?></strong><br/>
6For information on using SVN, please visit the <a href="http://wiki.enlightenment.org/index.php/E17_User_Guide/Installing_from_Source_Repository">wiki</a>.
diff --git a/config/config_prod.php b/config/config_prod.php
deleted file mode 100644
index eef0dfb..0000000
--- a/config/config_prod.php
+++ /dev/null
@@ -1,5 +0,0 @@
1<?php
2
3// symfony directories
4$sf_symfony_lib_dir = '/var/www/exchange/symfony/lib';
5$sf_symfony_data_dir = '/var/www/exchange/symfony/data';
diff --git a/config/databases.yml b/config/databases.yml
deleted file mode 100644
index 8f72cc5..0000000
--- a/config/databases.yml
+++ /dev/null
@@ -1,10 +0,0 @@
1#all:
2# propel:
3# class: sfPropelDatabase
4# param:
5# dsn: mysql://root@localhost/dbname
6all:
7 connection_name:
8 class: sfDoctrineDatabase
9 param:
10 dsn: mysql://exchange:exchange@localhost/exchange \ No newline at end of file
diff --git a/config/rsync_exclude.txt b/config/rsync_exclude.txt
deleted file mode 100644
index 4b76ea8..0000000
--- a/config/rsync_exclude.txt
+++ /dev/null
@@ -1,4 +0,0 @@
1.svn
2/web/uploads/*
3/cache/*
4/log/*
diff --git a/config/schema.yml b/config/schema.yml
deleted file mode 100644
index e69de29..0000000
--- a/config/schema.yml
+++ /dev/null
diff --git a/data/environment.migrated b/data/environment.migrated
deleted file mode 100644
index e69de29..0000000
--- a/data/environment.migrated
+++ /dev/null
diff --git a/data/fixtures/defaultData.yml b/data/fixtures/defaultData.yml
deleted file mode 100644
index 05d35e8..0000000
--- a/data/fixtures/defaultData.yml
+++ /dev/null
@@ -1,7 +0,0 @@
1User:
2 User_1:
3 name: exchange
4 password: 5c731c8c4ee0f43b4b605d534f888603
5 email: exchange@enlightenment.org
6 role: 3
7 active: 1 \ No newline at end of file
diff --git a/TODO b/exchange/TODO
index b0ec2fe..b0ec2fe 100644
--- a/TODO
+++ b/exchange/TODO
diff --git a/apps/exchange/config/app.yml b/exchange/apps/exchange/config/app.yml
index 50ecf5b..3b2e049 100644
--- a/apps/exchange/config/app.yml
+++ b/exchange/apps/exchange/config/app.yml
@@ -1,7 +1,7 @@
1# default values 1# default values
2all: 2all:
3 copyright: Copyright &copy; Enlightenment.org 3 copyright: Copyright &copy; Enlightenment.org
4 edje_list_path: /opt/enlightenment/bin/edje_list 4 edje_list_path: /usr/bin/edje_list
5 name: Exchange 5 name: Exchange
6 rss_desc: Exchange RSS Feed 6 rss_desc: Exchange RSS Feed
7 url: http://exchange.enlightenment.org 7 url: http://exchange.enlightenment.org
diff --git a/apps/exchange/config/cache.yml b/exchange/apps/exchange/config/cache.yml
index 9a80ccb..9a80ccb 100644
--- a/apps/exchange/config/cache.yml
+++ b/exchange/apps/exchange/config/cache.yml
diff --git a/apps/exchange/config/exchangeConfiguration.class.php b/exchange/apps/exchange/config/exchangeConfiguration.class.php
index 29b344e..29b344e 100644
--- a/apps/exchange/config/exchangeConfiguration.class.php
+++ b/exchange/apps/exchange/config/exchangeConfiguration.class.php
diff --git a/apps/exchange/config/factories.yml b/exchange/apps/exchange/config/factories.yml
index fc1c5d5..fc1c5d5 100644
--- a/apps/exchange/config/factories.yml
+++ b/exchange/apps/exchange/config/factories.yml
diff --git a/apps/exchange/config/filters.yml b/exchange/apps/exchange/config/filters.yml
index 2bb57bc..2bb57bc 100644
--- a/apps/exchange/config/filters.yml
+++ b/exchange/apps/exchange/config/filters.yml
diff --git a/apps/exchange/config/routing.yml b/exchange/apps/exchange/config/routing.yml
index d51a870..d51a870 100644
--- a/apps/exchange/config/routing.yml
+++ b/exchange/apps/exchange/config/routing.yml
diff --git a/apps/exchange/config/security.yml b/exchange/apps/exchange/config/security.yml
index 225dd93..225dd93 100644
--- a/apps/exchange/config/security.yml
+++ b/exchange/apps/exchange/config/security.yml
diff --git a/apps/exchange/config/settings.yml b/exchange/apps/exchange/config/settings.yml
index a7622c4..a7622c4 100644
--- a/apps/exchange/config/settings.yml
+++ b/exchange/apps/exchange/config/settings.yml
diff --git a/apps/exchange/config/view.yml b/exchange/apps/exchange/config/view.yml
index 26b804c..26b804c 100644
--- a/apps/exchange/config/view.yml
+++ b/exchange/apps/exchange/config/view.yml
diff --git a/apps/exchange/lib/Thumbnail.class.php b/exchange/apps/exchange/lib/Thumbnail.class.php
index f97c158..f97c158 100644
--- a/apps/exchange/lib/Thumbnail.class.php
+++ b/exchange/apps/exchange/lib/Thumbnail.class.php
diff --git a/apps/exchange/lib/Tools.class.php b/exchange/apps/exchange/lib/Tools.class.php
index 0c0bf09..0c0bf09 100644
--- a/apps/exchange/lib/Tools.class.php
+++ b/exchange/apps/exchange/lib/Tools.class.php
diff --git a/apps/exchange/lib/WikiText.class.php b/exchange/apps/exchange/lib/WikiText.class.php
index 0b45d31..43011da 100644
--- a/apps/exchange/lib/WikiText.class.php
+++ b/exchange/apps/exchange/lib/WikiText.class.php
@@ -67,7 +67,6 @@ class WikiText {
67 'tables' => array ('#^\{\|(.*?)(?:^\|\+(.*?))?(^(?:((?R))|.)*?)^\|}#msi', 'table_callback'), 67 'tables' => array ('#^\{\|(.*?)(?:^\|\+(.*?))?(^(?:((?R))|.)*?)^\|}#msi', 'table_callback'),
68 'external_links' => array ("/(\[)?((http\:\/\/|https\:\/\/|ftp\:\/\/|gopher\:\/\/|news\:\/\/)[\w|\d|\.|_|\-]+[A-Za-z0-9\/?=&%~_\-\.\:#;',]*)(?(1)([ ]+[^\]]+)?\])/i", 'url_callback'), 68 'external_links' => array ("/(\[)?((http\:\/\/|https\:\/\/|ftp\:\/\/|gopher\:\/\/|news\:\/\/)[\w|\d|\.|_|\-]+[A-Za-z0-9\/?=&%~_\-\.\:#;',]*)(?(1)([ ]+[^\]]+)?\])/i", 'url_callback'),
69 'email' => array ('/(\[)?mailto:([\w|\d|\.|_|\-]+@[\w|\d|\.|_|-]+)(?(1)\])/i', 'email_callback'), 69 'email' => array ('/(\[)?mailto:([\w|\d|\.|_|\-]+@[\w|\d|\.|_|-]+)(?(1)\])/i', 'email_callback'),
70 'svn' => array ('/(\[)?svn:([^\||^\]|^\[]+)(?(1)\])/i', 'cvs_callback'),
71 'theme' => array ('/(\[)?theme:([^\]|^\[]+)(?(1)\])/i', 'theme_callback'), 70 'theme' => array ('/(\[)?theme:([^\]|^\[]+)(?(1)\])/i', 'theme_callback'),
72 'module' => array ('/(\[)?module:([^\]|^\[]+)(?(1)\])/i', 'module_callback'), 71 'module' => array ('/(\[)?module:([^\]|^\[]+)(?(1)\])/i', 'module_callback'),
73 'app' => array ('/(\[)?app:([^\]|^\[]+)(?(1)\])/i', 'app_callback'), 72 'app' => array ('/(\[)?app:([^\]|^\[]+)(?(1)\])/i', 'app_callback'),
@@ -614,19 +613,6 @@ class WikiText {
614 613
615 614
616 /** 615 /**
617 * The callback function for svn links
618 */
619 private function cvs_callback($matches) {
620 $whole = $matches[0];
621 $addr = $matches[2];
622 $addr2 = urlencode(str_replace('/', '|', $addr));
623 $ret = "<a href=\"/home/cvs/path/{$addr2}\">SVN: $addr</a>";
624
625 return $ret;
626 }
627
628
629 /**
630 * The callback function for theme links 616 * The callback function for theme links
631 */ 617 */
632 private function theme_callback($matches) { 618 private function theme_callback($matches) {
diff --git a/apps/exchange/lib/exchangeActions.php b/exchange/apps/exchange/lib/exchangeActions.php
index 8287f14..8287f14 100644
--- a/apps/exchange/lib/exchangeActions.php
+++ b/exchange/apps/exchange/lib/exchangeActions.php
diff --git a/apps/exchange/lib/exchangeComponents.php b/exchange/apps/exchange/lib/exchangeComponents.php
index dcf9a23..dcf9a23 100644
--- a/apps/exchange/lib/exchangeComponents.php
+++ b/exchange/apps/exchange/lib/exchangeComponents.php
diff --git a/apps/exchange/lib/forwardUnsecureException.php b/exchange/apps/exchange/lib/forwardUnsecureException.php
index 9cceb15..9cceb15 100644
--- a/apps/exchange/lib/forwardUnsecureException.php
+++ b/exchange/apps/exchange/lib/forwardUnsecureException.php
diff --git a/apps/exchange/lib/myUser.class.php b/exchange/apps/exchange/lib/myUser.class.php
index ae37b4f..ae37b4f 100644
--- a/apps/exchange/lib/myUser.class.php
+++ b/exchange/apps/exchange/lib/myUser.class.php
diff --git a/apps/exchange/modules/api/actions/actions.class.php b/exchange/apps/exchange/modules/api/actions/actions.class.php
index b1b6baa..b1b6baa 100644
--- a/apps/exchange/modules/api/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/api/actions/actions.class.php
diff --git a/apps/exchange/modules/api/config/view.yml b/exchange/apps/exchange/modules/api/config/view.yml
index e92e5ae..e92e5ae 100644
--- a/apps/exchange/modules/api/config/view.yml
+++ b/exchange/apps/exchange/modules/api/config/view.yml
diff --git a/apps/exchange/modules/api/templates/indexSuccess.php b/exchange/apps/exchange/modules/api/templates/indexSuccess.php
index c6bf387..c6bf387 100644
--- a/apps/exchange/modules/api/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/api/templates/indexSuccess.php
diff --git a/apps/exchange/modules/application/actions/actions.class.php b/exchange/apps/exchange/modules/application/actions/actions.class.php
index ab777aa..ab777aa 100644
--- a/apps/exchange/modules/application/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/application/actions/actions.class.php
diff --git a/apps/exchange/modules/application/actions/components.class.php b/exchange/apps/exchange/modules/application/actions/components.class.php
index a4ecadf..a4ecadf 100644
--- a/apps/exchange/modules/application/actions/components.class.php
+++ b/exchange/apps/exchange/modules/application/actions/components.class.php
diff --git a/apps/exchange/modules/application/config/security.yml b/exchange/apps/exchange/modules/application/config/security.yml
index f009ac2..f009ac2 100644
--- a/apps/exchange/modules/application/config/security.yml
+++ b/exchange/apps/exchange/modules/application/config/security.yml
diff --git a/apps/exchange/modules/application/templates/_table.php b/exchange/apps/exchange/modules/application/templates/_table.php
index 63cf202..63cf202 100644
--- a/apps/exchange/modules/application/templates/_table.php
+++ b/exchange/apps/exchange/modules/application/templates/_table.php
diff --git a/apps/exchange/modules/application/templates/indexSuccess.php b/exchange/apps/exchange/modules/application/templates/indexSuccess.php
index d25d52e..d25d52e 100644
--- a/apps/exchange/modules/application/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/application/templates/indexSuccess.php
diff --git a/apps/exchange/modules/application/templates/readSuccess.php b/exchange/apps/exchange/modules/application/templates/readSuccess.php
index 1577ca7..1577ca7 100644
--- a/apps/exchange/modules/application/templates/readSuccess.php
+++ b/exchange/apps/exchange/modules/application/templates/readSuccess.php
diff --git a/apps/exchange/modules/application/templates/updateSuccess.php b/exchange/apps/exchange/modules/application/templates/updateSuccess.php
index 46063eb..46063eb 100644
--- a/apps/exchange/modules/application/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/application/templates/updateSuccess.php
diff --git a/apps/exchange/modules/applicationThemeGroup/actions/actions.class.php b/exchange/apps/exchange/modules/applicationThemeGroup/actions/actions.class.php
index be5e6a7..be5e6a7 100644
--- a/apps/exchange/modules/applicationThemeGroup/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/applicationThemeGroup/actions/actions.class.php
diff --git a/apps/exchange/modules/applicationThemeGroup/config/security.yml b/exchange/apps/exchange/modules/applicationThemeGroup/config/security.yml
index 0729b18..0729b18 100644
--- a/apps/exchange/modules/applicationThemeGroup/config/security.yml
+++ b/exchange/apps/exchange/modules/applicationThemeGroup/config/security.yml
diff --git a/apps/exchange/modules/applicationThemeGroup/templates/indexSuccess.php b/exchange/apps/exchange/modules/applicationThemeGroup/templates/indexSuccess.php
index e69de29..e69de29 100644
--- a/apps/exchange/modules/applicationThemeGroup/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/applicationThemeGroup/templates/indexSuccess.php
diff --git a/apps/exchange/modules/applicationThemeGroup/templates/updateSuccess.php b/exchange/apps/exchange/modules/applicationThemeGroup/templates/updateSuccess.php
index a3645f2..a3645f2 100644
--- a/apps/exchange/modules/applicationThemeGroup/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/applicationThemeGroup/templates/updateSuccess.php
diff --git a/apps/exchange/modules/comment/actions/actions.class.php b/exchange/apps/exchange/modules/comment/actions/actions.class.php
index 3317c4d..3317c4d 100644
--- a/apps/exchange/modules/comment/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/comment/actions/actions.class.php
diff --git a/apps/exchange/modules/comment/actions/components.class.php b/exchange/apps/exchange/modules/comment/actions/components.class.php
index 12a50f6..12a50f6 100644
--- a/apps/exchange/modules/comment/actions/components.class.php
+++ b/exchange/apps/exchange/modules/comment/actions/components.class.php
diff --git a/apps/exchange/modules/comment/config/security.yml b/exchange/apps/exchange/modules/comment/config/security.yml
index b977285..b977285 100644
--- a/apps/exchange/modules/comment/config/security.yml
+++ b/exchange/apps/exchange/modules/comment/config/security.yml
diff --git a/apps/exchange/modules/comment/templates/_table.php b/exchange/apps/exchange/modules/comment/templates/_table.php
index cdbed03..cdbed03 100644
--- a/apps/exchange/modules/comment/templates/_table.php
+++ b/exchange/apps/exchange/modules/comment/templates/_table.php
diff --git a/apps/exchange/modules/comment/templates/indexSuccess.php b/exchange/apps/exchange/modules/comment/templates/indexSuccess.php
index 5b7fc7a..5b7fc7a 100644
--- a/apps/exchange/modules/comment/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/comment/templates/indexSuccess.php
diff --git a/apps/exchange/modules/comment/templates/readSuccess.php b/exchange/apps/exchange/modules/comment/templates/readSuccess.php
index 556831f..556831f 100644
--- a/apps/exchange/modules/comment/templates/readSuccess.php
+++ b/exchange/apps/exchange/modules/comment/templates/readSuccess.php
diff --git a/apps/exchange/modules/comment/templates/updateSuccess.php b/exchange/apps/exchange/modules/comment/templates/updateSuccess.php
index 4167857..4167857 100644
--- a/apps/exchange/modules/comment/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/comment/templates/updateSuccess.php
diff --git a/apps/exchange/modules/home/actions/actions.class.php b/exchange/apps/exchange/modules/home/actions/actions.class.php
index 651f7e9..1b55836 100644
--- a/apps/exchange/modules/home/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/home/actions/actions.class.php
@@ -7,11 +7,6 @@ class homeActions extends exchangeActions
7 7
8 } 8 }
9 9
10 public function executeCvs()
11 {
12 $this->path = str_replace('|', '/', $this->getRequestParameter('path'));
13 }
14
15 public function executeError404() 10 public function executeError404()
16 { 11 {
17 12
diff --git a/apps/exchange/modules/home/actions/components.class.php b/exchange/apps/exchange/modules/home/actions/components.class.php
index 2fdd474..2fdd474 100644
--- a/apps/exchange/modules/home/actions/components.class.php
+++ b/exchange/apps/exchange/modules/home/actions/components.class.php
diff --git a/apps/exchange/modules/home/config/security.yml b/exchange/apps/exchange/modules/home/config/security.yml
index 7bd938b..7bd938b 100644
--- a/apps/exchange/modules/home/config/security.yml
+++ b/exchange/apps/exchange/modules/home/config/security.yml
diff --git a/apps/exchange/modules/home/config/view.yml b/exchange/apps/exchange/modules/home/config/view.yml
index b0c8ddf..b0c8ddf 100644
--- a/apps/exchange/modules/home/config/view.yml
+++ b/exchange/apps/exchange/modules/home/config/view.yml
diff --git a/apps/exchange/modules/home/templates/_navigation.php b/exchange/apps/exchange/modules/home/templates/_navigation.php
index 1ceec89..1ceec89 100644
--- a/apps/exchange/modules/home/templates/_navigation.php
+++ b/exchange/apps/exchange/modules/home/templates/_navigation.php
diff --git a/apps/exchange/modules/home/templates/aboutSuccess.php b/exchange/apps/exchange/modules/home/templates/aboutSuccess.php
index 87c4090..87c4090 100644
--- a/apps/exchange/modules/home/templates/aboutSuccess.php
+++ b/exchange/apps/exchange/modules/home/templates/aboutSuccess.php
diff --git a/apps/exchange/modules/home/templates/error404Success.php b/exchange/apps/exchange/modules/home/templates/error404Success.php
index 6be328f..6be328f 100644
--- a/apps/exchange/modules/home/templates/error404Success.php
+++ b/exchange/apps/exchange/modules/home/templates/error404Success.php
diff --git a/apps/exchange/modules/home/templates/indexSuccess.php b/exchange/apps/exchange/modules/home/templates/indexSuccess.php
index 55e5215..55e5215 100644
--- a/apps/exchange/modules/home/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/home/templates/indexSuccess.php
diff --git a/apps/exchange/modules/home/templates/searchSuccess.php b/exchange/apps/exchange/modules/home/templates/searchSuccess.php
index e610f1d..e610f1d 100644
--- a/apps/exchange/modules/home/templates/searchSuccess.php
+++ b/exchange/apps/exchange/modules/home/templates/searchSuccess.php
diff --git a/apps/exchange/modules/home/templates/secureSuccess.php b/exchange/apps/exchange/modules/home/templates/secureSuccess.php
index 5c99b37..5c99b37 100644
--- a/apps/exchange/modules/home/templates/secureSuccess.php
+++ b/exchange/apps/exchange/modules/home/templates/secureSuccess.php
diff --git a/apps/exchange/modules/home/templates/sitemapSuccess.php b/exchange/apps/exchange/modules/home/templates/sitemapSuccess.php
index 89dab9b..89dab9b 100644
--- a/apps/exchange/modules/home/templates/sitemapSuccess.php
+++ b/exchange/apps/exchange/modules/home/templates/sitemapSuccess.php
diff --git a/apps/exchange/modules/home/templates/wikiSyntaxSuccess.php b/exchange/apps/exchange/modules/home/templates/wikiSyntaxSuccess.php
index 0b2d8cd..0b2d8cd 100644
--- a/apps/exchange/modules/home/templates/wikiSyntaxSuccess.php
+++ b/exchange/apps/exchange/modules/home/templates/wikiSyntaxSuccess.php
diff --git a/apps/exchange/modules/module/actions/actions.class.php b/exchange/apps/exchange/modules/module/actions/actions.class.php
index 2d0ed91..2d0ed91 100644
--- a/apps/exchange/modules/module/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/module/actions/actions.class.php
diff --git a/apps/exchange/modules/module/actions/components.class.php b/exchange/apps/exchange/modules/module/actions/components.class.php
index 7468aa3..7468aa3 100644
--- a/apps/exchange/modules/module/actions/components.class.php
+++ b/exchange/apps/exchange/modules/module/actions/components.class.php
diff --git a/apps/exchange/modules/module/config/security.yml b/exchange/apps/exchange/modules/module/config/security.yml
index f009ac2..f009ac2 100644
--- a/apps/exchange/modules/module/config/security.yml
+++ b/exchange/apps/exchange/modules/module/config/security.yml
diff --git a/apps/exchange/modules/module/templates/_table.php b/exchange/apps/exchange/modules/module/templates/_table.php
index c592209..c592209 100644
--- a/apps/exchange/modules/module/templates/_table.php
+++ b/exchange/apps/exchange/modules/module/templates/_table.php
diff --git a/apps/exchange/modules/module/templates/indexSuccess.php b/exchange/apps/exchange/modules/module/templates/indexSuccess.php
index 65886fc..65886fc 100644
--- a/apps/exchange/modules/module/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/module/templates/indexSuccess.php
diff --git a/apps/exchange/modules/module/templates/readSuccess.php b/exchange/apps/exchange/modules/module/templates/readSuccess.php
index ad90ed5..ad90ed5 100644
--- a/apps/exchange/modules/module/templates/readSuccess.php
+++ b/exchange/apps/exchange/modules/module/templates/readSuccess.php
diff --git a/apps/exchange/modules/module/templates/updateSuccess.php b/exchange/apps/exchange/modules/module/templates/updateSuccess.php
index dc42407..dc42407 100644
--- a/apps/exchange/modules/module/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/module/templates/updateSuccess.php
diff --git a/apps/exchange/modules/moduleThemeGroup/actions/actions.class.php b/exchange/apps/exchange/modules/moduleThemeGroup/actions/actions.class.php
index 3fce498..3fce498 100644
--- a/apps/exchange/modules/moduleThemeGroup/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/moduleThemeGroup/actions/actions.class.php
diff --git a/apps/exchange/modules/moduleThemeGroup/config/security.yml b/exchange/apps/exchange/modules/moduleThemeGroup/config/security.yml
index 0729b18..0729b18 100644
--- a/apps/exchange/modules/moduleThemeGroup/config/security.yml
+++ b/exchange/apps/exchange/modules/moduleThemeGroup/config/security.yml
diff --git a/apps/exchange/modules/moduleThemeGroup/templates/indexSuccess.php b/exchange/apps/exchange/modules/moduleThemeGroup/templates/indexSuccess.php
index e69de29..e69de29 100644
--- a/apps/exchange/modules/moduleThemeGroup/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/moduleThemeGroup/templates/indexSuccess.php
diff --git a/apps/exchange/modules/moduleThemeGroup/templates/updateSuccess.php b/exchange/apps/exchange/modules/moduleThemeGroup/templates/updateSuccess.php
index c948ffa..c948ffa 100644
--- a/apps/exchange/modules/moduleThemeGroup/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/moduleThemeGroup/templates/updateSuccess.php
diff --git a/apps/exchange/modules/rating/actions/actions.class.php b/exchange/apps/exchange/modules/rating/actions/actions.class.php
index 2d23fc1..2d23fc1 100644
--- a/apps/exchange/modules/rating/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/rating/actions/actions.class.php
diff --git a/apps/exchange/modules/rating/actions/components.class.php b/exchange/apps/exchange/modules/rating/actions/components.class.php
index 4ae8911..4ae8911 100644
--- a/apps/exchange/modules/rating/actions/components.class.php
+++ b/exchange/apps/exchange/modules/rating/actions/components.class.php
diff --git a/apps/exchange/modules/rating/templates/_rating.php b/exchange/apps/exchange/modules/rating/templates/_rating.php
index 0ab945a..0ab945a 100644
--- a/apps/exchange/modules/rating/templates/_rating.php
+++ b/exchange/apps/exchange/modules/rating/templates/_rating.php
diff --git a/apps/exchange/modules/rating/templates/indexSuccess.php b/exchange/apps/exchange/modules/rating/templates/indexSuccess.php
index e69de29..e69de29 100644
--- a/apps/exchange/modules/rating/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/rating/templates/indexSuccess.php
diff --git a/apps/exchange/modules/rating/templates/rateSuccess.php b/exchange/apps/exchange/modules/rating/templates/rateSuccess.php
index 4d957a0..4d957a0 100644
--- a/apps/exchange/modules/rating/templates/rateSuccess.php
+++ b/exchange/apps/exchange/modules/rating/templates/rateSuccess.php
diff --git a/apps/exchange/modules/theme/actions/actions.class.php b/exchange/apps/exchange/modules/theme/actions/actions.class.php
index d2d5e37..d2d5e37 100644
--- a/apps/exchange/modules/theme/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/theme/actions/actions.class.php
diff --git a/apps/exchange/modules/theme/actions/components.class.php b/exchange/apps/exchange/modules/theme/actions/components.class.php
index 67c9d91..67c9d91 100644
--- a/apps/exchange/modules/theme/actions/components.class.php
+++ b/exchange/apps/exchange/modules/theme/actions/components.class.php
diff --git a/apps/exchange/modules/theme/config/security.yml b/exchange/apps/exchange/modules/theme/config/security.yml
index f009ac2..f009ac2 100644
--- a/apps/exchange/modules/theme/config/security.yml
+++ b/exchange/apps/exchange/modules/theme/config/security.yml
diff --git a/apps/exchange/modules/theme/templates/_table.php b/exchange/apps/exchange/modules/theme/templates/_table.php
index 582cbcf..c8ed99b 100644
--- a/apps/exchange/modules/theme/templates/_table.php
+++ b/exchange/apps/exchange/modules/theme/templates/_table.php
@@ -56,4 +56,4 @@
56 Sort: <?php echo $form['sort'] ?><?php echo $form['order'] ?> &nbsp;&nbsp;Show: <?php echo $form['limit'] ?> 56 Sort: <?php echo $form['sort'] ?><?php echo $form['order'] ?> &nbsp;&nbsp;Show: <?php echo $form['limit'] ?>
57</form> 57</form>
58</div> 58</div>
59<?php endif; ?> \ No newline at end of file 59<?php endif; ?>
diff --git a/apps/exchange/modules/theme/templates/indexSuccess.php b/exchange/apps/exchange/modules/theme/templates/indexSuccess.php
index 2f7b6ed..2f7b6ed 100644
--- a/apps/exchange/modules/theme/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/theme/templates/indexSuccess.php
diff --git a/apps/exchange/modules/theme/templates/readSuccess.php b/exchange/apps/exchange/modules/theme/templates/readSuccess.php
index cc2959f..cc2959f 100644
--- a/apps/exchange/modules/theme/templates/readSuccess.php
+++ b/exchange/apps/exchange/modules/theme/templates/readSuccess.php
diff --git a/apps/exchange/modules/theme/templates/updateSuccess.php b/exchange/apps/exchange/modules/theme/templates/updateSuccess.php
index b913ca9..b913ca9 100644
--- a/apps/exchange/modules/theme/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/theme/templates/updateSuccess.php
diff --git a/apps/exchange/modules/themeGroup/actions/actions.class.php b/exchange/apps/exchange/modules/themeGroup/actions/actions.class.php
index d209e67..d209e67 100644
--- a/apps/exchange/modules/themeGroup/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/themeGroup/actions/actions.class.php
diff --git a/apps/exchange/modules/themeGroup/actions/components.class.php b/exchange/apps/exchange/modules/themeGroup/actions/components.class.php
index e52bb6d..e52bb6d 100644
--- a/apps/exchange/modules/themeGroup/actions/components.class.php
+++ b/exchange/apps/exchange/modules/themeGroup/actions/components.class.php
diff --git a/apps/exchange/modules/themeGroup/config/security.yml b/exchange/apps/exchange/modules/themeGroup/config/security.yml
index d3f35e4..d3f35e4 100644
--- a/apps/exchange/modules/themeGroup/config/security.yml
+++ b/exchange/apps/exchange/modules/themeGroup/config/security.yml
diff --git a/apps/exchange/modules/themeGroup/templates/_table.php b/exchange/apps/exchange/modules/themeGroup/templates/_table.php
index e40baac..10f2e8c 100644
--- a/apps/exchange/modules/themeGroup/templates/_table.php
+++ b/exchange/apps/exchange/modules/themeGroup/templates/_table.php
@@ -50,4 +50,4 @@
50 There are no known groups. 50 There are no known groups.
51 <?php endif; ?> 51 <?php endif; ?>
52 <?php echo link_to('View Complete List &raquo;', $morePage) ?> 52 <?php echo link_to('View Complete List &raquo;', $morePage) ?>
53<?php endif; ?> \ No newline at end of file 53<?php endif; ?>
diff --git a/apps/exchange/modules/themeGroup/templates/indexSuccess.php b/exchange/apps/exchange/modules/themeGroup/templates/indexSuccess.php
index 8f14e0d..8f14e0d 100644
--- a/apps/exchange/modules/themeGroup/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/themeGroup/templates/indexSuccess.php
diff --git a/apps/exchange/modules/themeGroup/templates/readSuccess.php b/exchange/apps/exchange/modules/themeGroup/templates/readSuccess.php
index 609a29c..609a29c 100644
--- a/apps/exchange/modules/themeGroup/templates/readSuccess.php
+++ b/exchange/apps/exchange/modules/themeGroup/templates/readSuccess.php
diff --git a/apps/exchange/modules/themeGroup/templates/updateSuccess.php b/exchange/apps/exchange/modules/themeGroup/templates/updateSuccess.php
index 657741b..657741b 100644
--- a/apps/exchange/modules/themeGroup/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/themeGroup/templates/updateSuccess.php
diff --git a/apps/exchange/modules/user/actions/actions.class.php b/exchange/apps/exchange/modules/user/actions/actions.class.php
index 6ec75f6..6ec75f6 100644
--- a/apps/exchange/modules/user/actions/actions.class.php
+++ b/exchange/apps/exchange/modules/user/actions/actions.class.php
diff --git a/apps/exchange/modules/user/actions/components.class.php b/exchange/apps/exchange/modules/user/actions/components.class.php
index ddc51dc..ddc51dc 100644
--- a/apps/exchange/modules/user/actions/components.class.php
+++ b/exchange/apps/exchange/modules/user/actions/components.class.php
diff --git a/apps/exchange/modules/user/config/security.yml b/exchange/apps/exchange/modules/user/config/security.yml
index 38113e4..38113e4 100644
--- a/apps/exchange/modules/user/config/security.yml
+++ b/exchange/apps/exchange/modules/user/config/security.yml
diff --git a/apps/exchange/modules/user/templates/_table.php b/exchange/apps/exchange/modules/user/templates/_table.php
index a0cff29..eea7dd5 100644
--- a/apps/exchange/modules/user/templates/_table.php
+++ b/exchange/apps/exchange/modules/user/templates/_table.php
@@ -43,4 +43,4 @@
43 Show: <?php echo $form['limit'] ?> 43 Show: <?php echo $form['limit'] ?>
44</form> 44</form>
45</div> 45</div>
46<?php endif; ?> \ No newline at end of file 46<?php endif; ?>
diff --git a/apps/exchange/modules/user/templates/activateSuccess.php b/exchange/apps/exchange/modules/user/templates/activateSuccess.php
index 0e23463..0e23463 100644
--- a/apps/exchange/modules/user/templates/activateSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/activateSuccess.php
diff --git a/apps/exchange/modules/user/templates/checkEmailSuccess.php b/exchange/apps/exchange/modules/user/templates/checkEmailSuccess.php
index a8c9185..a8c9185 100644
--- a/apps/exchange/modules/user/templates/checkEmailSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/checkEmailSuccess.php
diff --git a/apps/exchange/modules/user/templates/forgotSuccess.php b/exchange/apps/exchange/modules/user/templates/forgotSuccess.php
index 3fb6163..3fb6163 100644
--- a/apps/exchange/modules/user/templates/forgotSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/forgotSuccess.php
diff --git a/apps/exchange/modules/user/templates/indexSuccess.php b/exchange/apps/exchange/modules/user/templates/indexSuccess.php
index f23a4aa..f23a4aa 100644
--- a/apps/exchange/modules/user/templates/indexSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/indexSuccess.php
diff --git a/apps/exchange/modules/user/templates/loginSuccess.php b/exchange/apps/exchange/modules/user/templates/loginSuccess.php
index 3608436..3608436 100644
--- a/apps/exchange/modules/user/templates/loginSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/loginSuccess.php
diff --git a/apps/exchange/modules/user/templates/readSuccess.php b/exchange/apps/exchange/modules/user/templates/readSuccess.php
index 7d8f91a..7d8f91a 100644
--- a/apps/exchange/modules/user/templates/readSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/readSuccess.php
diff --git a/apps/exchange/modules/user/templates/updateSuccess.php b/exchange/apps/exchange/modules/user/templates/updateSuccess.php
index efb012c..efb012c 100644
--- a/apps/exchange/modules/user/templates/updateSuccess.php
+++ b/exchange/apps/exchange/modules/user/templates/updateSuccess.php
diff --git a/apps/exchange/templates/empty.php b/exchange/apps/exchange/templates/empty.php
index 21e192f..21e192f 100644
--- a/apps/exchange/templates/empty.php
+++ b/exchange/apps/exchange/templates/empty.php
diff --git a/apps/exchange/templates/layout.php b/exchange/apps/exchange/templates/layout.php
index 757952f..757952f 100644
--- a/apps/exchange/templates/layout.php
+++ b/exchange/apps/exchange/templates/layout.php
diff --git a/config/ProjectConfiguration.class.php b/exchange/config/ProjectConfiguration.class.php
index 16f3be0..fbb42aa 100644
--- a/config/ProjectConfiguration.class.php
+++ b/exchange/config/ProjectConfiguration.class.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2 2
3require_once dirname(__FILE__).'/../../symfony/lib/autoload/sfCoreAutoload.class.php'; 3require_once 'symfony/lib/autoload/sfCoreAutoload.class.php';
4sfCoreAutoload::register(); 4sfCoreAutoload::register();
5 5
6class ProjectConfiguration extends sfProjectConfiguration 6class ProjectConfiguration extends sfProjectConfiguration
@@ -8,4 +8,4 @@ class ProjectConfiguration extends sfProjectConfiguration
8 public function setup() 8 public function setup()
9 { 9 {
10 } 10 }
11} \ No newline at end of file 11}
diff --git a/exchange/config/databases.yml b/exchange/config/databases.yml
new file mode 100644
index 0000000..531b8cb
--- /dev/null
+++ b/exchange/config/databases.yml
@@ -0,0 +1,5 @@
1all:
2 connection_name:
3 class: sfDoctrineDatabase
4 param:
5 dsn: mysql://@@USER@@:@@PASSWORD@@@localhost/@@DATABASE@@
diff --git a/config/doctrine/schema.yml b/exchange/config/doctrine/schema.yml
index 52f7398..52f7398 100644
--- a/config/doctrine/schema.yml
+++ b/exchange/config/doctrine/schema.yml
diff --git a/config/properties.ini b/exchange/config/properties.ini
index b1ea1b1..b1ea1b1 100644
--- a/config/properties.ini
+++ b/exchange/config/properties.ini
diff --git a/data/sql/reload.sql b/exchange/data/sql/reload.sql
index 7b43cc1..7b43cc1 100644
--- a/data/sql/reload.sql
+++ b/exchange/data/sql/reload.sql
diff --git a/data/sql/schema.sql b/exchange/data/sql/schema.sql
index 971121c..9c88f93 100644
--- a/data/sql/schema.sql
+++ b/exchange/data/sql/schema.sql
@@ -1,28 +1,28 @@
1CREATE TABLE theme_theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), theme_id INT, theme_group_id INT, created_at DATETIME, updated_at DATETIME, INDEX theme_id_idx (theme_id), INDEX theme_group_id_idx (theme_group_id), PRIMARY KEY(id)) ENGINE = INNODB; 1CREATE TABLE theme_theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), theme_id INT, theme_group_id INT, created_at DATETIME, updated_at DATETIME, INDEX theme_id_idx (theme_id), INDEX theme_group_id_idx (theme_group_id), PRIMARY KEY(id)) ENGINE = INNODB;
2CREATE TABLE application (id INT AUTO_INCREMENT, name VARCHAR(255), description TEXT, source_url TEXT, downloads INT, rating DOUBLE, showcase TINYINT(1), approved TINYINT(1), user_id INT, created_at DATETIME, updated_at DATETIME, INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB; 2CREATE TABLE user (id INT AUTO_INCREMENT, name VARCHAR(255), email VARCHAR(255), password VARCHAR(255), role INT, hash VARCHAR(50), api_key VARCHAR(50), active TINYINT(1), created_at DATETIME, updated_at DATETIME, PRIMARY KEY(id)) ENGINE = INNODB;
3CREATE TABLE theme (id INT AUTO_INCREMENT, name VARCHAR(255), author VARCHAR(255), license VARCHAR(255), version VARCHAR(255), description TEXT, file_name VARCHAR(255), downloads INT, rating DOUBLE, showcase TINYINT(1), approved TINYINT(1), user_id INT, created_at DATETIME, updated_at DATETIME, INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
3CREATE TABLE madule (id INT AUTO_INCREMENT, name VARCHAR(255), description TEXT, source_url TEXT, downloads INT, rating DOUBLE, showcase TINYINT(1), approved TINYINT(1), application_id INT, user_id INT, created_at DATETIME, updated_at DATETIME, INDEX user_id_idx (user_id), INDEX application_id_idx (application_id), PRIMARY KEY(id)) ENGINE = INNODB; 4CREATE TABLE madule (id INT AUTO_INCREMENT, name VARCHAR(255), description TEXT, source_url TEXT, downloads INT, rating DOUBLE, showcase TINYINT(1), approved TINYINT(1), application_id INT, user_id INT, created_at DATETIME, updated_at DATETIME, INDEX user_id_idx (user_id), INDEX application_id_idx (application_id), PRIMARY KEY(id)) ENGINE = INNODB;
4CREATE TABLE comment (id INT AUTO_INCREMENT, comment TEXT, application_id INT, madule_id INT, theme_id INT, user_id INT, created_at DATETIME, updated_at DATETIME, INDEX application_id_idx (application_id), INDEX madule_id_idx (madule_id), INDEX theme_id_idx (theme_id), INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB; 5CREATE TABLE application (id INT AUTO_INCREMENT, name VARCHAR(255), description TEXT, source_url TEXT, downloads INT, rating DOUBLE, showcase TINYINT(1), approved TINYINT(1), user_id INT, created_at DATETIME, updated_at DATETIME, INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
6CREATE TABLE madule_theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), madule_id INT, theme_group_id INT, created_at DATETIME, updated_at DATETIME, INDEX madule_id_idx (madule_id), INDEX theme_group_id_idx (theme_group_id), PRIMARY KEY(id)) ENGINE = INNODB;
5CREATE TABLE rating (id INT AUTO_INCREMENT, value INT, application_id INT, madule_id INT, theme_id INT, user_id INT, INDEX application_id_idx (application_id), INDEX madule_id_idx (madule_id), INDEX theme_id_idx (theme_id), INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB; 7CREATE TABLE rating (id INT AUTO_INCREMENT, value INT, application_id INT, madule_id INT, theme_id INT, user_id INT, INDEX application_id_idx (application_id), INDEX madule_id_idx (madule_id), INDEX theme_id_idx (theme_id), INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
6CREATE TABLE application_theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), application_id INT, theme_group_id INT, created_at DATETIME, updated_at DATETIME, INDEX application_id_idx (application_id), INDEX theme_group_id_idx (theme_group_id), PRIMARY KEY(id)) ENGINE = INNODB;
7CREATE TABLE theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), title VARCHAR(255), known TINYINT(1), created_at DATETIME, updated_at DATETIME, PRIMARY KEY(id)) ENGINE = INNODB; 8CREATE TABLE theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), title VARCHAR(255), known TINYINT(1), created_at DATETIME, updated_at DATETIME, PRIMARY KEY(id)) ENGINE = INNODB;
8CREATE TABLE theme (id INT AUTO_INCREMENT, name VARCHAR(255), author VARCHAR(255), license VARCHAR(255), version VARCHAR(255), description TEXT, file_name VARCHAR(255), downloads INT, rating DOUBLE, showcase TINYINT(1), approved TINYINT(1), user_id INT, created_at DATETIME, updated_at DATETIME, INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB; 9CREATE TABLE application_theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), application_id INT, theme_group_id INT, created_at DATETIME, updated_at DATETIME, INDEX application_id_idx (application_id), INDEX theme_group_id_idx (theme_group_id), PRIMARY KEY(id)) ENGINE = INNODB;
9CREATE TABLE user (id INT AUTO_INCREMENT, name VARCHAR(255), email VARCHAR(255), password VARCHAR(255), role INT, hash VARCHAR(50), api_key VARCHAR(50), active TINYINT(1), created_at DATETIME, updated_at DATETIME, PRIMARY KEY(id)) ENGINE = INNODB; 10CREATE TABLE comment (id INT AUTO_INCREMENT, comment TEXT, application_id INT, madule_id INT, theme_id INT, user_id INT, created_at DATETIME, updated_at DATETIME, INDEX application_id_idx (application_id), INDEX madule_id_idx (madule_id), INDEX theme_id_idx (theme_id), INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
10CREATE TABLE madule_theme_group (id INT AUTO_INCREMENT, name VARCHAR(255), madule_id INT, theme_group_id INT, created_at DATETIME, updated_at DATETIME, INDEX madule_id_idx (madule_id), INDEX theme_group_id_idx (theme_group_id), PRIMARY KEY(id)) ENGINE = INNODB;
11ALTER TABLE theme_theme_group ADD FOREIGN KEY (theme_id) REFERENCES theme(id); 11ALTER TABLE theme_theme_group ADD FOREIGN KEY (theme_id) REFERENCES theme(id);
12ALTER TABLE theme_theme_group ADD FOREIGN KEY (theme_group_id) REFERENCES theme_group(id); 12ALTER TABLE theme_theme_group ADD FOREIGN KEY (theme_group_id) REFERENCES theme_group(id);
13ALTER TABLE application ADD FOREIGN KEY (user_id) REFERENCES user(id); 13ALTER TABLE theme ADD FOREIGN KEY (user_id) REFERENCES user(id);
14ALTER TABLE madule ADD FOREIGN KEY (user_id) REFERENCES user(id); 14ALTER TABLE madule ADD FOREIGN KEY (user_id) REFERENCES user(id);
15ALTER TABLE madule ADD FOREIGN KEY (application_id) REFERENCES application(id); 15ALTER TABLE madule ADD FOREIGN KEY (application_id) REFERENCES application(id);
16ALTER TABLE comment ADD FOREIGN KEY (user_id) REFERENCES user(id); 16ALTER TABLE application ADD FOREIGN KEY (user_id) REFERENCES user(id);
17ALTER TABLE comment ADD FOREIGN KEY (theme_id) REFERENCES theme(id); 17ALTER TABLE madule_theme_group ADD FOREIGN KEY (theme_group_id) REFERENCES theme_group(id);
18ALTER TABLE comment ADD FOREIGN KEY (madule_id) REFERENCES madule(id); 18ALTER TABLE madule_theme_group ADD FOREIGN KEY (madule_id) REFERENCES madule(id);
19ALTER TABLE comment ADD FOREIGN KEY (application_id) REFERENCES application(id);
20ALTER TABLE rating ADD FOREIGN KEY (user_id) REFERENCES user(id); 19ALTER TABLE rating ADD FOREIGN KEY (user_id) REFERENCES user(id);
21ALTER TABLE rating ADD FOREIGN KEY (theme_id) REFERENCES theme(id); 20ALTER TABLE rating ADD FOREIGN KEY (theme_id) REFERENCES theme(id);
22ALTER TABLE rating ADD FOREIGN KEY (madule_id) REFERENCES madule(id); 21ALTER TABLE rating ADD FOREIGN KEY (madule_id) REFERENCES madule(id);
23ALTER TABLE rating ADD FOREIGN KEY (application_id) REFERENCES application(id); 22ALTER TABLE rating ADD FOREIGN KEY (application_id) REFERENCES application(id);
24ALTER TABLE application_theme_group ADD FOREIGN KEY (theme_group_id) REFERENCES theme_group(id); 23ALTER TABLE application_theme_group ADD FOREIGN KEY (theme_group_id) REFERENCES theme_group(id);
25ALTER TABLE application_theme_group ADD FOREIGN KEY (application_id) REFERENCES application(id); 24ALTER TABLE application_theme_group ADD FOREIGN KEY (application_id) REFERENCES application(id);
26ALTER TABLE theme ADD FOREIGN KEY (user_id) REFERENCES user(id); 25ALTER TABLE comment ADD FOREIGN KEY (user_id) REFERENCES user(id);
27ALTER TABLE madule_theme_group ADD FOREIGN KEY (theme_group_id) REFERENCES theme_group(id); 26ALTER TABLE comment ADD FOREIGN KEY (theme_id) REFERENCES theme(id);
28ALTER TABLE madule_theme_group ADD FOREIGN KEY (madule_id) REFERENCES madule(id); 27ALTER TABLE comment ADD FOREIGN KEY (madule_id) REFERENCES madule(id);
28ALTER TABLE comment ADD FOREIGN KEY (application_id) REFERENCES application(id);
diff --git a/lib/form/ApplicationForm.class.php b/exchange/lib/form/ApplicationForm.class.php
index 45b5df7..b77d475 100644
--- a/lib/form/ApplicationForm.class.php
+++ b/exchange/lib/form/ApplicationForm.class.php
@@ -18,8 +18,7 @@ class ApplicationForm extends sfForm
18 'screenshot' => 'Screenshot' 18 'screenshot' => 'Screenshot'
19 )); 19 ));
20 $this->widgetSchema->setHelps(array( 20 $this->widgetSchema->setHelps(array(
21 'description' => '<a href="/home/wikiSyntax" target=_blank>Syntax</a>', 21 'description' => '<a href="/home/wikiSyntax" target=_blank>Syntax</a>'
22 'source_url' => 'If this application is in SVN, just enter the path to the SVN module',
23 )); 22 ));
24 $this->widgetSchema->setNameFormat('application[%s]'); 23 $this->widgetSchema->setNameFormat('application[%s]');
25 24
diff --git a/lib/form/ApplicationThemeGroupForm.class.php b/exchange/lib/form/ApplicationThemeGroupForm.class.php
index 860281a..860281a 100644
--- a/lib/form/ApplicationThemeGroupForm.class.php
+++ b/exchange/lib/form/ApplicationThemeGroupForm.class.php
diff --git a/lib/form/CommentForm.class.php b/exchange/lib/form/CommentForm.class.php
index a9aa480..a9aa480 100644
--- a/lib/form/CommentForm.class.php
+++ b/exchange/lib/form/CommentForm.class.php
diff --git a/lib/form/ForgotForm.class.php b/exchange/lib/form/ForgotForm.class.php
index cf1bc76..cf1bc76 100644
--- a/lib/form/ForgotForm.class.php
+++ b/exchange/lib/form/ForgotForm.class.php
diff --git a/lib/form/LoginForm.class.php b/exchange/lib/form/LoginForm.class.php
index 21adaa0..21adaa0 100644
--- a/lib/form/LoginForm.class.php
+++ b/exchange/lib/form/LoginForm.class.php
diff --git a/lib/form/ModuleForm.class.php b/exchange/lib/form/ModuleForm.class.php
index 91ff680..ca6cfe5 100644
--- a/lib/form/ModuleForm.class.php
+++ b/exchange/lib/form/ModuleForm.class.php
@@ -21,8 +21,7 @@ class ModuleForm extends sfForm
21 'screenshot' => 'Screenshot' 21 'screenshot' => 'Screenshot'
22 )); 22 ));
23 $this->widgetSchema->setHelps(array( 23 $this->widgetSchema->setHelps(array(
24 'description' => '<a href="/home/wikiSyntax" target=_blank>Syntax</a>', 24 'description' => '<a href="/home/wikiSyntax" target=_blank>Syntax</a>'
25 'source_url' => 'If this module is in SVN, just enter the path to the SVN module',
26 )); 25 ));
27 $this->widgetSchema->setNameFormat('madule[%s]'); 26 $this->widgetSchema->setNameFormat('madule[%s]');
28 27
diff --git a/lib/form/ModuleThemeGroupForm.class.php b/exchange/lib/form/ModuleThemeGroupForm.class.php
index bfb6442..bfb6442 100644
--- a/lib/form/ModuleThemeGroupForm.class.php
+++ b/exchange/lib/form/ModuleThemeGroupForm.class.php
diff --git a/lib/form/SearchForm.class.php b/exchange/lib/form/SearchForm.class.php
index 243869b..243869b 100644
--- a/lib/form/SearchForm.class.php
+++ b/exchange/lib/form/SearchForm.class.php
diff --git a/lib/form/SortForm.class.php b/exchange/lib/form/SortForm.class.php
index 4f85115..4f85115 100644
--- a/lib/form/SortForm.class.php
+++ b/exchange/lib/form/SortForm.class.php
diff --git a/lib/form/ThemeForm.class.php b/exchange/lib/form/ThemeForm.class.php
index 2ca6797..2ca6797 100644
--- a/lib/form/ThemeForm.class.php
+++ b/exchange/lib/form/ThemeForm.class.php
diff --git a/lib/form/ThemeGroupForm.class.php b/exchange/lib/form/ThemeGroupForm.class.php
index f9aa5ee..f9aa5ee 100644
--- a/lib/form/ThemeGroupForm.class.php
+++ b/exchange/lib/form/ThemeGroupForm.class.php
diff --git a/lib/form/UserForm.class.php b/exchange/lib/form/UserForm.class.php
index 39b4bd0..39b4bd0 100644
--- a/lib/form/UserForm.class.php
+++ b/exchange/lib/form/UserForm.class.php
diff --git a/lib/form/exchangeWidgetFormSchemaFormatter.class.php b/exchange/lib/form/exchangeWidgetFormSchemaFormatter.class.php
index b3fec6c..b3fec6c 100644
--- a/lib/form/exchangeWidgetFormSchemaFormatter.class.php
+++ b/exchange/lib/form/exchangeWidgetFormSchemaFormatter.class.php
diff --git a/lib/form/validatorLogin.php b/exchange/lib/form/validatorLogin.php
index a4df47a..a4df47a 100644
--- a/lib/form/validatorLogin.php
+++ b/exchange/lib/form/validatorLogin.php
diff --git a/lib/migration/doctrine/001_add_theme_theme_group.class.php b/exchange/lib/migration/doctrine/001_add_theme_theme_group.class.php
index 2884d68..2884d68 100644
--- a/lib/migration/doctrine/001_add_theme_theme_group.class.php
+++ b/exchange/lib/migration/doctrine/001_add_theme_theme_group.class.php
diff --git a/lib/migration/doctrine/002_add_application.class.php b/exchange/lib/migration/doctrine/002_add_application.class.php
index 61e9577..61e9577 100644
--- a/lib/migration/doctrine/002_add_application.class.php
+++ b/exchange/lib/migration/doctrine/002_add_application.class.php
diff --git a/lib/migration/doctrine/003_add_madule.class.php b/exchange/lib/migration/doctrine/003_add_madule.class.php
index 73af098..73af098 100644
--- a/lib/migration/doctrine/003_add_madule.class.php
+++ b/exchange/lib/migration/doctrine/003_add_madule.class.php
diff --git a/lib/migration/doctrine/004_add_comment.class.php b/exchange/lib/migration/doctrine/004_add_comment.class.php
index d7a71b3..d7a71b3 100644
--- a/lib/migration/doctrine/004_add_comment.class.php
+++ b/exchange/lib/migration/doctrine/004_add_comment.class.php
diff --git a/lib/migration/doctrine/005_add_rating.class.php b/exchange/lib/migration/doctrine/005_add_rating.class.php
index 9cf4399..9cf4399 100644
--- a/lib/migration/doctrine/005_add_rating.class.php
+++ b/exchange/lib/migration/doctrine/005_add_rating.class.php
diff --git a/lib/migration/doctrine/006_add_application_theme_group.class.php b/exchange/lib/migration/doctrine/006_add_application_theme_group.class.php
index ff2d6f8..ff2d6f8 100644
--- a/lib/migration/doctrine/006_add_application_theme_group.class.php
+++ b/exchange/lib/migration/doctrine/006_add_application_theme_group.class.php
diff --git a/lib/migration/doctrine/007_add_theme_group.class.php b/exchange/lib/migration/doctrine/007_add_theme_group.class.php
index 8201712..8201712 100644
--- a/lib/migration/doctrine/007_add_theme_group.class.php
+++ b/exchange/lib/migration/doctrine/007_add_theme_group.class.php
diff --git a/lib/migration/doctrine/008_add_theme.class.php b/exchange/lib/migration/doctrine/008_add_theme.class.php
index d8a5a0b..d8a5a0b 100644
--- a/lib/migration/doctrine/008_add_theme.class.php
+++ b/exchange/lib/migration/doctrine/008_add_theme.class.php
diff --git a/lib/migration/doctrine/009_add_user.class.php b/exchange/lib/migration/doctrine/009_add_user.class.php
index b2bd96d..b2bd96d 100644
--- a/lib/migration/doctrine/009_add_user.class.php
+++ b/exchange/lib/migration/doctrine/009_add_user.class.php
diff --git a/lib/migration/doctrine/010_add_object_theme_group.class.php b/exchange/lib/migration/doctrine/010_add_object_theme_group.class.php
index 316ea8e..316ea8e 100644
--- a/lib/migration/doctrine/010_add_object_theme_group.class.php
+++ b/exchange/lib/migration/doctrine/010_add_object_theme_group.class.php
diff --git a/lib/migration/doctrine/011_add_object.class.php b/exchange/lib/migration/doctrine/011_add_object.class.php
index 9ca4faa..9ca4faa 100644
--- a/lib/migration/doctrine/011_add_object.class.php
+++ b/exchange/lib/migration/doctrine/011_add_object.class.php
diff --git a/lib/migration/doctrine/012_add_madule_theme_group.class.php b/exchange/lib/migration/doctrine/012_add_madule_theme_group.class.php
index 3a1e037..3a1e037 100644
--- a/lib/migration/doctrine/012_add_madule_theme_group.class.php
+++ b/exchange/lib/migration/doctrine/012_add_madule_theme_group.class.php
diff --git a/lib/migration/doctrine/013_apply_foreign_key_constraints.class.php b/exchange/lib/migration/doctrine/013_apply_foreign_key_constraints.class.php
index ccb44c4..ccb44c4 100644
--- a/lib/migration/doctrine/013_apply_foreign_key_constraints.class.php
+++ b/exchange/lib/migration/doctrine/013_apply_foreign_key_constraints.class.php
diff --git a/lib/migration/doctrine/014_metadata.class.php b/exchange/lib/migration/doctrine/014_metadata.class.php
index 66c8ea7..66c8ea7 100644
--- a/lib/migration/doctrine/014_metadata.class.php
+++ b/exchange/lib/migration/doctrine/014_metadata.class.php
diff --git a/lib/migration/doctrine/015_showcase.class.php b/exchange/lib/migration/doctrine/015_showcase.class.php
index 59ba7e1..59ba7e1 100755
--- a/lib/migration/doctrine/015_showcase.class.php
+++ b/exchange/lib/migration/doctrine/015_showcase.class.php
diff --git a/lib/model/doctrine/Application.class.php b/exchange/lib/model/doctrine/Application.class.php
index 650fb43..650986b 100644
--- a/lib/model/doctrine/Application.class.php
+++ b/exchange/lib/model/doctrine/Application.class.php
@@ -29,7 +29,7 @@ class Application extends BaseApplication
29 public function getFolderPath() 29 public function getFolderPath()
30 { 30 {
31 if (sfConfig::get('sf_environment') == 'prod') 31 if (sfConfig::get('sf_environment') == 'prod')
32 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR; 32 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'public_html'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR;
33 else 33 else
34 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR; 34 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR;
35 } 35 }
@@ -47,12 +47,6 @@ class Application extends BaseApplication
47 public function getSourceDisplayUrl() 47 public function getSourceDisplayUrl()
48 { 48 {
49 $url = $this->getSourceUrl(); 49 $url = $this->getSourceUrl();
50 if (stripos($url, 'E16')===0
51 || stripos($url, 'e')===0
52 || stripos($url, 'E-MODULES-EXTRA')===0
53 || stripos($url, 'eterm')===0
54 || stripos($url, 'MISC')===0)
55 return '/home/cvs/path/'.urlencode(str_replace('/', '|', $url));
56 return $url; 50 return $url;
57 } 51 }
58 52
diff --git a/lib/model/doctrine/ApplicationTable.class.php b/exchange/lib/model/doctrine/ApplicationTable.class.php
index 59d2aa7..59d2aa7 100644
--- a/lib/model/doctrine/ApplicationTable.class.php
+++ b/exchange/lib/model/doctrine/ApplicationTable.class.php
diff --git a/lib/model/doctrine/ApplicationThemeGroup.class.php b/exchange/lib/model/doctrine/ApplicationThemeGroup.class.php
index e543cde..e543cde 100644
--- a/lib/model/doctrine/ApplicationThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/ApplicationThemeGroup.class.php
diff --git a/lib/model/doctrine/ApplicationThemeGroupTable.class.php b/exchange/lib/model/doctrine/ApplicationThemeGroupTable.class.php
index ad481c0..ad481c0 100644
--- a/lib/model/doctrine/ApplicationThemeGroupTable.class.php
+++ b/exchange/lib/model/doctrine/ApplicationThemeGroupTable.class.php
diff --git a/lib/model/doctrine/Comment.class.php b/exchange/lib/model/doctrine/Comment.class.php
index 2cc282b..2cc282b 100644
--- a/lib/model/doctrine/Comment.class.php
+++ b/exchange/lib/model/doctrine/Comment.class.php
diff --git a/lib/model/doctrine/CommentTable.class.php b/exchange/lib/model/doctrine/CommentTable.class.php
index 693a5d8..693a5d8 100644
--- a/lib/model/doctrine/CommentTable.class.php
+++ b/exchange/lib/model/doctrine/CommentTable.class.php
diff --git a/lib/model/doctrine/Madule.class.php b/exchange/lib/model/doctrine/Madule.class.php
index eee3746..91cd35f 100644
--- a/lib/model/doctrine/Madule.class.php
+++ b/exchange/lib/model/doctrine/Madule.class.php
@@ -29,7 +29,7 @@ class Madule extends BaseMadule
29 public function getFolderPath() 29 public function getFolderPath()
30 { 30 {
31 if (sfConfig::get('sf_environment') == 'prod') 31 if (sfConfig::get('sf_environment') == 'prod')
32 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'module'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR; 32 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'public_html'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'module'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR;
33 else 33 else
34 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'module'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR; 34 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'module'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR;
35 } 35 }
@@ -47,12 +47,6 @@ class Madule extends BaseMadule
47 public function getSourceDisplayUrl() 47 public function getSourceDisplayUrl()
48 { 48 {
49 $url = $this->getSourceUrl(); 49 $url = $this->getSourceUrl();
50 if (stripos($url, 'E16')===0
51 || stripos($url, 'e')===0
52 || stripos($url, 'E-MODULES-EXTRA')===0
53 || stripos($url, 'eterm')===0
54 || stripos($url, 'MISC')===0)
55 return '/home/cvs/path/'.urlencode(str_replace('/', '|', $url));
56 return $url; 50 return $url;
57 } 51 }
58 52
diff --git a/lib/model/doctrine/MaduleTable.class.php b/exchange/lib/model/doctrine/MaduleTable.class.php
index 096937f..096937f 100644
--- a/lib/model/doctrine/MaduleTable.class.php
+++ b/exchange/lib/model/doctrine/MaduleTable.class.php
diff --git a/lib/model/doctrine/MaduleThemeGroup.class.php b/exchange/lib/model/doctrine/MaduleThemeGroup.class.php
index a7f0b61..a7f0b61 100644
--- a/lib/model/doctrine/MaduleThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/MaduleThemeGroup.class.php
diff --git a/lib/model/doctrine/MaduleThemeGroupTable.class.php b/exchange/lib/model/doctrine/MaduleThemeGroupTable.class.php
index c2ab3ef..c2ab3ef 100644
--- a/lib/model/doctrine/MaduleThemeGroupTable.class.php
+++ b/exchange/lib/model/doctrine/MaduleThemeGroupTable.class.php
diff --git a/lib/model/doctrine/Rating.class.php b/exchange/lib/model/doctrine/Rating.class.php
index 18b2bc7..18b2bc7 100644
--- a/lib/model/doctrine/Rating.class.php
+++ b/exchange/lib/model/doctrine/Rating.class.php
diff --git a/lib/model/doctrine/RatingTable.class.php b/exchange/lib/model/doctrine/RatingTable.class.php
index 9855828..9855828 100644
--- a/lib/model/doctrine/RatingTable.class.php
+++ b/exchange/lib/model/doctrine/RatingTable.class.php
diff --git a/lib/model/doctrine/Theme.class.php b/exchange/lib/model/doctrine/Theme.class.php
index f874cd5..e1d3b91 100644
--- a/lib/model/doctrine/Theme.class.php
+++ b/exchange/lib/model/doctrine/Theme.class.php
@@ -16,7 +16,7 @@ class Theme extends BaseTheme
16 public function getFolderPath() 16 public function getFolderPath()
17 { 17 {
18 if (sfConfig::get('sf_environment') == 'prod') 18 if (sfConfig::get('sf_environment') == 'prod')
19 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'theme'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR; 19 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'public_html'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'theme'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR;
20 else 20 else
21 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'theme'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR; 21 return sfConfig::get('sf_root_dir').DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'theme'.DIRECTORY_SEPARATOR.$this->getId().DIRECTORY_SEPARATOR;
22 } 22 }
diff --git a/lib/model/doctrine/ThemeGroup.class.php b/exchange/lib/model/doctrine/ThemeGroup.class.php
index a0db553..a0db553 100644
--- a/lib/model/doctrine/ThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/ThemeGroup.class.php
diff --git a/lib/model/doctrine/ThemeGroupTable.class.php b/exchange/lib/model/doctrine/ThemeGroupTable.class.php
index 251a61c..251a61c 100644
--- a/lib/model/doctrine/ThemeGroupTable.class.php
+++ b/exchange/lib/model/doctrine/ThemeGroupTable.class.php
diff --git a/lib/model/doctrine/ThemeTable.class.php b/exchange/lib/model/doctrine/ThemeTable.class.php
index 5fd3ced..5fd3ced 100644
--- a/lib/model/doctrine/ThemeTable.class.php
+++ b/exchange/lib/model/doctrine/ThemeTable.class.php
diff --git a/lib/model/doctrine/ThemeThemeGroup.class.php b/exchange/lib/model/doctrine/ThemeThemeGroup.class.php
index 5cb2d82..5cb2d82 100644
--- a/lib/model/doctrine/ThemeThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/ThemeThemeGroup.class.php
diff --git a/lib/model/doctrine/ThemeThemeGroupTable.class.php b/exchange/lib/model/doctrine/ThemeThemeGroupTable.class.php
index 2bbf59b..2bbf59b 100644
--- a/lib/model/doctrine/ThemeThemeGroupTable.class.php
+++ b/exchange/lib/model/doctrine/ThemeThemeGroupTable.class.php
diff --git a/lib/model/doctrine/User.class.php b/exchange/lib/model/doctrine/User.class.php
index 8a903e2..8a903e2 100644
--- a/lib/model/doctrine/User.class.php
+++ b/exchange/lib/model/doctrine/User.class.php
diff --git a/lib/model/doctrine/UserTable.class.php b/exchange/lib/model/doctrine/UserTable.class.php
index 64a062b..64a062b 100644
--- a/lib/model/doctrine/UserTable.class.php
+++ b/exchange/lib/model/doctrine/UserTable.class.php
diff --git a/lib/model/doctrine/generated/BaseApplication.class.php b/exchange/lib/model/doctrine/generated/BaseApplication.class.php
index b05b495..b05b495 100644
--- a/lib/model/doctrine/generated/BaseApplication.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseApplication.class.php
diff --git a/lib/model/doctrine/generated/BaseApplicationThemeGroup.class.php b/exchange/lib/model/doctrine/generated/BaseApplicationThemeGroup.class.php
index 5c90776..5c90776 100644
--- a/lib/model/doctrine/generated/BaseApplicationThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseApplicationThemeGroup.class.php
diff --git a/lib/model/doctrine/generated/BaseComment.class.php b/exchange/lib/model/doctrine/generated/BaseComment.class.php
index 86764f3..86764f3 100644
--- a/lib/model/doctrine/generated/BaseComment.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseComment.class.php
diff --git a/lib/model/doctrine/generated/BaseMadule.class.php b/exchange/lib/model/doctrine/generated/BaseMadule.class.php
index 09a694e..09a694e 100644
--- a/lib/model/doctrine/generated/BaseMadule.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseMadule.class.php
diff --git a/lib/model/doctrine/generated/BaseMaduleThemeGroup.class.php b/exchange/lib/model/doctrine/generated/BaseMaduleThemeGroup.class.php
index 6edadef..6edadef 100644
--- a/lib/model/doctrine/generated/BaseMaduleThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseMaduleThemeGroup.class.php
diff --git a/lib/model/doctrine/generated/BaseRating.class.php b/exchange/lib/model/doctrine/generated/BaseRating.class.php
index 77b8cec..77b8cec 100644
--- a/lib/model/doctrine/generated/BaseRating.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseRating.class.php
diff --git a/lib/model/doctrine/generated/BaseTheme.class.php b/exchange/lib/model/doctrine/generated/BaseTheme.class.php
index 80ce266..80ce266 100644
--- a/lib/model/doctrine/generated/BaseTheme.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseTheme.class.php
diff --git a/lib/model/doctrine/generated/BaseThemeGroup.class.php b/exchange/lib/model/doctrine/generated/BaseThemeGroup.class.php
index 492ae4b..492ae4b 100644
--- a/lib/model/doctrine/generated/BaseThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseThemeGroup.class.php
diff --git a/lib/model/doctrine/generated/BaseThemeThemeGroup.class.php b/exchange/lib/model/doctrine/generated/BaseThemeThemeGroup.class.php
index 3aff3b3..3aff3b3 100644
--- a/lib/model/doctrine/generated/BaseThemeThemeGroup.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseThemeThemeGroup.class.php
diff --git a/lib/model/doctrine/generated/BaseUser.class.php b/exchange/lib/model/doctrine/generated/BaseUser.class.php
index ca467ba..ca467ba 100644
--- a/lib/model/doctrine/generated/BaseUser.class.php
+++ b/exchange/lib/model/doctrine/generated/BaseUser.class.php
diff --git a/lib/rememberFilter.class.php b/exchange/lib/rememberFilter.class.php
index 430f726..430f726 100644
--- a/lib/rememberFilter.class.php
+++ b/exchange/lib/rememberFilter.class.php
diff --git a/test/bootstrap/functional.php b/exchange/test/bootstrap/functional.php
index 7e174f8..7e174f8 100644
--- a/test/bootstrap/functional.php
+++ b/exchange/test/bootstrap/functional.php
diff --git a/test/bootstrap/unit.php b/exchange/test/bootstrap/unit.php
index 6f09fae..6f09fae 100644
--- a/test/bootstrap/unit.php
+++ b/exchange/test/bootstrap/unit.php
diff --git a/test/functional/exchange/apiActionsTest.php b/exchange/test/functional/exchange/apiActionsTest.php
index d5ff35e..d5ff35e 100644
--- a/test/functional/exchange/apiActionsTest.php
+++ b/exchange/test/functional/exchange/apiActionsTest.php
diff --git a/test/functional/exchange/applicationActionsTest.php b/exchange/test/functional/exchange/applicationActionsTest.php
index 0f1b714..0f1b714 100644
--- a/test/functional/exchange/applicationActionsTest.php
+++ b/exchange/test/functional/exchange/applicationActionsTest.php
diff --git a/test/functional/exchange/applicationThemeGroupActionsTest.php b/exchange/test/functional/exchange/applicationThemeGroupActionsTest.php
index 22899d7..22899d7 100644
--- a/test/functional/exchange/applicationThemeGroupActionsTest.php
+++ b/exchange/test/functional/exchange/applicationThemeGroupActionsTest.php
diff --git a/test/functional/exchange/commentActionsTest.php b/exchange/test/functional/exchange/commentActionsTest.php
index 4f55d6e..4f55d6e 100644
--- a/test/functional/exchange/commentActionsTest.php
+++ b/exchange/test/functional/exchange/commentActionsTest.php
diff --git a/test/functional/exchange/homeActionsTest.php b/exchange/test/functional/exchange/homeActionsTest.php
index 97e0fe7..97e0fe7 100644
--- a/test/functional/exchange/homeActionsTest.php
+++ b/exchange/test/functional/exchange/homeActionsTest.php
diff --git a/test/functional/exchange/moduleActionsTest.php b/exchange/test/functional/exchange/moduleActionsTest.php
index c758b8c..c758b8c 100644
--- a/test/functional/exchange/moduleActionsTest.php
+++ b/exchange/test/functional/exchange/moduleActionsTest.php
diff --git a/test/functional/exchange/moduleThemeGroupActionsTest.php b/exchange/test/functional/exchange/moduleThemeGroupActionsTest.php
index a14f954..a14f954 100644
--- a/test/functional/exchange/moduleThemeGroupActionsTest.php
+++ b/exchange/test/functional/exchange/moduleThemeGroupActionsTest.php
diff --git a/test/functional/exchange/objectActionsTest.php b/exchange/test/functional/exchange/objectActionsTest.php
index e2f444b..e2f444b 100644
--- a/test/functional/exchange/objectActionsTest.php
+++ b/exchange/test/functional/exchange/objectActionsTest.php
diff --git a/test/functional/exchange/ratingActionsTest.php b/exchange/test/functional/exchange/ratingActionsTest.php
index 97077bf..97077bf 100644
--- a/test/functional/exchange/ratingActionsTest.php
+++ b/exchange/test/functional/exchange/ratingActionsTest.php
diff --git a/test/functional/exchange/restActionsTest.php b/exchange/test/functional/exchange/restActionsTest.php
index 4c1f723..4c1f723 100644
--- a/test/functional/exchange/restActionsTest.php
+++ b/exchange/test/functional/exchange/restActionsTest.php
diff --git a/test/functional/exchange/themeActionsTest.php b/exchange/test/functional/exchange/themeActionsTest.php
index 114b9c2..114b9c2 100644
--- a/test/functional/exchange/themeActionsTest.php
+++ b/exchange/test/functional/exchange/themeActionsTest.php
diff --git a/test/functional/exchange/themeGroupActionsTest.php b/exchange/test/functional/exchange/themeGroupActionsTest.php
index 1968c15..1968c15 100644
--- a/test/functional/exchange/themeGroupActionsTest.php
+++ b/exchange/test/functional/exchange/themeGroupActionsTest.php
diff --git a/test/functional/exchange/userActionsTest.php b/exchange/test/functional/exchange/userActionsTest.php
index fca0dd1..fca0dd1 100644
--- a/test/functional/exchange/userActionsTest.php
+++ b/exchange/test/functional/exchange/userActionsTest.php
diff --git a/test/functional/exchange/wallpaperActionsTest.php b/exchange/test/functional/exchange/wallpaperActionsTest.php
index a4ae6aa..a4ae6aa 100644
--- a/test/functional/exchange/wallpaperActionsTest.php
+++ b/exchange/test/functional/exchange/wallpaperActionsTest.php
diff --git a/plugins/sfDoctrinePlugin/LICENSE b/plugins/sfDoctrinePlugin/LICENSE
deleted file mode 100644
index 28956ad..0000000
--- a/plugins/sfDoctrinePlugin/LICENSE
+++ /dev/null
@@ -1,7 +0,0 @@
1Copyright (c) 2004-2006 Fabien Potencier
2
3Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
5The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
7THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/plugins/sfDoctrinePlugin/README b/plugins/sfDoctrinePlugin/README
deleted file mode 100644
index 400859a..0000000
--- a/plugins/sfDoctrinePlugin/README
+++ /dev/null
@@ -1,24 +0,0 @@
1sfDoctrinePlugin
2=========================
3
4Overview
5--------
6
7The sfDoctrinePlugin allows you to totally replace propel with doctrine (http://www.phpdoctrine.org/) which is
8a powerful and easy-to-use ORM.
9
10Contents
11--------
12
13This plugin contains:
14- pake tasks that convert between doctrine and propel schema formats and build doctrine model classes automatically
15- an admin generator: to use it just specify sfDoctrineAdmin as the main class in your generator.yml config
16
17You will find more information in the wiki page dedicated to sfDoctrinePlugin:
18http://www.symfony-project.com/trac/wiki/sfDoctrinePlugin
19
20License
21-------
22
23For the full copyright and license information, please view the LICENSE
24file that was distributed with this source code. \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/config/autoload.yml b/plugins/sfDoctrinePlugin/config/autoload.yml
deleted file mode 100644
index 66ac3dc..0000000
--- a/plugins/sfDoctrinePlugin/config/autoload.yml
+++ /dev/null
@@ -1,11 +0,0 @@
1autoload:
2 Doctrine:
3 name: Doctrine classes
4 ext: .php
5 path: <?php echo realpath(dirname(__FILE__) . '/../lib') . "\n"; ?>
6 recursive: on
7 doctrine_model_classes:
8 name: Doctrine model classes
9 ext: .php
10 path: %SF_LIB_DIR%/model/doctrine
11 recursive: on \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/config/config_handlers.yml b/plugins/sfDoctrinePlugin/config/config_handlers.yml
deleted file mode 100644
index 1f03977..0000000
--- a/plugins/sfDoctrinePlugin/config/config_handlers.yml
+++ /dev/null
@@ -1,7 +0,0 @@
1config/doctrine.yml:
2 class: sfDoctrineConfigHandler
3 file: <?php echo realpath(dirname(__FILE__) . '/../lib/sfDoctrineConfigHandler.class.php'); ?>
4
5config/schemas.yml:
6 class: sfDoctrineSchemasConfigHandler
7 file: <?php echo realpath(dirname(__FILE__) . '/../lib/sfDoctrineSchemasConfigHandler.class.php'); ?> \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/config/doctrine.yml b/plugins/sfDoctrinePlugin/config/doctrine.yml
deleted file mode 100644
index e263386..0000000
--- a/plugins/sfDoctrinePlugin/config/doctrine.yml
+++ /dev/null
@@ -1,28 +0,0 @@
1all:
2 # all attributes below are set on the Doctrine_Manager instance
3 attributes:
4 # export sql (none, tables, constraints, all)
5 export: all
6
7 # enable doctrine side validation (true, false)
8 validate: false
9
10 # recursive merge functions from different directories/plugins
11 recursive_merge_fixtures: true
12
13 # enable quoting
14 quote_identifier: false
15
16 # enable autoloading of table class
17 autoload_table_classes: true
18
19 listeners: []
20 record_listeners: []
21
22# Configuration for specific connection names
23# connections:
24# connection_name1:
25# attributes:
26# export: all
27# listeners: []
28# record_listeners: [] \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/config/settings.yml b/plugins/sfDoctrinePlugin/config/settings.yml
deleted file mode 100644
index 1d9c7ac..0000000
--- a/plugins/sfDoctrinePlugin/config/settings.yml
+++ /dev/null
@@ -1,3 +0,0 @@
1all:
2 orm: doctrine
3# default_database: doctrine \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/actions/actions.class.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/actions/actions.class.php
deleted file mode 100644
index 5de9c4a..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/actions/actions.class.php
+++ /dev/null
@@ -1,13 +0,0 @@
1<?php
2
3/**
4 * ##MODULE_NAME## actions.
5 *
6 * @package ##PROJECT_NAME##
7 * @subpackage ##MODULE_NAME##
8 * @author ##AUTHOR_NAME##
9 * @version SVN: $Id: actions.class.php 5647 2007-10-23 17:25:20Z Eric.Fredj $
10 */
11class ##MODULE_NAME##Actions extends auto##MODULE_NAME##Actions
12{
13}
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/config/generator.yml b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/config/generator.yml
deleted file mode 100644
index 401c213..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/config/generator.yml
+++ /dev/null
@@ -1,5 +0,0 @@
1generator:
2 class: sfDoctrineAdminGenerator
3 param:
4 model_class: ##MODEL_CLASS##
5 theme: crud
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/lib/.sf b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/lib/.sf
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/lib/.sf
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/templates/.sf b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/templates/.sf
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/templates/.sf
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/validate/.sf b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/validate/.sf
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/skeleton/validate/.sf
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/actions/actions.class.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/actions/actions.class.php
deleted file mode 100644
index 4a0c5eb..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/actions/actions.class.php
+++ /dev/null
@@ -1,104 +0,0 @@
1[?php
2
3/**
4 * <?php echo $this->getGeneratedModuleName() ?> actions.
5 *
6 * @package ##PROJECT_NAME##
7 * @subpackage <?php echo $this->getGeneratedModuleName() ?>
8
9 * @author Fabien Potencier <fabien.potencier@symfony-project.com>
10 * @author Olivier Verdier <Olivier.Verdier@gmail.com>
11 * @version SVN: $Id: actions.class.php 8774 2008-05-05 06:25:14Z Jonathan.Wage $
12 */
13class <?php echo $this->getGeneratedModuleName() ?>Actions extends sfActions
14{
15 public function executeIndex ()
16 {
17 return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
18 }
19
20 public function executeList ()
21 {
22 $this-><?php echo $this->getPluralName() ?> = Doctrine::getTableable('<?php echo $this->getClassName() ?>')->findAll();
23 }
24
25 public function executeShow ()
26 {
27 $this-><?php echo $this->getSingularName() ?> = Doctrine::getTableable('<?php echo $this->getClassName() ?>')->find(<?php echo $this->getRetrieveByPkParamsForAction('') ?>);
28 $this->forward404Unless($this-><?php echo $this->getSingularName() ?>);
29 }
30
31 public function executeCreate ()
32 {
33 $this-><?php echo $this->getSingularName() ?> = new <?php echo $this->getClassName() ?>();
34 $this->setTemplate('edit');
35 }
36
37 public function executeEdit ()
38 {
39 $this-><?php echo $this->getSingularName() ?> = Doctrine::getTableable('<?php echo $this->getClassName() ?>')->find(<?php echo $this->getRetrieveByPkParamsForAction('') ?>);
40 $this->forward404Unless($this-><?php echo $this->getSingularName() ?>);
41 }
42
43 public function executeDelete ()
44 {
45 $this-><?php echo $this->getSingularName() ?> = Doctrine::getTableable('<?php echo $this->getClassName() ?>')->find(<?php echo $this->getRetrieveByPkParamsForAction('') ?>);
46
47 $this->forward404Unless($this-><?php echo $this->getSingularName() ?>);
48
49 try
50 {
51 $this-><?php echo $this->getSingularName() ?>->delete();
52 $this->redirect('<?php echo $this->getModuleName() ?>/list');
53 }
54 catch (Doctrine_Exception $e)
55 {
56 $this->getRequest()->setError('delete', 'Could not delete the selected <?php echo sfInflector::humanize($this->getSingularName()) ?>. Make sure it does not have any associated items.');
57 return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
58 }
59 }
60
61 public function executeUpdate ()
62 {
63 if (<?php echo $this->getTestPksForGetOrCreate(false) ?>)
64 {
65 $<?php echo $this->getSingularName() ?> = new <?php echo $this->getClassName() ?>();
66 }
67 else
68 {
69 $<?php echo $this->getSingularName() ?> = Doctrine::getTableable('<?php echo $this->getClassName() ?>')->find(<?php echo $this->getRetrieveByPkParamsForAction('') ?>);
70 $this->forward404Unless($<?php echo $this->getSingularName() ?>);
71 }
72
73 $formData = $this->getRequestParameter('<?php echo $this->getSingularName() ?>');
74<?php foreach ($this->getColumns('') as $index => $column):
75$type = $column->getDoctrineType();
76$name = $column->getName(); ?>
77<?php if($column->isPrimaryKey()) continue ?>
78<?php if ($name == 'created_at' || $name == 'updated_at') continue ?>
79<?php if ($type == 'boolean'): ?>
80 <?php $boolVar = "\$formData['$name']";
81 echo $this->getColumnSetter($column, "isset($boolVar) ? $boolVar : 0", false, '')?>;
82<?php continue; ?>
83<?php endif; // boolean case ?>
84 if ($newValue = $formData['<?php echo $name ?>'])
85 {
86<?php if ($type == 'date' || $type == 'timestamp'): ?>
87<?php $inputPattern = ($type == 'date' ? 'd' : 'g');
88$outputPattern = ($type == 'date' ? 'i' : 'I'); ?>
89 $dateFormat = new sfDateFormat($this->getUser()->getCulture());
90 <?php echo $this->getColumnSetter($column, sprintf('$dateFormat->format($newValue, \'%s\', $dateFormat->getInputPattern(\'%s\'))', $outputPattern, $inputPattern), false, '');?>;
91<?php elseif ($column->isForeignKey()): ?>
92 $<?php echo $this->getSingularName()?>->set('<?php echo $column->getColumnName()?>', (empty($newValue) ? null : $newValue));
93<?php else: ?>
94 <?php echo $this->getColumnSetter($column, '$newValue', false, '');?>;
95<?php endif; ?>
96 }
97<?php endforeach; ?>
98
99 $<?php echo $this->getSingularName() ?>->save();
100
101 return $this->redirect('<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>);
102<?php //' ?>
103 }
104}
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/editSuccess.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/editSuccess.php
deleted file mode 100644
index 995f26c..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/editSuccess.php
+++ /dev/null
@@ -1,31 +0,0 @@
1[?php use_helper('ObjectDoctrineAdmin', 'Object', 'Date') ?]
2
3[?php echo form_tag('<?php echo $this->getModuleName() ?>/update', 'multipart=true') ?]
4
5<?php foreach ($this->getPrimaryKey() as $pk): ?>
6[?php echo object_input_hidden_tag($<?php echo $this->getSingularName() ?>, 'get<?php echo $pk->getPhpName() ?>') ?]
7<?php endforeach; ?>
8
9
10<table>
11<tbody>
12<?php foreach ($this->getColumns('') as $index => $column): ?>
13<?php if ($column->isPrimaryKey()) continue ?>
14<?php if ($column->getName() == 'created_at' || $column->getName() == 'updated_at') continue ?>
15<tr>
16 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>: </th>
17 <td>[?php echo <?php echo $this->getColumnEditTag($column) ?> ?]</td>
18</tr>
19<?php endforeach; ?>
20
21</tbody>
22</table>
23<hr />
24[?php echo submit_tag('save') ?]
25[?php if (<?php echo $this->getPrimaryKeyIsSet() ?>): ?]
26 &nbsp;[?php echo link_to('delete', '<?php echo $this->getModuleName() ?>/delete?<?php echo $this->getPrimaryKeyUrlParams() ?>, 'post=true&confirm=Are you sure?') ?]
27 &nbsp;[?php echo link_to('cancel', '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]
28[?php else: ?]
29 &nbsp;[?php echo link_to('cancel', '<?php echo $this->getModuleName() ?>/list') ?]
30[?php endif; ?]
31</form>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php
deleted file mode 100644
index cc5d42d..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php
+++ /dev/null
@@ -1,27 +0,0 @@
1<h1><?php echo $this->getModuleName() ?></h1>
2
3<table>
4<thead>
5<tr>
6<?php foreach ($this->getColumns('') as $column): ?>
7 <th><?php echo sfInflector::humanize($column->getName()) ?></th>
8<?php endforeach; ?>
9</tr>
10</thead>
11<tbody>
12[?php foreach ($<?php echo $this->getPluralName() ?> as $<?php echo $this->getSingularName() ?>): ?]
13<tr>
14<?php foreach ($this->getColumns('') as $column): ?>
15 <?php if ($column->isPrimaryKey()): ?>
16 <td>[?php echo link_to($<?php echo $this->getSingularName() ?>->get('<?php echo $column->getPhpName() ?>'), '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>); ?]</td>
17 <?php else: ?>
18 <td>[?php echo $<?php echo $this->getSingularName() ?>->get('<?php echo $column->getPhpName() ?>'); ?]</td>
19 <?php endif; ?>
20<?php endforeach; ?>
21</tr>
22[?php endforeach; ?]
23<tr><td>Number of <?php echo $this->getPluralName() ?>: [?php echo count($<?php echo $this->getPluralName()?>) ?]</td></tr>
24</tbody>
25</table>
26
27[?php echo link_to ('create', '<?php echo $this->getModuleName() ?>/create') ?]
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php
deleted file mode 100644
index aecf6f3..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php
+++ /dev/null
@@ -1,13 +0,0 @@
1<table>
2<tbody>
3<?php foreach ($this->getAllColumns() as $column): ?>
4<tr>
5<th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>: </th>
6<td>[?= $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</td>
7</tr>
8<?php endforeach; ?>
9</tbody>
10</table>
11<hr />
12[?php echo link_to('edit', '<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]
13&nbsp;[?php echo link_to('list', '<?php echo $this->getModuleName() ?>/list') ?]
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/actions/actions.class.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/actions/actions.class.php
deleted file mode 100644
index ed90651..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/actions/actions.class.php
+++ /dev/null
@@ -1,13 +0,0 @@
1<?php
2
3/**
4 * ##MODULE_NAME## actions.
5 *
6 * @package ##PROJECT_NAME##
7 * @subpackage ##MODULE_NAME##
8 * @author Your name here
9 * @version SVN: $Id: actions.class.php 5647 2007-10-23 17:25:20Z Eric.Fredj $
10 */
11class ##MODULE_NAME##Actions extends auto##MODULE_NAME##Actions
12{
13}
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/config/generator.yml b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/config/generator.yml
deleted file mode 100644
index 378028b..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/skeleton/config/generator.yml
+++ /dev/null
@@ -1,5 +0,0 @@
1generator:
2 class: sfDoctrineAdminGenerator
3 param:
4 model_class: ##MODEL_CLASS##
5 theme: default
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/actions/actions.class.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/actions/actions.class.php
deleted file mode 100644
index eef898a..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/actions/actions.class.php
+++ /dev/null
@@ -1,422 +0,0 @@
1[?php
2
3/**
4 * <?php echo $this->getGeneratedModuleName() ?> actions.
5 *
6 * @package ##PROJECT_NAME##
7 * @subpackage <?php echo $this->getGeneratedModuleName() ?>
8
9 * @author Fabien Potencier <fabien.potencier@symfony-project.com>
10 * @author Olivier Verdier <Olivier.Verdier@gmail.com>
11 * @version SVN: $Id: actions.class.php 8774 2008-05-05 06:25:14Z Jonathan.Wage $
12 */
13class <?php echo $this->getGeneratedModuleName() ?>Actions extends sfActions
14{
15 public function preExecute ()
16 {
17 $this->getResponse()->addStylesheet('<?php echo $this->getParameterValue('css', sfConfig::get('sf_admin_web_dir').'/css/main') ?>');
18 }
19
20 public function executeIndex ()
21 {
22 return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
23 }
24
25 public function executeList ()
26 {
27 $this->processSort();
28
29 $this->processFilters();
30
31<?php if ($this->getParameterValue('list.filters')): ?>
32 $this->filters = $this->getUser()->getAttributeHolder()->getAll('sf_admin/<?php echo $this->getSingularName() ?>/filters');
33<?php endif; ?>
34
35 // pager
36 $this->pager = new sfDoctrinePager('<?php echo $this->getClassName() ?>', <?php echo $this->getParameterValue('list.max_per_page', 20) ?>);
37
38<?php if ($peerMethod = $this->getParameterValue('list.peer_method')): ?>
39 $q = Doctrine::getTable('<?php echo $this->getClassName() ?>')-><?php echo $peerMethod ?>();
40 $this->pager->setQuery($q);
41<?php endif; ?>
42
43 $this->addSortCriteria($this->pager->getQuery());
44 $this->addFiltersCriteria($this->pager->getQuery());
45
46 $this->pager->setPage($this->getRequestParameter('page', $this->getUser()->getAttribute('page', 1, 'sf_admin/<?php echo $this->getSingularName() ?>')));
47
48 $this->pager->init();
49 // Save page
50 if ($this->getRequestParameter('page')) {
51 $this->getUser()->setAttribute('page', $this->getRequestParameter('page'), 'sf_admin/<?php echo $this->getSingularName() ?>');
52 }
53 }
54
55 public function executeCreate ()
56 {
57 return $this->forward('<?php echo $this->getModuleName() ?>', 'edit');
58 }
59
60 public function executeSave ()
61 {
62 return $this->forward('<?php echo $this->getModuleName() ?>', 'edit');
63 }
64
65 public function executeEdit ()
66 {
67 $this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate();
68
69 if ($this->getRequest()->getMethod() == sfRequest::POST)
70 {
71 $this->update<?php echo $this->getClassName() ?>FromRequest();
72
73 $this->save<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>);
74
75 $this->getUser()->setFlash('notice', 'Your modifications have been saved');
76
77 if ($this->getRequestParameter('save_and_add'))
78 {
79 return $this->redirect('<?php echo $this->getModuleName() ?>/create');
80 }
81 else if ($this->getRequestParameter('save_and_list'))
82 {
83 return $this->redirect('<?php echo $this->getModuleName() ?>/list');
84 }
85 else
86 {
87 return $this->redirect('<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams('this->') ?>);
88 }
89 }
90 else
91 {
92 $this->addJavascriptsForEdit();
93
94 $this->labels = $this->getLabels();
95 }
96
97 // temporary fix to avoid using a distinct editSuccess.php template
98 sfLoader::loadHelpers(array('Helper', 'ObjectDoctrineAdmin'));
99 }
100
101 public function executeDelete ()
102 {
103 $this-><?php echo $this->getSingularName() ?> = Doctrine::getTable('<?php echo $this->getClassName() ?>')->find(<?php echo $this->getRetrieveByPkParamsForAction(40) ?>);
104
105 $this->forward404Unless($this-><?php echo $this->getSingularName() ?>);
106
107 try
108 {
109 $this->delete<?php echo $this->getClassName() ?>($this-><?php echo $this->getSingularName() ?>);
110 }
111 catch (Doctrine_Exception $e)
112 {
113 $this->getRequest()->setError('delete', 'Could not delete the selected <?php echo sfInflector::humanize($this->getSingularName()) ?>. Make sure it does not have any associated items.');
114 return $this->forward('<?php echo $this->getModuleName() ?>', 'list');
115 }
116
117<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
118<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
119<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?>
120<?php if ($input_type == 'admin_input_file_tag'): ?>
121<?php $upload_dir = $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir')) ?>
122 $currentFile = sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".<?php echo $this->getColumnGetter($column, true, 'this->')?>;
123 if (is_file($currentFile))
124 {
125 unlink($currentFile);
126 }
127
128<?php endif; ?>
129<?php endforeach; ?>
130<?php endforeach; ?>
131 return $this->redirect('<?php echo $this->getModuleName() ?>/list');
132 }
133
134 public function handleErrorEdit()
135 {
136 $this->preExecute();
137 $this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate();
138 $this->update<?php echo $this->getClassName() ?>FromRequest();
139
140 $this->addJavascriptsForEdit();
141
142 $this->labels = $this->getLabels();
143
144 // temporary fix to avoid using a distinct editSuccess.php template
145 sfLoader::loadHelpers(array('Helper', 'ObjectDoctrineAdmin'));
146
147 return sfView::SUCCESS;
148 }
149
150 protected function save<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>)
151 {
152 $<?php echo $this->getSingularName() ?>->save();
153 }
154
155 protected function delete<?php echo $this->getClassName() ?>($<?php echo $this->getSingularName() ?>)
156 {
157 $<?php echo $this->getSingularName() ?>->delete();
158 }
159
160 protected function update<?php echo $this->getClassName() ?>FromRequest()
161 {
162 $<?php echo $this->getSingularName() ?> = $this->getRequestParameter('<?php echo $this->getSingularName() ?>');
163
164<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
165<?php foreach ($this->getColumns('edit.display', $category) as $column): $type = $column->getDoctrineType(); ?>
166<?php $name = $column->getName(); ?>
167<?php if ($column->isPrimaryKey()) continue ?>
168<?php $credentials = $this->getParameterValue('edit.fields.'.$name.'.credentials') ?>
169<?php $input_type = $this->getParameterValue('edit.fields.'.$name.'.type') ?>
170<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
171 if ($this->getUser()->hasCredential(<?php echo $credentials ?>))
172 {
173<?php endif; ?>
174<?php if ($input_type == 'admin_input_file_tag'): ?>
175<?php $upload_dir = $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.upload_dir')) ?>
176 $currentFile = sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".<?php echo $this->getColumnGetter($column, true, 'this->')?>;
177 if (!$this->getRequest()->hasErrors() && isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>_remove']))
178 {
179 <?php echo $this->getColumnSetter($column, '', true) ?>;
180 if (is_file($currentFile))
181 {
182 unlink($currentFile);
183 }
184 }
185
186 if (!$this->getRequest()->hasErrors() && $this->getRequest()->getFileSize('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]'))
187 {
188<?php elseif ($type != 'boolean'): ?>
189 if (isset($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']))
190 {
191<?php endif; ?>
192<?php if ($input_type == 'admin_input_file_tag'): ?>
193<?php if ($this->getParameterValue('edit.fields.'.$name.'.filename')): ?>
194 $fileName = "<?php echo str_replace('"', '\\"', $this->replaceConstants($this->getParameterValue('edit.fields.'.$column->getName().'.filename'))) ?>";
195<?php else: ?>
196 $fileName = md5($this->getRequest()->getFileName('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]').time());
197<?php endif; ?>
198 $ext = $this->getRequest()->getFileExtension('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]');
199 if (is_file($currentFile))
200 {
201 unlink($currentFile);
202 }
203 $this->getRequest()->moveFile('<?php echo $this->getSingularName() ?>[<?php echo $name ?>]', sfConfig::get('sf_upload_dir')."/<?php echo $upload_dir ?>/".$fileName.$ext);
204 <?php echo $this->getColumnSetter($column, '$fileName.$ext')?>;
205<?php elseif ($type == 'date' || $type == 'timestamp'): ?>
206 if ($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'])
207 {
208 $dateFormat = new sfDateFormat($this->getUser()->getCulture());
209<?php
210$inputPattern = ($type == 'date' ? 'd' : 'g');
211$outputPattern = ($type == 'date' ? 'i' : 'I');
212?>
213 // if this is a direct date input (rich == true)
214 if (!is_array($<?php echo $this->getSingularName() ?>['<?php echo $name ?>']))
215 {
216 try
217 {
218 $value = $dateFormat->format($<?php echo $this->getSingularName() ?>['<?php echo $name ?>'], '<?php echo $outputPattern ?>', $dateFormat->getInputPattern('<?php echo $inputPattern ?>'));
219 }
220 catch (sfException $e)
221 {
222 // not a valid date
223 }
224 }
225 else // rich == false
226 {
227 $value_array = $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'];
228 $value = $value_array['year'].'-'.$value_array['month'].'-'.$value_array['day'].(isset($value_array['hour']) ? ' '.$value_array['hour'].':'.$value_array['minute'].(isset($value_array['second']) ? ':'.$value_array['second'] : '') : '');
229 }
230 <?php echo $this->getColumnSetter($column, '$value') ?>;
231 }
232 else
233 {
234 <?php echo $this->getColumnSetter($column, 'null') ?>;
235 }
236<?php elseif ($type == 'boolean'): ?>
237 <?php $boolVar = "\${$this->getSingularName()}['$name']";
238 echo $this->getColumnSetter($column, "isset($boolVar) ? $boolVar : 0") ?>;
239<?php elseif ($column->isForeignKey()): ?>
240 $foreignKey = $<?php echo $this->getSingularName() ?>['<?php echo $name ?>'];
241 $foreignKey = empty($foreignKey) ? null : $foreignKey;
242 $this-><?php echo $this->getSingularName()?>->set('<?php echo $column->getColumnName()?>', $foreignKey);
243<?php else: ?>
244 $this-><?php echo $this->getSingularName() ?>->set('<?php echo $column->getName() ?>', $<?php echo $this->getSingularName() ?>['<?php echo $name ?>']);
245<?php endif; ?>
246<?php if ($type != 'boolean'): ?>
247 }
248<?php endif; ?>
249
250<?php // double lists
251if (in_array($input_type, array('doctrine_admin_double_list', 'doctrine_admin_check_list', 'doctrine_admin_select_list'))): ?>
252 // Update many-to-many for "<?php echo $name ?>"
253 $<?php echo $name?>Table = Doctrine::getTable('<?php echo $this->getClassName() ?>')->getRelation('<?php echo $name ?>')->getTable();
254
255 $associationName = Doctrine::getTable('<?php echo $this->getClassName() ?>')->getRelation('<?php echo $name ?>')->getAssociationTable()->getOption('name');
256 $this-><?php echo $this->getSingularName()?>->$associationName->delete();
257
258 $ids = $this->getRequestParameter('associated_<?php echo $name ?>');
259 if (is_array($ids))
260 {
261 foreach ($ids as $id)
262 {
263 $id = explode('/', $id);
264 $this-><?php echo $this->getSingularName()?>->get('<?php echo $name ?>')->add($<?php echo $name?>Table->find($id));
265 }
266 }
267<?php endif; // double lists ?>
268<?php if ($credentials): ?>
269 }
270<?php endif; ?>
271<?php endforeach; ?>
272<?php endforeach; ?>
273 }
274
275 protected function get<?php echo $this->getClassName() ?>OrCreate (<?php echo $this->getMethodParamsForGetOrCreate() ?>)
276 {
277 if (<?php echo $this->getTestPksForGetOrCreate() ?>)
278 {
279 $<?php echo $this->getSingularName() ?> = new <?php echo $this->getClassName() ?>();
280 }
281 else
282 {
283 $<?php echo $this->getSingularName() ?> = Doctrine::getTable('<?php echo $this->getClassName() ?>')->find(array(<?php echo $this->getRetrieveByPkParamsForGetOrCreate() ?>));
284
285 $this->forward404Unless($<?php echo $this->getSingularName() ?>);
286 }
287
288 return $<?php echo $this->getSingularName() ?>;
289 }
290
291 protected function processFilters ()
292 {
293<?php if ($this->getParameterValue('list.filters')): ?>
294 if ($this->getRequest()->hasParameter('filter'))
295 {
296 $filters = $this->getRequestParameter('filters');
297<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getDoctrineType() ?>
298<?php if ($type == 'date' || $type == 'timestamp'):
299$inputPattern = ($type == 'date' ? 'd' : 'g');
300$outputPattern = ($type == 'date' ? 'i' : 'I'); ?>
301 $dateFormat = new sfDateFormat($this->getUser()->getCulture());
302
303 if (isset($filters['<?php echo $column->getName() ?>']['from']) && $filters['<?php echo $column->getName() ?>']['from'] !== '')
304 {
305 $filters['<?php echo $column->getName() ?>']['from'] = $dateFormat->format($filters['<?php echo $column->getName() ?>']['from'], '<?php echo $outputPattern?>', $dateFormat->getInputPattern('<?php echo $inputPattern ?>'));
306 }
307 if (isset($filters['<?php echo $column->getName() ?>']['to']) && $filters['<?php echo $column->getName() ?>']['to'] !== '')
308 {
309 $filters['<?php echo $column->getName() ?>']['to'] = $dateFormat->format($filters['<?php echo $column->getName() ?>']['to'], '<?php echo $outputPattern?>', $dateFormat->getInputPattern('<?php echo $inputPattern ?>'));
310 }
311<?php endif; ?>
312<?php endforeach; ?>
313 $this->getUser()->getAttributeHolder()->removeNamespace('sf_admin/<?php echo $this->getSingularName() ?>');
314 $this->getUser()->getAttributeHolder()->removeNamespace('sf_admin/<?php echo $this->getSingularName() ?>/filters');
315 $this->getUser()->getAttributeHolder()->add($filters, 'sf_admin/<?php echo $this->getSingularName() ?>/filters');
316 }
317<?php endif; ?>
318 }
319
320 protected function processSort ()
321 {
322 if ($this->getRequestParameter('sort'))
323 {
324 $this->getUser()->setAttribute('sort', $this->getRequestParameter('sort'), 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
325 $this->getUser()->setAttribute('type', $this->getRequestParameter('type', 'asc'), 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
326 }
327
328 if (!$this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort'))
329 {
330<?php if ($sort = $this->getParameterValue('list.sort')): ?>
331<?php if (is_array($sort)): ?>
332 $this->getUser()->setAttribute('sort', '<?php echo $sort[0] ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
333 $this->getUser()->setAttribute('type', '<?php echo $sort[1] ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
334<?php else: ?>
335 $this->getUser()->setAttribute('sort', '<?php echo $sort ?>', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
336 $this->getUser()->setAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort');
337<?php endif; ?>
338<?php endif; ?>
339 }
340 }
341
342 protected function addFiltersCriteria ($q)
343 {
344<?php if ($this->getParameterValue('list.filters')): ?>
345<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getDoctrineType() ?>
346<?php if (($column->isPartial() || $column->isComponent()) && $this->getParameterValue('list.fields.'.$column->getName().'.filter_criteria_disabled')) continue ?>
347<?php
348$filterColumnName = $column->getName();
349if ($column->isForeignKey())
350 $filterColumnName = $column->getColumnName();
351$queryColumn = $this->getClassName().'.'.$filterColumnName;?>
352 if (isset($this->filters['<?php echo $column->getName() ?>_is_empty']))
353 {
354 $q->addWhere("<?php echo $queryColumn?> = '' OR <?php echo $queryColumn?> IS NULL");
355 }
356<?php if ($type == 'date' || $type == 'timestamp'): ?>
357 else if (isset($this->filters['<?php echo $column->getName() ?>']))
358 {
359 if (isset($this->filters['<?php echo $column->getName() ?>']['from']) && $this->filters['<?php echo $column->getName() ?>']['from'] !== '')
360 {
361<?php
362$dateArg = "\$this->filters['{$column->getName()}']['%s']";
363?>
364 $q->addWhere('<?php echo $queryColumn?> >= ?', <?php echo sprintf($dateArg, 'from') ?>);
365 }
366 if (isset($this->filters['<?php echo $column->getName() ?>']['to']) && $this->filters['<?php echo $column->getName() ?>']['to'] !== '')
367 {
368 $q->addWhere('<?php echo $queryColumn?> <= ?', <?php echo sprintf($dateArg, 'to') ?>);
369 }
370
371 }
372<?php else: ?>
373 else if (isset($this->filters['<?php echo $column->getName() ?>']) && $this->filters['<?php echo $column->getName() ?>'] !== '')
374 {
375<?php if ($type == 'char' || $type == 'string'): ?>
376 $q->addWhere("<?php echo $queryColumn?> LIKE ?", '%'.$this->filters['<?php echo $column->getName() ?>'].'%');
377<?php else: ?>
378 $q->addWhere("<?php echo $queryColumn?> = ?", $this->filters['<?php echo $column->getName() ?>']);
379<?php endif; ?>
380 }
381<?php endif; ?>
382<?php endforeach; ?>
383<?php endif; ?>
384 }
385
386 protected function addSortCriteria ($q)
387 {
388 if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort'))
389 {
390 $table = Doctrine::getTable('<?php echo $this->getClassName()?>');
391 $colNames = array_keys($table->getColumns());
392 if (!in_array($sort_column, $colNames)) // illegal column name
393 return;
394 if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc')
395 {
396 $q->orderBy('<?php echo $this->getClassName()?>.'.$sort_column);
397 }
398 else
399 {
400 $q->orderBy('<?php echo $this->getClassName()?>.'.$sort_column.' desc');
401 }
402 }
403 }
404
405 protected function addJavascriptsForEdit()
406 {
407 $this->getResponse()->addJavascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype');
408 $this->getResponse()->addJavascript(sfConfig::get('sf_admin_web_dir').'/js/collapse');
409 $this->getResponse()->addJavascript(sfConfig::get('sf_admin_web_dir').'/js/double_list');
410 }
411
412 protected function getLabels()
413 {
414 return array(
415<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
416<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
417 '<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}' => '<?php $label_name = str_replace("'", "\\'", $this->getParameterValue('edit.fields.'.$column->getName().'.name')); echo $label_name ?><?php if ($label_name): ?>:<?php endif; ?>',
418<?php endforeach; ?>
419<?php endforeach; ?>
420 );
421 }
422}
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_actions.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_actions.php
deleted file mode 100644
index 1d0d720..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_actions.php
+++ /dev/null
@@ -1,13 +0,0 @@
1<ul class="sf_admin_actions">
2<?php $editActions = $this->getParameterValue('edit.actions') ?>
3<?php if (null !== $editActions): ?>
4<?php foreach ((array) $editActions as $actionName => $params): ?>
5 <?php if ($actionName == '_delete') continue ?>
6 <?php echo $this->addCredentialCondition($this->getButtonToAction($actionName, $params, true), $params) ?>
7<?php endforeach; ?>
8<?php else: ?>
9 <?php echo $this->getButtonToAction('_list', array(), true) ?>
10 <?php echo $this->getButtonToAction('_save', array(), true) ?>
11 <?php echo $this->getButtonToAction('_save_and_add', array(), true) ?>
12<?php endif; ?>
13</ul>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_footer.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_footer.php
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_footer.php
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_form.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_form.php
deleted file mode 100644
index f130179..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_form.php
+++ /dev/null
@@ -1,86 +0,0 @@
1[?php echo form_tag('<?php echo $this->getModuleName() ?>/save', array(
2 'id' => 'sf_admin_edit_form',
3 'name' => 'sf_admin_edit_form',
4 'multipart' => true,
5<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
6<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
7<?php if (false !== strpos($this->getParameterValue('edit.fields.'.$column->getName().'.type'), 'admin_double_list')): ?>
8 'onsubmit' => 'double_list_submit(); return true;'
9<?php break 2; ?>
10<?php endif; ?>
11<?php endforeach; ?>
12<?php endforeach; ?>
13)) ?]
14
15<?php foreach ($this->getPrimaryKey() as $pk): ?>
16[?php echo object_input_hidden_tag($<?php echo $this->getSingularName() ?>, 'get<?php echo $pk->getPhpName() ?>') ?]
17<?php endforeach; ?>
18
19<?php $first = true ?>
20<?php foreach ($this->getColumnCategories('edit.display') as $category): ?>
21<?php
22 if ($category[0] == '-')
23 {
24 $category_name = substr($category, 1);
25 $collapse = true;
26
27 if ($first)
28 {
29 $first = false;
30 echo "[?php use_javascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype') ?]\n";
31 echo "[?php use_javascript(sfConfig::get('sf_admin_web_dir').'/js/collapse') ?]\n";
32 }
33 }
34 else
35 {
36 $category_name = $category;
37 $collapse = false;
38 }
39?>
40<fieldset id="sf_fieldset_<?php echo preg_replace('/[^a-z0-9_]/', '_', strtolower($category_name)) ?>" class="<?php if ($collapse): ?> collapse<?php endif; ?>">
41<?php if ($category != 'NONE'): ?><h2>[?php echo __('<?php echo $category_name ?>') ?]</h2>
42
43<?php endif; ?>
44
45<?php $hides = $this->getParameterValue('edit.hide', array()) ?>
46<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?>
47<?php if (in_array($column->getName(), $hides)) continue ?>
48<?php if ($column->isPrimaryKey()) continue ?>
49<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?>
50<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
51 [?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
52<?php endif; ?>
53<div class="form-row">
54 [?php echo label_for('<?php echo $this->getParameterValue("edit.fields.".$column->getName().".label_for", $this->getSingularName()."[".$column->getName()."]") ?>', __($labels['<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}']), '<?php if ($column->isNotNull()): ?>class="required" <?php endif; ?>') ?]
55 <div class="content[?php if ($sf_request->hasError('<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}')): ?] form-error[?php endif; ?]">
56 [?php if ($sf_request->hasError('<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}')): ?]
57 [?php echo form_error('<?php echo $this->getSingularName() ?>{<?php echo $column->getName() ?>}', array('class' => 'form-error-msg')) ?]
58 [?php endif; ?]
59
60 [?php $value = <?php echo $this->getColumnEditTag($column); ?>; echo $value ? $value : '&nbsp;' ?]
61 <?php echo $this->getHelp($column, 'edit') ?>
62 </div>
63</div>
64<?php if ($credentials): ?>
65 [?php endif; ?]
66<?php endif; ?>
67
68<?php endforeach; ?>
69</fieldset>
70<?php endforeach; ?>
71
72[?php include_partial('edit_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
73
74</form>
75
76<ul class="sf_admin_actions">
77<?php
78/*
79 * WARNING: delete is a form, it must be outside the main form
80 */
81 $editActions = $this->getParameterValue('edit.actions');
82?>
83 <?php if (null === $editActions || (null !== $editActions && array_key_exists('_delete', $editActions))): ?>
84 <?php echo $this->addCredentialCondition($this->getButtonToAction('_delete', $editActions['_delete'], true), $editActions['_delete']) ?>
85 <?php endif; ?>
86</ul>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_header.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_header.php
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_header.php
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_messages.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_messages.php
deleted file mode 100644
index 109e3df..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_edit_messages.php
+++ /dev/null
@@ -1,15 +0,0 @@
1[?php if ($sf_request->hasErrors()): ?]
2<div class="form-errors">
3<h2>[?php echo __('The form is not valid because it contains some errors.') ?]</h2>
4<dl>
5[?php foreach ($sf_request->getErrorNames() as $name): ?]
6 <dt>[?php echo __($labels[$name]) ?]</dt>
7 <dd>[?php echo __($sf_request->getError($name)) ?]</dd>
8[?php endforeach; ?]
9</dl>
10</div>
11[?php elseif ($sf_user->hasFlash('notice')): ?]
12<div class="save-ok">
13<h2>[?php echo __($sf_user->getFlash('notice')) ?]</h2>
14</div>
15[?php endif; ?]
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_filters.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_filters.php
deleted file mode 100644
index 0c90c85..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_filters.php
+++ /dev/null
@@ -1,37 +0,0 @@
1[?php use_helper('Object') ?]
2
3<?php if ($this->getParameterValue('list.filters')): ?>
4<div class="sf_admin_filters">
5[?php echo form_tag('<?php echo $this->getModuleName() ?>/list', array('method' => 'get')) ?]
6
7 <fieldset>
8 <h2>[?php echo __('filters') ?]</h2>
9<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
10<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
11<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
12 [?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
13<?php endif; ?>
14 <div class="form-row">
15 <label for="filters_<?php echo $column->getName() ?>">[?php echo __('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>:') ?]</label>
16 <div class="content">
17 [?php echo <?php echo $this->getColumnFilterTag($column) ?> ?]
18<?php if ($this->getParameterValue('list.fields.'.$column->getName().'.filter_is_empty')): ?>
19 <div>[?php echo checkbox_tag('filters[<?php echo $column->getName() ?>_is_empty]', 1, isset($filters['<?php echo $column->getName() ?>_is_empty']) ? $filters['<?php echo $column->getName() ?>_is_empty'] : null) ?]&nbsp;<label for="filters_<?php echo $column->getName() ?>_is_empty">[?php echo __('is empty') ?]</label></div>
20<?php endif; ?>
21 </div>
22 </div>
23<?php if ($credentials): ?>
24 [?php endif; ?]
25<?php endif; ?>
26
27 <?php endforeach; ?>
28 </fieldset>
29
30 <ul class="sf_admin_actions">
31 <li>[?php echo button_to(__('reset'), '<?php echo $this->getModuleName() ?>/list?filter=filter', 'class=sf_admin_action_reset_filter') ?]</li>
32 <li>[?php echo submit_tag(__('filter'), 'name=filter class=sf_admin_action_filter') ?]</li>
33 </ul>
34
35</form>
36</div>
37<?php endif; ?>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list.php
deleted file mode 100644
index 8a4ba5b..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list.php
+++ /dev/null
@@ -1,43 +0,0 @@
1<?php if ($this->getParameterValue('list.batch_actions')): ?>
2[?php echo form_tag('<?php echo $this->getModuleNAme() ?>/batchAction') ?]
3<?php endif; ?>
4<table cellspacing="0" class="sf_admin_list">
5<thead>
6<tr>
7<?php if ($this->getParameterValue('list.batch_actions')): ?>
8 <th id="sf_admin_list_th_sf_batch_actions">[?php echo checkbox_tag('foo', 1, 0, array('onclick' => "boxes = document.getElementsByTagName('input'); for(index in boxes) { box = boxes[index]; if (box.type == 'checkbox' && box.className == 'sf_admin_batch_checkbox') box.checked = this.checked } return true;")) ?]</th>
9<?php endif; ?>
10[?php include_partial('list_th_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>') ?]
11<?php if ($this->getParameterValue('list.object_actions')): ?>
12 <th id="sf_admin_list_th_sf_actions">[?php echo __('Actions') ?]</th>
13<?php endif; ?>
14</tr>
15</thead>
16<tfoot>
17<tr><th colspan="<?php echo count($this->getColumns('list.display')) + ($this->getParameterValue('list.object_actions') ? 1 : 0) + ($this->getParameterValue('list.batch_actions') ? 1 : 0) ?>">
18<div class="float-right">
19[?php if ($pager->haveToPaginate()): ?]
20 [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/first.png', array('align' => 'absmiddle', 'alt' => __('First'), 'title' => __('First'))), '<?php echo $this->getModuleName() ?>/list?page=1') ?]
21 [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/previous.png', array('align' => 'absmiddle', 'alt' => __('Previous'), 'title' => __('Previous'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getPreviousPage()) ?]
22
23 [?php foreach ($pager->getLinks() as $page): ?]
24 [?php echo link_to_unless($page == $pager->getPage(), $page, '<?php echo $this->getModuleName() ?>/list?page='.$page) ?]
25 [?php endforeach; ?]
26
27 [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/next.png', array('align' => 'absmiddle', 'alt' => __('Next'), 'title' => __('Next'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getNextPage()) ?]
28 [?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/last.png', array('align' => 'absmiddle', 'alt' => __('Last'), 'title' => __('Last'))), '<?php echo $this->getModuleName() ?>/list?page='.$pager->getLastPage()) ?]
29[?php endif; ?]
30</div>
31[?php echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults()) ?]
32</th></tr>
33</tfoot>
34<tbody>
35[?php $i = 1; foreach ($pager->getResults() as $<?php echo $this->getSingularName() ?>): $odd = fmod(++$i, 2) ?]
36<tr class="sf_admin_row_[?php echo $odd ?]">
37[?php include_partial('list_td_batch_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
38[?php include_partial('list_td_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
39[?php include_partial('list_td_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
40</tr>
41[?php endforeach; ?]
42</tbody>
43</table>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_actions.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_actions.php
deleted file mode 100644
index a13263c..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_actions.php
+++ /dev/null
@@ -1,10 +0,0 @@
1<ul class="sf_admin_actions">
2<?php $listActions = $this->getParameterValue('list.actions') ?>
3<?php if (null !== $listActions): ?>
4 <?php foreach ((array) $listActions as $actionName => $params): ?>
5 <?php echo $this->addCredentialCondition($this->getButtonToAction($actionName, $params, false), $params) ?>
6 <?php endforeach; ?>
7<?php else: ?>
8 <?php echo $this->getButtonToAction('_create', array(), false) ?>
9<?php endif; ?>
10</ul>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_batch_actions.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_batch_actions.php
deleted file mode 100644
index f586d11..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_batch_actions.php
+++ /dev/null
@@ -1,13 +0,0 @@
1<?php $listActions = $this->getParameterValue('list.batch_actions') ?>
2<?php if (!is_null($listActions)): ?>
3<div id="sf_admin_batch_action_choice">
4 <select name="sf_admin_batch_action">
5 <option value="">[?php echo __('Choose an action') ?]</option>
6 <?php foreach ((array) $listActions as $actionName => $params): ?>
7 <?php echo $this->addCredentialCondition($this->getOptionToAction($actionName, $params), $params) ?>
8 <?php endforeach; ?>
9 </select>
10 [?php echo submit_tag(__('Ok')) ?]
11 </form>
12</div>
13<?php endif; ?>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_footer.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_footer.php
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_footer.php
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_header.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_header.php
deleted file mode 100644
index e69de29..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_header.php
+++ /dev/null
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_messages.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_messages.php
deleted file mode 100644
index 46ce92f..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_messages.php
+++ /dev/null
@@ -1,12 +0,0 @@
1[?php if ($sf_request->hasError('delete')): ?]
2<div class="form-errors">
3 <h2>[?php echo __('Could not delete the selected %name%', array('%name%' => '<?php echo sfInflector::humanize($this->getSingularName()) ?>')) ?]</h2>
4 <ul>
5 <li>[?php echo __($sf_request->getError('delete')) ?]</li>
6 </ul>
7</div>
8[?php elseif ($sf_user->hasFlash('notice')): ?]
9<div class="save-ok">
10 <h2>[?php echo __($sf_user->getFlash('notice')) ?]</h2>
11</div>
12[?php endif; ?]
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_actions.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_actions.php
deleted file mode 100644
index fa96473..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_actions.php
+++ /dev/null
@@ -1,9 +0,0 @@
1<?php if ($this->getParameterValue('list.object_actions')): ?>
2<td>
3<ul class="sf_admin_td_actions">
4<?php foreach ($this->getParameterValue('list.object_actions') as $actionName => $params): ?>
5 <?php echo $this->addCredentialCondition($this->getLinkToAction($actionName, $params, true), $params) ?>
6<?php endforeach; ?>
7</ul>
8</td>
9<?php endif; ?>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_batch_actions.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_batch_actions.php
deleted file mode 100644
index 7ca62e0..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_batch_actions.php
+++ /dev/null
@@ -1,5 +0,0 @@
1<?php if ($this->getParameterValue('list.batch_actions')): ?>
2<td>
3[?php echo checkbox_tag('sf_admin_batch_selection[]', $<?php echo $this->getSingularName() ?>->getPrimaryKey(), 0, array('class' => 'sf_admin_batch_checkbox')) ?]
4</td>
5<?php endif; ?>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_stacked.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_stacked.php
deleted file mode 100644
index 0d9e274..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_stacked.php
+++ /dev/null
@@ -1,16 +0,0 @@
1<td colspan="<?php echo count($this->getColumns('list.display')) ?>">
2<?php if ($this->getParameterValue('list.params')): ?>
3 <?php echo $this->getI18NString('list.params') ?>
4<?php else: ?>
5<?php $hides = $this->getParameterValue('list.hide', array()) ?>
6<?php foreach ($this->getColumns('list.display') as $column): ?>
7<?php if (in_array($column->getName(), $hides)) continue ?>
8 <?php if ($column->isLink()): ?>
9 [?php echo link_to(<?php echo $this->getColumnListTag($column) ?> ? <?php echo $this->getColumnListTag($column) ?> : __('-'), '<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]
10 <?php else: ?>
11 [?php echo <?php echo $this->getColumnListTag($column) ?> ?]
12 <?php endif; ?>
13 -
14<?php endforeach; ?>
15<?php endif; ?>
16</td> \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_tabular.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_tabular.php
deleted file mode 100644
index 19f482b..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_td_tabular.php
+++ /dev/null
@@ -1,16 +0,0 @@
1<?php $hs = $this->getParameterValue('list.hide', array()) ?>
2<?php foreach ($this->getColumns('list.display') as $column): ?>
3<?php if (in_array($column->getName(), $hs)) continue ?>
4<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
5<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
6 [?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
7<?php endif; ?>
8 <?php if ($column->isLink()): ?>
9 <td>[?php echo link_to(<?php echo $this->getColumnListTag($column) ?> ? <?php echo $this->getColumnListTag($column) ?> : __('-'), '<?php echo $this->getModuleName() ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]</td>
10<?php else: ?>
11 <td>[?php echo <?php echo $this->getColumnListTag($column) ?> ?]</td>
12 <?php endif; ?>
13<?php if ($credentials): ?>
14 [?php endif; ?]
15<?php endif; ?>
16<?php endforeach; ?>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_stacked.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_stacked.php
deleted file mode 100644
index 305bdcf..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_stacked.php
+++ /dev/null
@@ -1 +0,0 @@
1[?php include_partial('list_th_tabular') ?]
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_tabular.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_tabular.php
deleted file mode 100644
index 9e9d4b8..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/_list_th_tabular.php
+++ /dev/null
@@ -1,24 +0,0 @@
1<?php $hides = $this->getParameterValue('list.hide', array()) ?>
2<?php foreach ($this->getColumns('list.display') as $column): ?>
3<?php if (in_array($column->getName(), $hides)) continue ?>
4<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
5<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
6 [?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
7<?php endif; ?>
8 <th id="sf_admin_list_th_<?php echo $column->getName() ?>">
9 <?php if ($column->isReal()): ?>
10 [?php if ($sf_user->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == '<?php echo $column->getName() ?>'): ?]
11 [?php echo link_to(__('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>'), '<?php echo $this->getModuleName() ?>/list?sort=<?php echo $column->getName() ?>&type='.($sf_user->getAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc' ? 'desc' : 'asc')) ?]
12 ([?php echo __($sf_user->getAttribute('type', 'asc', 'sf_admin/<?php echo $this->getSingularName() ?>/sort')) ?])
13 [?php else: ?]
14 [?php echo link_to(__('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>'), '<?php echo $this->getModuleName() ?>/list?sort=<?php echo $column->getName() ?>&type=asc') ?]
15 [?php endif; ?]
16 <?php else: ?>
17 [?php echo __('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>') ?]
18 <?php endif; ?>
19 <?php echo $this->getHelpAsIcon($column, 'list') ?>
20 </th>
21<?php if ($credentials): ?>
22 [?php endif; ?]
23<?php endif; ?>
24<?php endforeach; ?>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/editSuccess.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/editSuccess.php
deleted file mode 100644
index de2348e..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/editSuccess.php
+++ /dev/null
@@ -1,22 +0,0 @@
1[?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?]
2
3[?php use_stylesheet('<?php echo $this->getParameterValue('css', sfConfig::get('sf_admin_web_dir').'/css/main') ?>') ?]
4
5<div id="sf_admin_container">
6
7<h1><?php echo $this->getI18NString('edit.title', 'edit '.$this->getModuleName()) ?></h1>
8
9<div id="sf_admin_header">
10[?php include_partial('<?php echo $this->getModuleName() ?>/edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
11</div>
12
13<div id="sf_admin_content">
14[?php include_partial('<?php echo $this->getModuleName() ?>/edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?]
15[?php include_partial('<?php echo $this->getModuleName() ?>/edit_form', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?]
16</div>
17
18<div id="sf_admin_footer">
19[?php include_partial('<?php echo $this->getModuleName() ?>/edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
20</div>
21
22</div>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/listSuccess.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/listSuccess.php
deleted file mode 100644
index fac86f5..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default/template/templates/listSuccess.php
+++ /dev/null
@@ -1,34 +0,0 @@
1[?php use_helper('I18N', 'Date') ?]
2
3[?php use_stylesheet('<?php echo $this->getParameterValue('css', sfConfig::get('sf_admin_web_dir').'/css/main') ?>') ?]
4
5<div id="sf_admin_container">
6
7<h1><?php echo $this->getI18NString('list.title', $this->getModuleName().' list') ?></h1>
8
9<div id="sf_admin_header">
10[?php include_partial('<?php echo $this->getModuleName() ?>/list_header', array('pager' => $pager)) ?]
11[?php include_partial('<?php echo $this->getModuleName() ?>/list_messages', array('pager' => $pager)) ?]
12</div>
13
14<div id="sf_admin_bar">
15<?php if ($this->getParameterValue('list.filters')): ?>
16[?php include_partial('filters', array('filters' => $filters)) ?]
17<?php endif; ?>
18</div>
19
20<div id="sf_admin_content">
21[?php if (!$pager->getNbResults()): ?]
22[?php echo __('no result') ?]
23[?php else: ?]
24[?php include_partial('<?php echo $this->getModuleName() ?>/list', array('pager' => $pager)) ?]
25[?php endif; ?]
26[?php include_partial('list_batch_actions') ?]
27[?php include_partial('list_actions') ?]
28</div>
29
30<div id="sf_admin_footer">
31[?php include_partial('<?php echo $this->getModuleName() ?>/list_footer', array('pager' => $pager)) ?]
32</div>
33
34</div>
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormBaseTemplate.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormBaseTemplate.php
deleted file mode 100644
index 7be8ba7..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormBaseTemplate.php
+++ /dev/null
@@ -1,14 +0,0 @@
1[?php
2
3/**
4 * Project form base class.
5 *
6 * @package form
7 * @version SVN: $Id: sfDoctrineFormBaseTemplate.php 6174 2007-11-27 06:22:40Z fabien $
8 */
9abstract class BaseFormDoctrine extends sfFormDoctrine
10{
11 public function setup()
12 {
13 }
14} \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php
deleted file mode 100644
index f6b9dd9..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php
+++ /dev/null
@@ -1,114 +0,0 @@
1[?php
2
3/**
4 * <?php echo $this->modelName ?> form base class.
5 *
6 * @package form
7 * @subpackage <?php echo $this->underscore($this->modelName) ?>
8
9 * @version SVN: $Id: sfDoctrineFormGeneratedTemplate.php 8508 2008-04-17 17:39:15Z fabien $
10 */
11class Base<?php echo $this->modelName ?>Form extends BaseFormDoctrine
12{
13 public function setup()
14 {
15 $this->setWidgets(array(
16<?php foreach ($this->table->getColumns() as $name => $column): ?>
17 '<?php echo strtolower($name) ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($name)) ?> => new <?php echo $this->getWidgetClassForColumn($name) ?>(<?php echo $this->getWidgetOptionsForColumn($name) ?>),
18<?php endforeach; ?>
19<?php foreach ($this->getManyToManyRelations() as $relation): ?>
20 '<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($this->underscore($relation['refTable']->getOption('name')).'_list')) ?> => new sfWidgetFormDoctrineSelectMany(array('model' => '<?php echo $relation['table']->getOption('name') ?>')),
21<?php endforeach; ?>
22 ));
23
24 $this->setValidators(array(
25<?php foreach ($this->table->getColumns() as $name => $column): ?>
26 '<?php echo strtolower($name) ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($name)) ?> => new <?php echo $this->getValidatorClassForColumn($name) ?>(<?php echo $this->getValidatorOptionsForColumn($name) ?>),
27<?php endforeach; ?>
28<?php foreach ($this->getManyToManyRelations() as $relation): ?>
29 '<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($this->underscore($relation['refTable']->getOption('name')).'_list')) ?> => new sfValidatorDoctrineChoiceMany(array('model' => '<?php echo $relation['table']->getOption('name') ?>', 'required' => false)),
30<?php endforeach; ?>
31 ));
32
33 $this->widgetSchema->setNameFormat('<?php echo $this->underscore($this->modelName) ?>[%s]');
34
35 $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
36
37 parent::setup();
38 }
39
40 public function getModelName()
41 {
42 return '<?php echo $this->modelName ?>';
43 }
44
45<?php if ($this->getManyToManyRelations()): ?>
46 public function updateDefaultsFromObject()
47 {
48 parent::updateDefaultsFromObject();
49
50<?php foreach ($this->getManyToManyRelations() as $relation): ?>
51 if (isset($this->widgetSchema['<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list']))
52 {
53 $values = array();
54 foreach ($this->object-><?php echo $relation['alias']; ?> as $obj)
55 {
56 $values[] = current($obj->identifier());
57 }
58
59 $this->setDefault('<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list', $values);
60 }
61
62<?php endforeach; ?>
63 }
64
65 protected function doSave($con = null)
66 {
67 parent::doSave($con);
68
69<?php foreach ($this->getManyToManyRelations() as $relation): ?>
70 $this->save<?php echo $relation['refTable']->getOption('name') ?>List($con);
71<?php endforeach; ?>
72 }
73
74<?php foreach ($this->getManyToManyRelations() as $relation): ?>
75 public function save<?php echo $relation['refTable']->getOption('name') ?>List($con = null)
76 {
77 if (!$this->isValid())
78 {
79 throw $this->getErrorSchema();
80 }
81
82 if (!isset($this->widgetSchema['<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list']))
83 {
84 // somebody has unset this widget
85 return;
86 }
87
88 if (is_null($con))
89 {
90 $con = $this->getConnection();
91 }
92
93 $q = Doctrine_Query::create()
94 ->delete()
95 ->from('<?php echo $relation['refTable']->getOption('name') ?> r')
96 ->where('r.<?php echo $relation->getLocalFieldName() ?> = ?', current($this->object->identifier()))
97 ->execute();
98
99 $values = $this->getValue('<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list');
100 if (is_array($values))
101 {
102 foreach ($values as $value)
103 {
104 $obj = new <?php echo $relation['refTable']->getOption('name') ?>();
105 $obj-><?php echo $relation->getLocalFieldName() ?> = current($this->object->identifier());
106 $obj-><?php echo $relation->getForeignFieldName() ?> = $value;
107 $obj->save();
108 }
109 }
110 }
111
112<?php endforeach; ?>
113<?php endif; ?>
114} \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormTemplate.php b/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormTemplate.php
deleted file mode 100644
index 6720f9b..0000000
--- a/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormTemplate.php
+++ /dev/null
@@ -1,16 +0,0 @@
1[?php
2
3/**
4 * <?php echo $this->table->getOption('name') ?> form.
5 *
6 * @package form
7 * @subpackage <?php echo $this->table->getOption('name') ?>
8
9 * @version SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
10 */
11class <?php echo $this->table->getOption('name') ?>Form extends Base<?php echo $this->table->getOption('name') ?>Form
12{
13 public function configure()
14 {
15 }
16} \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/lib/database/sfDoctrineDataRetriever.class.php b/plugins/sfDoctrinePlugin/lib/database/sfDoctrineDataRetriever.class.php
deleted file mode 100644
index c04998b..0000000
--- a/plugins/sfDoctrinePlugin/lib/database/sfDoctrineDataRetriever.class.php
+++ /dev/null
@@ -1,28 +0,0 @@
1<?php
2/*
3 * This file is part of the sfDoctrinePlugin package.
4 * (c) 2006-2007 Jonathan H. Wage <jonwage@gmail.com>
5 *
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
8 */
9
10/**
11 * @package sfDoctrinePlugin
12 * @author Jonathan H. Wage <jonwage@gmail.com>
13 * @version SVN: $Id: sfDoctrineDataRetriever.class.php 8743 2008-05-03 05:02:39Z Jonathan.Wage $
14 */
15class sfDoctrineDataRetriever
16{
17 static public function retrieveObjects($class, $peer_method = 'findAll')
18 {
19 if (!$peer_method)
20 {
21 $peer_method = 'findAll';
22 }
23
24 $table = Doctrine::getTable($class);
25
26 return call_user_func(array($table, $peer_method));
27 }
28} \ No newline at end of file
diff --git a/plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php b/plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php
deleted file mode 100644
index a1b766b..0000000
--- a/plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php
+++ /dev/null
@@ -1,215 +0,0 @@
1<?php
2/*
3 * This file is part of the sfDoctrinePlugin package.
4 * (c) 2006-2007 Jonathan H. Wage <jonwage@gmail.com>
5 *
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
8 */
9
10/**
11 * sfDoctrineDatabase
12 *
13 * Provides connectivity for the Doctrine.
14 *
15 * @package sfDoctrinePlugin
16 * @author Jonathan H. Wage <jonwage@gmail.com>
17 * @version SVN: $Id: sfDoctrineDatabase.class.php 8939 2008-05-14 01:54:14Z Jonathan.Wage $
18 */
19class sfDoctrineDatabase extends sfDatabase
20{
21 /**
22 * @var object Doctrine_Connection
23 */
24 protected $doctrineConnection = null;
25
26 /**
27 * initialize
28 *
29 * @param array $parameters
30 * @return void
31 */
32 public function initialize($parameters = array())
33 {
34 if (!$parameters)
35 {
36 return;
37 }
38
39 parent::initialize($parameters);
40
41 // Load default database connection to load if specified
42 if ($defaultDatabase = sfConfig::get('sf_default_database'))
43 {
44 if ($parameters['name'] != $defaultDatabase)
45 {
46 return;
47 }
48 }
49
50 // Load the doctrine configuration
51 require(sfProjectConfiguration::getActive()->getConfigCache()->checkConfig('config/doctrine.yml'));
52
53 // Load config in to parameter
54 $this->setParameter('config', $config);
55
56 // Load schemas information for connection binding
57 if ($schemas = sfProjectConfiguration::getActive()->getConfigCache()->checkConfig('config/schemas.yml', true))
58 {
59 require_once($schemas);
60 }
61
62 $this->loadConnections();
63
64 $this->loadAttributes($parameters['name']);
65 $this->loadListeners();
66 }
67
68 /**
69 * loadConnections
70 *
71 * Create and load the Doctrine connections
72 *
73 * @return void
74 * @author Jonathan H. Wage
75 */
76 protected function loadConnections()
77 {
78 // Get Connection method
79 $method = $this->getParameter('method', 'dsn');
80
81 // get parameters
82 switch ($method)
83 {
84 case 'dsn':
85 $dsn = $this->getParameter('dsn');
86
87 if ($dsn == null)
88 {
89 // missing required dsn parameter
90 $error = 'Database configuration specifies method "dsn", but is missing dsn parameter';
91
92 throw new sfDatabaseException($error);
93 }
94
95 break;
96 }
97
98 // Make sure we pass non-PEAR style DSNs as an array
99 if ( !strpos($dsn, '://'))
100 {
101 $dsn = array($dsn, $this->getParameter('username'), $this->getParameter('password'));
102 }
103
104 // Make the Doctrine connection for $dsn and $name
105 $this->doctrineConnection = Doctrine_Manager::connection($dsn, $this->getParameter('name'));
106 }
107
108 /**
109 * Loads and sets all the Doctrine attributes that we loaded from doctrine.yml
110 *
111 * @return void
112 */
113 protected function loadAttributes($name)
114 {
115 $config = $this->getParameter('config');
116
117 $attributes = $config['global_attributes'];
118
119 $this->setAttributes($attributes, true);
120
121 $connectionAttributesName = $name.'_attributes';
122 if (isset($config[$connectionAttributesName]))
123 {
124 $attributes = $config[$connectionA