Created
May 10, 2011 13:00
-
-
Save icambridge/964421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public static function getTokenObject(){ | |
if ( !is_a(self::$instance,"Wpsqt_Tokens") ){ | |
self::$instance = new Wpsqt_Tokens(); | |
self::$instance->addToken("USER_NAME", "The name of the user who has taken the quiz or survey.") | |
->addToken("QUIZ_NAME", "The name of the quiz that has been taken, <strong>same as %SURVEY_NAME%</strong>.") | |
->addToken("SURVEY_NAME", "The name of the survey that has been taken, <strong>same as %QUIZ_NAME%</strong>.") | |
->addToken("DATE_EU", "The date the quiz or survey was taken in EU format.") | |
->addToken("DATE_US", "The date the quiz or survey was taken in US format.") | |
->addToken("SCORE", "Score gained in quiz, only works if automarking is enabled.") | |
->addToken("RESULT_URL", "A link to view the results in the dashboard.") | |
->addToken("DATETIME_EU", "The date and time the quiz or survey was taken in EU format.") | |
->addToken("DATETIME_US", "The date and time the quiz or survey was taken in US format.") | |
->addToken("IP_ADDRESS", "The IP address of the user who has taken the quiz or survey.") | |
->addToken("HOSTNAME", "The hostname of the IP address of the user who has taken the quiz or survey.") | |
->addToken("USER_AGENT", "The user agent of the user who has taken the quiz or survey.") | |
->addToken("USER_EMAIL", "The email address of the user who has taken the quiz or survey."); | |
} | |
return apply_filters( 'wpsqt_replacement_tokens', self::$instance ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment