function uploadString($index, $filename, $string) { $targetDir = $this->getTargetDir($index); WebDAV::upload_from_string($string, "{$targetDir}/{$filename}"); }