Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gredu_labs
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
gredu_labs
Commits
342c4a17
Commit
342c4a17
authored
Apr 04, 2016
by
Vassilis Kanellopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
csv export by type
parent
0e1470b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
19 deletions
+10
-19
module/csv_export/bootstrap.php
module/csv_export/bootstrap.php
+10
-0
module/export/bootstrap.php
module/export/bootstrap.php
+0
-19
No files found.
module/csv_export/bootstrap.php
View file @
342c4a17
...
...
@@ -337,6 +337,16 @@ return function (App $app) {
return
$res
->
withRedirect
(
$router
->
pathFor
(
'index'
));
}
$config
=
$c
[
'csv_export_config'
];
if
(
!
array_key_exists
(
$type
,
$config
))
{
return
$res
->
withStatus
(
404
);
}
$typeConfig
=
$config
[
$type
];
$csvResponse
=
$c
[
'csv_export_csv_response'
];
return
$csvResponse
(
$res
,
$c
[
$typeConfig
[
'data_callback'
]],
$typeConfig
[
'headers'
],
'edulabs_'
.
$type
.
'.csv'
);
})
->
setName
(
'export.csv'
);
});
};
module/export/bootstrap.php
deleted
100644 → 0
View file @
0e1470b0
<?php
/**
* gredu_labs.
*
* @link https://github.com/eellak/gredu_labs for the canonical source repository
*
* @copyright Copyright (c) 2008-2015 Greek Free/Open Source Software Society (https://gfoss.ellak.gr/)
* @license GNU GPLv3 http://www.gnu.org/licenses/gpl-3.0-standalone.html
*/
return
function
(
Slim\App
$app
)
{
$container
=
$app
->
getContainer
();
$events
=
$container
[
'events'
];
$events
(
'on'
,
'app.bootstrap'
,
function
(
Slim\App
$app
,
Slim\Container
$c
)
{
});
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment