View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09743Feature requestsPluginspublic2016-01-08 18:18
ReporterRaghnarok Assigned To 
PrioritynormalSeverity@50@ 
Status newResolutionopen 
Summary09743: Limesurvey API getSurvey
Description

There is no getSurvey function in the LimesurveyApi, you should only add something like:

public function getSurvey($surveyId){
return \Survey::model()->findByPk($surveyId);
}

TagsNo tags attached.
Bug heat6
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2015-07-02 13:10

administrator   ~32598

What about https://manual.limesurvey.org/RemoteControl_2_API#get_survey_properties ?

Raghnarok

Raghnarok

2015-07-02 13:12

reporter   ~32599

I'm not using the RPC, this is for a plugin and I don't want to be that slow. There is a lot of functions in LimesurveyApi.php, but not this one, which should be simply added IMO.

c_schmitz

c_schmitz

2015-07-02 13:24

administrator   ~32600

You could add it and submit a PR, of course ;)

Raghnarok

Raghnarok

2015-07-02 13:25

reporter   ~32601

I added it on my side ;)
What's a PR?

c_schmitz

c_schmitz

2015-07-02 13:49

administrator   ~32602

Pull Request on Github - see also
https://manual.limesurvey.org/Coding_guidelines
https://manual.limesurvey.org/Standard_for_Git_commit_messages
and
https://manual.limesurvey.org/How_to_document_your_source_code

DenisChenu

DenisChenu

2016-01-08 18:18

developer   ~34254

Hi,

For a plugin : why not directly use Yii model ?

Survey::model()->findByPk($surveyId);

I use Yii render, Yii model etc ... in my plugins .

Issue History

Date Modified Username Field Change
2015-07-02 13:04 Raghnarok New Issue
2015-07-02 13:08 c_schmitz Project Bug reports => Feature requests
2015-07-02 13:10 c_schmitz Note Added: 32598
2015-07-02 13:12 Raghnarok Note Added: 32599
2015-07-02 13:24 c_schmitz Note Added: 32600
2015-07-02 13:25 Raghnarok Note Added: 32601
2015-07-02 13:49 c_schmitz Note Added: 32602
2016-01-08 18:18 DenisChenu Note Added: 34254