Welcome to the LimeSurvey Community Forum

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

can i change the express in php?

  • kimberhos
  • kimberhos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #120843 by kimberhos
can i change the express in php? was created by kimberhos
Hi community,
I have some questions to ask help.
1.Is that EM server side application or browser side?
2.I searched forum, if I add a new em, only add in Em_core_helper.php,What's the usage of em_javascript.js?
3.What's the function of "2","3" in this?
Code:
'substr' => array('substr', 'substr', gT('Return part of a string'), 'string substr(string, start [, length])', 'http://www.php.net/manual/en/function.substr.php', 2,3),
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 10 months ago #120852 by DenisChenu
Replied by DenisChenu on topic can i change the express in php?
1 : client side (javascript) + server side (PHP)
2 : em_javascript are the javascript function for Expression Manager
3 : 2 and 3 :
Code:
// Each allowed function is a mapping from local name to external name + number of arguments
        // Functions can have a list of serveral allowable #s of arguments.
        // If the value is -1, the function must have a least one argument but can have an unlimited number of them
        // -2 means that at least one argument is required.  -3 means at least two arguments are required, etc.
And loook at RDP_RunFunction, then substr support 2 or 3 arguments

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 following user(s) said Thank You: Ben_V
The topic has been locked.
  • kimberhos
  • kimberhos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #121553 by kimberhos
Replied by kimberhos on topic can i change the express in php?
1.Is that js side or php side?
Not js+php, because the php code is the same as js code
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 10 months ago #121562 by tpartner
Replied by tpartner on topic can i change the express in php?

1.Is that js side or php side?

What Denis means, is that it is both. Expression manager is handled with both server-side PHP and dynamic client-side JavaScript.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose