private static function makeSureSqlFileExists() { if (self::$sqlFilePath == null) { $folder = __DIR__ . DIRECTORY_SEPARATOR . "sql"; if (!file_exists($folder)) { mkdir($folder); } self::$sqlFilePath = $folder . DIRECTORY_SEPARATOR . basename(__FILE__, ".php") . "_" . self::formTs() . ".sql"; touch(self::$logFilePath); } }