supertenant/src/SuperTenantShortcuts.php

Functions

SuperTenant_Shortcuts_GetMainTenant()

SuperTenant_Shortcuts_GetMainTenant() 

SuperTenant_Shortcuts_NormalizeItemPerPage()

SuperTenant_Shortcuts_NormalizeItemPerPage(  $request) 

Parameters

$request

SuperTenant_Shortcuts_GetTenantFeildProperties()

SuperTenant_Shortcuts_GetTenantFeildProperties() 

SuperTenant_Shortcuts_CheckTenant()

SuperTenant_Shortcuts_CheckTenant(\Pluf_HTTP_Request  $request, array  $match, \Pluf_Model  $model) : \Pluf_HTTP_Error404|true

Checks if given model is blong to tenant determined in $request or $match

Parameters

\Pluf_HTTP_Request $request
array $match
\Pluf_Model $model

a model with tenant feild

Returns

\Pluf_HTTP_Error404|true —

true if given model is blong to tenant else throw exception