Example #1
0
 /**
  * Initialize all variables
  */
 protected final function initVars()
 {
     if ($this->id() == PluginInstaller::ID) {
         return;
     }
     $data = PluginFactory::dataFor($this->id());
     $this->key = $data['key'];
     $this->active = $data['active'];
     $this->order = $data['order'];
     $this->sportid = $this->defaultSport();
     $this->year = $this->defaultYear();
     $this->dat = '';
     if (isset($_GET['sport'])) {
         if (is_numeric($_GET['sport'])) {
             $this->sportid = $_GET['sport'];
         }
     }
     if (isset($_GET['jahr'])) {
         if (is_numeric($_GET['jahr'])) {
             $this->year = $_GET['jahr'];
         }
     }
     if (isset($_GET['dat'])) {
         $this->dat = $_GET['dat'];
     }
 }