Limesurvey v3.25 does not supported PHP paging for LDAP.
The "ldap_doTokenSearch ()" function from ldap_helper.php is actually responsible for the import. Overwriting the function would not be a good idea in this case.
So I decided to create the admin\tokensext.php class that extends the tokens.php class and override the importldap() method.
I set it to import my helper from importldap() method:
Yii::app()->loadHelper('ldappaging');
Then in AdminController for the getActionClasses() method I changed the entry "'tokens' => 'tokensext',"
I would have to overwrite them to make them work as well. So in the tokensext class with a reference to the parent method. Example:
Code:
public function browse($iSurveyId, $limit = 50, $start = 0): void
{
parent::browse($iSurveyId, $limit, $start);
}
I don't want to do it that way. Normally a class extension should work. And the actions should be directed to the parent's methods. But in this case, they don't work or return any error.
What did I do wrong? or possibly how should I have done it correctly?