Пример #1
0
 function install()
 {
     switch ($this->step) {
         case 1:
             if ($this->installFormVarsSet() && $this->connect()) {
                 // Ready to create tables
                 $tc = new TableCreator($this->connector->getConnection());
                 $tablesOk = $tc->createAll();
             } else {
                 // vars not yet set
                 // Don't go to step 2 yet.
             }
             break;
     }
 }