public static function newDocumentLink($path = '/', $documentType = '')
    {
        if (self::isLoggedIn()) {
            $path = 0 === strpos($path, '/') ? $path : '/' . $path;
            $linkPostFix = '';
            if ($documentType !== '') {
                $linkPostFix = '&amp;documentType=' . $documentType;
            }
            return Request::$subfolders . 'cms/documents/new-document?path=' . urlencode($path) . $linkPostFix;
        } else {
            return '';
        }
    }
public static function newDocumentLink($path = '/', $documentType = '')
    {
        if (self::isLoggedIn()) {
            $path = 0 === strpos($path, '/') ? $path : '/' . $path;
            $linkPostFix = '';
            if ($documentType !== '') {
                $linkPostFix = '&amp;documentType=' . $documentType;
            }
            return Request::$subfolders . 'cms/documents/new-document?path=' . urlencode($path) . $linkPostFix;
        } else {
            return '';
        }
    }
public static function newDocumentLink ( $ path = '/' , $ documentType = '' ) { if ( self :: isLoggedIn ( ) ) { $ path = 0 === strpos ( $ path , '/' ) ? $ path : '/' . $ path ; $ linkPostFix = '' ; if ( $ documentType !== '' ) { $ linkPostFix = '&amp;documentType=' . $ documentType ; } return Request :: $ subfolders . 'cms/documents/new-document?path=' . urlencode ( $ path ) . $ linkPostFix ; } else { return '' ; } }
Returns the cms link for creating a new document
@param string $path
@param string $documentType
@return string
@throws \Exception
Returns the cms link for creating a new document