Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
fac07f35
Commit
fac07f35
authored
Mar 09, 2016
by
Vassilis Kanellopoulos
Browse files
fix survey service when no answer; update develop.md file
parent
76b9f1aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
DEVELOP.md
View file @
fac07f35
...
...
@@ -295,6 +295,15 @@ This module provides the services, views and javascript for schools to submit th
- application module
- `
zendframework/zend-inputfilter
`: ^2.0
### tpe_survey
This module overrides staff view of schools module. It allows school user to submit
information about teachers using IT in education.
#### Dependencies
- schools module
## ER diagram

...
...
module/tpe_survey/src/Service/SurveyService.php
View file @
fac07f35
...
...
@@ -18,6 +18,9 @@ class SurveyService implements SurveyServiceInterface
public
function
getAnswers
(
$teacherId
)
{
$bean
=
R
::
findOne
(
'tpesurvey'
,
'teacher_id = ?'
,
[
$teacherId
]);
if
(
null
===
$bean
)
{
return
;
}
$data
=
$bean
->
export
();
$data
[
'assets_in_use'
]
=
explode
(
'|'
,
$data
[
'assets_in_use'
]);
if
(
!
$data
[
'assets_in_use'
])
{
...
...
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