Guest User

Untitled

a guest
May 27th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. class tx_tournppc_pi1 extends tslib_pibase {
  2.     var $prefixId      = 'tx_tournppc_pi1';     // Same as class name
  3.     var $scriptRelPath = 'pi1/class.tx_tournppc_pi1.php';   // Path to this script relative to the extension dir.
  4.     var $extKey        = 'tournppc';    // The extension key.
  5.    
  6.     /**
  7.      * The main method of the PlugIn
  8.      *
  9.      * @param   string      $content: The PlugIn content
  10.      * @param   array       $conf: The PlugIn configuration
  11.      * @return  The content that is displayed on the website
  12.      */
  13.     function main($content, $conf) {
  14.         $this->conf = $conf;
  15.         $this->pi_setPiVarDefaults();
  16.         $this->pi_loadLL();
  17.         $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!
  18.        
  19.         $content = 'Hello World!';
  20.         /*$content = $this->printForm();
  21.         switch($_POST['action']){
  22.             case 'registered':
  23.                 $content .= $this->validateForm($_POST);
  24.             break;
  25.         }*/
  26.         return $this->pi_wrapInBaseClass($content);
  27.     }
Add Comment
Please, Sign In to add comment