Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class tx_tournppc_pi1 extends tslib_pibase {
- var $prefixId = 'tx_tournppc_pi1'; // Same as class name
- var $scriptRelPath = 'pi1/class.tx_tournppc_pi1.php'; // Path to this script relative to the extension dir.
- var $extKey = 'tournppc'; // The extension key.
- /**
- * The main method of the PlugIn
- *
- * @param string $content: The PlugIn content
- * @param array $conf: The PlugIn configuration
- * @return The content that is displayed on the website
- */
- function main($content, $conf) {
- $this->conf = $conf;
- $this->pi_setPiVarDefaults();
- $this->pi_loadLL();
- $this->pi_USER_INT_obj = 1; // Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!
- $content = 'Hello World!';
- /*$content = $this->printForm();
- switch($_POST['action']){
- case 'registered':
- $content .= $this->validateForm($_POST);
- break;
- }*/
- return $this->pi_wrapInBaseClass($content);
- }
Add Comment
Please, Sign In to add comment