\Pydio\Share\ViewMinisiteRenderer

Class MinisiteRenderer View class to load a share and display it as a minisite

Summary

Methods
Properties
Constants
handleRequest()
renderError()
loadMinisite()
writeHtml()
No public properties found
No constants found
computeTemplateName()
No protected properties found
N/A
triggerDownload()
No private properties found
N/A

Methods

handleRequest()

handleRequest(\Psr\Http\Message\ServerRequestInterface  $requestInterface, \Psr\Http\Message\ResponseInterface  $responseInterface, callable  $next = null) : \Psr\Http\Message\ResponseInterface

Called as a middleware

Parameters

\Psr\Http\Message\ServerRequestInterface $requestInterface
\Psr\Http\Message\ResponseInterface $responseInterface
callable $next

Returns

\Psr\Http\Message\ResponseInterface

renderError()

renderError(  $data, string  $hash = '', null  $error = null) 

Render a simple error instead of the minisite

Parameters

$data
string $hash
null $error

loadMinisite()

loadMinisite(  $data, string  $hash = '', null  $error = null) 

[LEGACY] Load the minisite

Parameters

$data
string $hash
null $error

Throws

\Exception
\Pydio\Core\Exception\LoginException
\Pydio\Core\Exception\WorkspaceNotFoundException

writeHtml()

writeHtml(\Psr\Http\Message\ResponseInterface  $responseInterface, \Pydio\Core\Model\ContextInterface  $context,   $data, string  $hash = '', null  $error = null) : \Psr\Http\Message\ResponseInterface

Parameters

\Psr\Http\Message\ResponseInterface $responseInterface
\Pydio\Core\Model\ContextInterface $context
$data
string $hash
null $error

Throws

\Exception

Returns

\Psr\Http\Message\ResponseInterface

computeTemplateName()

computeTemplateName(array  $data, null|string  $error = null) : string

Parameters

array $data
null|string $error

Returns

string

triggerDownload()

triggerDownload(\Psr\Http\Message\ServerRequestInterface  $requestInterface, \Psr\Http\Message\ResponseInterface  $responseInterface) : \Psr\Http\Message\ResponseInterface

Parameters

\Psr\Http\Message\ServerRequestInterface $requestInterface
\Psr\Http\Message\ResponseInterface $responseInterface

Throws

\Pydio\Core\Exception\PydioException
\Pydio\Core\Exception\ActionNotFoundException
\Pydio\Core\Exception\AuthRequiredException

Returns

\Psr\Http\Message\ResponseInterface