- Posts: 61
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
public function browse($iSurveyId, $limit = 50, $start = 0): void { parent::browse($iSurveyId, $limit, $start); }
if (empty($aActions[$this->getId()]) || strtolower($oMethod->getDeclaringClass()->name) != strtolower($aActions[$this->getId()]) || !$oMethod->isPublic()) { $oMethod = new ReflectionMethod($this, $sDefault); }
public function runWithParams($params) { if (empty($params['sa'])) { $sSubAction = 'index'; } else { $sSubAction = $params['sa']; } $oClass = new ReflectionClass($this); if (!$oClass->hasMethod($sSubAction)) { $sSubAction = 'run'; } $params = $this->_addPseudoParams($params); if (!empty($params['iSurveyId'])) { LimeExpressionManager::SetSurveyId($params['iSurveyId']); } $oMethod = new ReflectionMethod($this, $sSubAction); if (strtolower($oMethod->getDeclaringClass()->name) == 'tokens' && $oMethod->getName() != 'importldap') { return parent::runWithParamsInternal($this, $oMethod, $params); } else { return parent::runWithParams($params); } }