- Posts: 30
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
public function actionIndex($surveyId) { if (!Permission::model()->hasSurveyPermission($surveyId, 'tokens', 'read')) { throw new CHttpException(403, gT("You do not have permission to access this page.")); } $surveyId = (int) $surveyId; $survey = Survey::model()->findByPk($surveyId); $tkcount = Token::model($surveyId)->count(); $tokensList = Token::model($surveyId)->summary(); $allAttributes = Survey::model()->findByPk($surveyId)->getTokenAttributes(); $tokenAttributes = array_keys($this->getTokensAttributeList($surveyId,'tokens.', true)); if ($survey->hasTokensTable) { $content = "There are ".$tkcount ." Tokens in the database for this survey".$tokenAttributes; } return $content; }
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Of course you can write your own short php script to query the "lime_tokens_[SurveyId]".Can’t I get the tokens of a survey with a short script in a plug-in or with MySQL query e. g. Select?
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.