getConfig("app_path"); if (!$path) { // try to get it from calling file $file = next(debug_backtrace())['file']; $path = substr($file, 0, strrpos($file, "/")); $path = substr($file, 0, strrpos($path, "/")); } // get application specific pathes if ($appl == "DEFAULT") $propel_path = Config::getInstance()->requireConfig("PropelClassPath"); else $propel_path = Config::getInstance()->requireConfig("$appl::PropelClassPath"); $this->application = $appl; // init propel // @TODO: Ein mehrfaches Propel::init überschreibt offene TAs Propel::init("$path/$propel_path/conf/propel-conf.php"); $include_pathes = get_include_path(); // Add the generated 'classes' directory to the include path set_include_path("$path/$propel_path/classes" . PATH_SEPARATOR . get_include_path()); $include_pathes = get_include_path(); $this->connection = Propel::getConnection(); } // instance stuff private $connection; function getConnection() { return $this->connection; } function startTA(){ $this->connection->beginTransaction(); self::$currentApplication = $this->application; } function commitTA(){ $this->connection->commit(); } function rollbackTA(){ $this->connection->rollBack(); } } //Transaction::$ta_arr = array();