Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

mark deprecated functions before removing

  • bismark
  • bismark's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 4 months ago #178627 by bismark
it would be nice to mark a deprecated function before removing it.

a sample:

there was a a function called getQuestionTypeList in common_helper.
We use it in a plugin and in 4.0.0 its gone.

please readd this function, mark as deprecated and use the new implementation there.
The topic has been locked.
  • bismark
  • bismark's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 4 months ago #178628 by bismark
Replied by bismark on topic mark deprecated functions before removing
ok, in my case I use the following snippet now:
Code:
if (function_exists('getQuestionTypeList')) {
    $qtypes = getQuestionTypeList('','array');
} else {
    $qtypes = QuestionType::modelsAttributes();
}
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #178635 by DenisChenu
Replied by DenisChenu on topic mark deprecated functions before removing
Sometimes it's done , but we need to really remove it … then need date, someone to remove it X month after etc …

And here : API updated , then no warranty.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose