public static function editDocumentLink($path)
    {
        if (self::isLoggedIn()) {
            $path = 0 === strpos($path, '/') ? substr($path, 1) : $path;
            return Request::$subfolders . 'cms/documents/edit-document?slug=' . urlencode($path);
        } else {
            return '';
        }
    }
public static function editDocumentLink($path)
    {
        if (self::isLoggedIn()) {
            $path = 0 === strpos($path, '/') ? substr($path, 1) : $path;
            return Request::$subfolders . 'cms/documents/edit-document?slug=' . urlencode($path);
        } else {
            return '';
        }
    }
public static function editDocumentLink ( $ path ) { if ( self :: isLoggedIn ( ) ) { $ path = 0 === strpos ( $ path , '/' ) ? substr ( $ path , 1 ) : $ path ; return Request :: $ subfolders . 'cms/documents/edit-document?slug=' . urlencode ( $ path ) ; } else { return '' ; } }
Returns the cms link for editing a document
@param $path
@return string
@throws \Exception
Returns the cms link for editing a document