/** * Upgrade steps helper * * @author KnowledgeTree Team * @param none * @access private * @return void */ private function _upgradeHelper($className) { $stepAction = new stepAction($className); // Instantiate a step action $class = $stepAction->createStep(); // Get step class if ($class) { // Check if class Exists if ($class->runUpgrade()) { // Check if step needs to be upgraded $class->setDataFromSession($className); // Set Session Information $class->setPostConfig(); // Set any posted variables $class->upgradeStep(); // Run upgrade step } } else { $util = new UpgradeUtil(); $util->error("Class File Missing in Step Directory: {$className}"); exit; } }