Back to PhocaDownloadFileUpload class

Method renderCreateFolder

public static
renderCreateFolder
(mixed $sessName, mixed $sessId, mixed $currentFolder, mixed $viewBack, mixed $attribs = '')

Method renderCreateFolder - Source code

public static function renderCreateFolder($sessName, $sessId, $currentFolder, $viewBack, $attribs = '')
{
    if ($attribs != '') {
        $attribs = '&' . $attribs;
    }
    $link = Uri::base() . 'index.php?option=com_phocadownload&task=phocadownloadupload.createfolder&' . $sessName . '=' . $sessId . '&' . Session::getFormToken() . '=1&viewback=' . $viewBack . '&' . 'folder=' . PhocaDownloadUtils::filterValue($currentFolder, 'folderpath') . $attribs;
    $link = str_replace('&', '&', $link);
    $folderOutput = '<form action="' . Route::_($link) . '" name="folderForm" id="folderForm" method="post" class="form-inline" >' . "\n" . '<h4>' . Text::_('COM_PHOCADOWNLOAD_FOLDER') . '</h4>' . "\n" . '<div class="path">' . '<input class="form-control" type="text" id="foldername" name="foldername"  />' . '<input class="update-folder" type="hidden" name="folderbase" id="folderbase" value="' . PhocaDownloadUtils::filterValue($currentFolder, 'folderpath') . '" />' . ' <button type="submit" class="btn btn-primary">' . Text::_('COM_PHOCADOWNLOAD_CREATE_FOLDER') . '</button>' . '</div>' . "\n" . HTMLHelper::_('form.token') . '</form>';
    return $folderOutput;
}