TranslationsExtractor extends ControllerAbstract
Table of Contents
- $action : string
- $ancestors : array<string|int, mixed>
- $area : string
- $cookie : VanillaCookieExtended
- $CRUDLConfig : mixed
- $currentNavigationVoice : array<string|int, mixed>
- $currentSubjectRoot : mixed
- $DIContainer : ContainerInterface
- $labels : object
- $language : object
- $languages : object
- $model : mixed
- $navigations : array<string|int, mixed>
- $needsAuthentication : bool
- $request : ServerRequestInterface
- $response : ResponseInterface
- $routeParameters : object
- $subject : string
- $subjectConfig : mixed
- $subjectCookie : mixed
- $template : Environment
- $templateParameters : array<string|int, mixed>
- __construct() : mixed
- Constructor
- __invoke() : ResponseInterface
- Get invoked by request handler
- clone() : int
- Clones record
- extractTranslations() : mixed
- getCRUDLConfig() : mixed
- Gests CRUDL config
- getNavigations() : mixed
- Gets navigations
- loadSubjectNavigation() : mixed
- Loads subject navigation which is *always* needed for ERP
- replaceListCustomConditions() : mixed
- Replaces current where custom conditions, any type of information to be processed by the buildListWhereCustomConditions method
- replaceListFilter() : mixed
- Replaces current filter
- replaceListSort() : mixed
- Replaces current sorting
- uploadCore() : mixed
- Uploads a file
- addTemplateFilter() : mixed
- Adds a template filter
- addTemplateFunction() : mixed
- Adds a template function
- buildFilterWhere() : array<string|int, mixed>
- Builds where conditions on CRUDL filter fields given a search string to be tokenized
- buildListWhere() : array<string|int, mixed>
- Builds list query where based on modifiers
- buildListWhereCustomConditions() : mixed
- Processes any custom conditions saved into subject cookie and builds the relative list query where to be overridden by children classes
- buildRouteToActionFromRoot() : string
- Builds the route to an action from current route subject root
- buildTemplateHelpersBack() : mixed
- Build common template helpers going up the inheritance chain, used to generate templates cache during translations extraction
- checkAtLeastOnePermission() : bool
- Checks whether current user has at least one permission among one set
- checkPermission() : bool
- Checks whether current user has a certain permission
- checkRouteParameters() : mixed
- Checks mandatory route parameters
- cloneBulk() : mixed
- Bulk cloning
- delete() : mixed
- Deletes record
- deleteBulk() : mixed
- Bulk deletion
- deleteForm() : mixed
- Delete form
- doAfterRecordSave() : object
- Performs action after record save to be overridden by children classes if necessary
- doBeforeActionExecution() : mixed
- Performs some operations before action execution
- extractPrimaryKeyValueFromInput() : mixed
- Purges input array from primary key value and returns it this method is void by defaulkt, it must be overridden by derived class if necessary
- fitImage() : mixed
- Resizes an image proprtionally to fit into a box of given width and height without stretching far original sizes
- getAncestorPrimaryKeyFromRoute() : mixed
- Loads CRUDL config which is mandatory for ERP and contains informations for the CRUDL interface to be exposed
- getAreaCookie() : object
- Gets current area cookie as an object
- getAuthenticatedUserData() : mixed
- Return authenticated user data (if any)
- getList() : mixed
- Gets the recordset for the list
- getModelRecordFromRoute() : mixed
- Gets model record to operate on by route primary key value
- getSaveFieldsData() : object
- Gets save form input
- getSaveFormData() : mixed
- Gets any data necessary to the save form to be overridden if necessary by derived classes
- getSubjectCookie() : object
- Gets user options stored into cookie
- handleActionExecution() : mixed
- Handles action execution
- initTraits() : mixed
- Inits used traits searching for magic method __initTrait[trait-name]
- insert() : mixed
- Inserts record
- insertForm() : mixed
- Insert form
- isAuthenticated() : bool
- Checks if user is currently authenticated
- isNavigationRouteCurrentRoute() : mixed
- Checks whether a given navigation route corresponds to the current route
- list() : mixed
- Lists records
- loadAreaNavigation() : mixed
- Loads area navigation
- loadCRUDLConfig() : mixed
- Loads CRUDL config which is mandatory for ERP and contains informations for the CRUDL interface to be exposed
- loadLanguages() : mixed
- Loads configured language
- loadModel() : mixed
- Loads model at runtime
- loadNavigation() : mixed
- Loads area navigation from a file
- loadNavigationLevel() : mixed
- Loads a navigation level
- loadSubjectConfig() : mixed
- Loads subject config which is not (yet) mandatory for ERP TODO should hold actions informations currently stored into navigation configuration
- moveRecord() : mixed
- Moves record up/down
- moveRecordDown() : mixed
- Moves record down
- moveRecordUp() : mixed
- Moves record up
- output() : mixed
- Outputs
- parseRecordActionRoute() : mixed
- Parses a route which refers to a record
- processPresetInputs() : mixed
- Processes input for rpeset operation (like bulk ones)
- processRecordsetForInput() : array<string|int, mixed>
- Processes a recordset to be used in a radio, checkbox or select mapping fields to value and label
- processSaveFormInput() : mixed
- Processes save form input to manipulate fields data before saving this method is void by default, it must be overridden by derived class if necessary It operates over input by reference and can return any type of extra data that will be inserted into the result of getSaveFieldsData
- redirect() : mixed
- Redirects to a route
- renderTemplate() : mixed
- Renders template and injects HTML code into response
- renderTemplateCode() : string
- Renders template and injects HTML code into response
- resetSubjectAlerts() : mixed
- Resests categorized alerts into subject cookie
- resizeAndCropImage() : mixed
- Resizes (proprtionally to fit into a box of given width and ratio) and crops an image
- resizeImage() : mixed
- Resizes an image proprtionally to fit into a box of given width and height, stretching if necessary
- setAreaCookie() : mixed
- Sets a cookie into current area cookies portion
- setAreaCookieArray() : mixed
- Sets a cookie into current area cookies portion
- setLanguage() : mixed
- Gets & sets language
- setListQueryModifiers() : mixed
- Checks information passed by list view that modifies model query: sorting, filtering and pagination
- setNavigationVoiceParentsActive() : mixed
- Sets recursevely voice parent as active
- setSubjectAlert() : mixed
- Sets a feedback categorized alert into subject cookie
- setSubjectAlertFromException() : mixed
- Sets a feedback categorized alert into subject cookie taking an exception message
- setSubjectCookie() : mixed
- Sets an subject information to be stored into cookie
- setTemplateParameter() : mixed
- pass a parameter to the template angine
- setUploadMaxFilesizeTemplateParameters() : mixed
- Sets template parameters necessary to file upload to be overridden if necessary by derived classes
- storeAncestors() : mixed
- Stores ancestors models searching for a ancestor-namespace\Model class
- storeCurrentSubjectRoot() : mixed
- Stores current route subject root
- storeModel() : mixed
- Stores model searching for a subject-namespace\Model class
- storeRequest() : mixed
- Stores request and related informations
- storeSubject() : mixed
- Stores subject
- stp() : mixed
- short alias for the - much used - setTemplateParameter method
- turnPathToUrl() : string
- Turns a local path from root into an URL prepending current scheme and domain
- update() : mixed
- Updates record
- updateForm() : mixed
- Update form
- upload() : mixed
- Uploads a file posted through the upload field of a form
- verifyAuthentication() : bool
- Checks if authenticaion is needed and is valid
- buildCommonTemplateHelpers() : mixed
- Builds common template helpers NOTE: do not change visibility
- buildPathToContextTemplatesCache() : mixed
- Builds the path to a context template cache
- buildPathToTranslationsCache() : mixed
- Builds the path to the translations cache
- checkActionPermission() : mixed
- Loads subject navigation which is *always* needed for ERP
- generateStartingPotFile() : mixed
- Generate .pot file to start a new translation
- generateTemplatesCache() : mixed
- Generate templates cache for both share and local templates
- generateTemplatesCaches() : mixed
- Generate templates cache for both share and local templates
- generateUpdatedLanguagePoFile() : mixed
- Generate updated .po file for each language update local - cache totale -
- generateUpdatedLanguagePoFileBAK() : mixed
- Generate updated .po file for each language
- generateUpdatedPoFile() : mixed
- Generate updated .po file for each language
- setCommonTemplateParameters() : mixed
- Sets common template parameters
Properties
$action
protected
string
$action
$ancestors
protected
array<string|int, mixed>
$ancestors
= []
$area
protected
string
$area
$cookie
protected
VanillaCookieExtended
$cookie
$CRUDLConfig
protected
mixed
$CRUDLConfig
$currentNavigationVoice
protected
array<string|int, mixed>
$currentNavigationVoice
= []
$currentSubjectRoot
protected
mixed
$currentSubjectRoot
$DIContainer
protected
ContainerInterface
$DIContainer
$labels
protected
object
$labels
$language
protected
object
$language
$languages
protected
object
$languages
= null
$model
protected
mixed
$model
$navigations
protected
array<string|int, mixed>
$navigations
= []
$needsAuthentication
protected
bool
$needsAuthentication
= false
$request
protected
ServerRequestInterface
$request
$response
protected
ResponseInterface
$response
$routeParameters
protected
object
$routeParameters
$subject
protected
string
$subject
$subjectConfig
protected
mixed
$subjectConfig
$subjectCookie
protected
mixed
$subjectCookie
$template
protected
Environment
$template
$templateParameters
protected
array<string|int, mixed>
$templateParameters
= []
Methods
__construct()
Constructor
public
__construct(ContainerInterface $DIContainer, ResponseInterface $response) : mixed
Parameters
- $DIContainer : ContainerInterface
- $response : ResponseInterface
Return values
mixed —__invoke()
Get invoked by request handler
public
__invoke(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterface —clone()
Clones record
public
clone(int $primaryKeyFieldValue[, string $parentPrimaryKeyField = null ][, int $parentPrimaryKeyFieldValue = null ]) : int
Parameters
- $primaryKeyFieldValue : int
- $parentPrimaryKeyField : string = null
- $parentPrimaryKeyFieldValue : int = null
Return values
int —cloned record id
extractTranslations()
public
extractTranslations(string $operation[, string $context = null ]) : mixed
Parameters
- $operation : string
- $context : string = null
Return values
mixed —getCRUDLConfig()
Gests CRUDL config
public
getCRUDLConfig() : mixed
Return values
mixed —getNavigations()
Gets navigations
public
getNavigations() : mixed
Return values
mixed —loadSubjectNavigation()
Loads subject navigation which is *always* needed for ERP
public
loadSubjectNavigation() : mixed
Return values
mixed —replaceListCustomConditions()
Replaces current where custom conditions, any type of information to be processed by the buildListWhereCustomConditions method
public
replaceListCustomConditions(mixed $customConditions) : mixed
Parameters
- $customConditions : mixed
Return values
mixed —replaceListFilter()
Replaces current filter
public
replaceListFilter(string $filter) : mixed
Parameters
- $filter : string
Return values
mixed —replaceListSort()
Replaces current sorting
public
replaceListSort(array<string|int, mixed> $sorting) : mixed
Parameters
- $sorting : array<string|int, mixed>
Return values
mixed —uploadCore()
Uploads a file
public
uploadCore(string $uploadKey, string $fileName, string $fileSourcePath[, bool $isUploadedFile = true ][, bool $outputError = true ]) : mixed
Parameters
- $uploadKey : string
- $fileName : string
- $fileSourcePath : string
- $isUploadedFile : bool = true
- $outputError : bool = true
Return values
mixed —addTemplateFilter()
Adds a template filter
protected
addTemplateFilter(string $name, callable $function[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $name : string
- $function : callable
- $options : array<string|int, mixed> = []
-
twig filter options
Return values
mixed —addTemplateFunction()
Adds a template function
protected
addTemplateFunction(string $name, callable $function[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $name : string
- $function : callable
- $options : array<string|int, mixed> = []
-
twig filter options
Return values
mixed —buildFilterWhere()
Builds where conditions on CRUDL filter fields given a search string to be tokenized
protected
buildFilterWhere(object $CRUDLConfig, string $filterString) : array<string|int, mixed>
Parameters
- $CRUDLConfig : object
-
to use a different CRUD configuration
- $filterString : string
Return values
array<string|int, mixed> —buildListWhere()
Builds list query where based on modifiers
protected
buildListWhere([object $CRUDLConfig = null ][, string $filterString = '' ]) : array<string|int, mixed>
Parameters
- $CRUDLConfig : object = null
-
to use a different CRUD configuration
- $filterString : string = ''
Return values
array<string|int, mixed> —as accepted by Pixie query builder
buildListWhereCustomConditions()
Processes any custom conditions saved into subject cookie and builds the relative list query where to be overridden by children classes
protected
buildListWhereCustomConditions(array<string|int, mixed> &$where) : mixed
Parameters
- $where : array<string|int, mixed>
Return values
mixed —buildRouteToActionFromRoot()
Builds the route to an action from current route subject root
protected
buildRouteToActionFromRoot(string $actionRoutePart[, string $baseRoute = null ]) : string
Parameters
- $actionRoutePart : string
- $baseRoute : string = null
Return values
string —the built route
buildTemplateHelpersBack()
Build common template helpers going up the inheritance chain, used to generate templates cache during translations extraction
protected
buildTemplateHelpersBack() : mixed
Return values
mixed —checkAtLeastOnePermission()
Checks whether current user has at least one permission among one set
protected
checkAtLeastOnePermission(array<string|int, mixed> $permissions) : bool
Parameters
- $permissions : array<string|int, mixed>
Return values
bool —checkPermission()
Checks whether current user has a certain permission
protected
checkPermission(string $permission) : bool
Parameters
- $permission : string
Return values
bool —checkRouteParameters()
Checks mandatory route parameters
protected
checkRouteParameters(array<string|int, mixed> $mandatoryParameters) : mixed
Parameters
- $mandatoryParameters : array<string|int, mixed>
-
array of mandatory parameters to be searched into $this->routeParameters
Return values
mixed —cloneBulk()
Bulk cloning
protected
cloneBulk() : mixed
Return values
mixed —delete()
Deletes record
protected
delete() : mixed
Return values
mixed —deleteBulk()
Bulk deletion
protected
deleteBulk() : mixed
Return values
mixed —deleteForm()
Delete form
protected
deleteForm() : mixed
Return values
mixed —doAfterRecordSave()
Performs action after record save to be overridden by children classes if necessary
protected
doAfterRecordSave(mixed $primaryKeyValue, object $fieldsData) : object
Parameters
- $primaryKeyValue : mixed
- $fieldsData : object
-
as returnd by getSaveFieldsData method
Return values
object —->redirectRoute to override default redirectRoute ->messageCode to override default message code
doBeforeActionExecution()
Performs some operations before action execution
protected
doBeforeActionExecution(ServerRequestInterface $request) : mixed
Parameters
- $request : ServerRequestInterface
Return values
mixed —extractPrimaryKeyValueFromInput()
Purges input array from primary key value and returns it this method is void by defaulkt, it must be overridden by derived class if necessary
protected
extractPrimaryKeyValueFromInput(mixed &$input) : mixed
Parameters
- $input : mixed
Return values
mixed —fitImage()
Resizes an image proprtionally to fit into a box of given width and height without stretching far original sizes
protected
static fitImage(string $path, int $width, int $height[, mixed $cropMethodConstantName = 'FIT_MAX' ]) : mixed
Parameters
- $path : string
- $width : int
- $height : int
- $cropMethodConstantName : mixed = 'FIT_MAX'
Return values
mixed —getAncestorPrimaryKeyFromRoute()
Loads CRUDL config which is mandatory for ERP and contains informations for the CRUDL interface to be exposed
protected
getAncestorPrimaryKeyFromRoute(mixed $ancestorSubjectKey, mixed $ancestorModelConfig) : mixed
Parameters
- $ancestorSubjectKey : mixed
- $ancestorModelConfig : mixed
Return values
mixed —getAreaCookie()
Gets current area cookie as an object
protected
getAreaCookie([string $propertyName = null ]) : object
Parameters
- $propertyName : string = null
Return values
object —the whole area cookie
getAuthenticatedUserData()
Return authenticated user data (if any)
protected
getAuthenticatedUserData() : mixed
Return values
mixed —object with user data | null
getList()
Gets the recordset for the list
protected
getList() : mixed
Return values
mixed —getModelRecordFromRoute()
Gets model record to operate on by route primary key value
protected
getModelRecordFromRoute() : mixed
Return values
mixed —getSaveFieldsData()
Gets save form input
protected
getSaveFieldsData() : object
Return values
object —with properties: ->primaryKeyValue: primary key value ->saveFieldsValues: array with values of fields to be saved indexed by fields names
getSaveFormData()
Gets any data necessary to the save form to be overridden if necessary by derived classes
protected
getSaveFormData() : mixed
Return values
mixed —getSubjectCookie()
Gets user options stored into cookie
protected
getSubjectCookie() : object
Return values
object —handleActionExecution()
Handles action execution
protected
handleActionExecution() : mixed
Return values
mixed —initTraits()
Inits used traits searching for magic method __initTrait[trait-name]
protected
initTraits() : mixed
Return values
mixed —insert()
Inserts record
protected
insert() : mixed
Return values
mixed —insertForm()
Insert form
protected
insertForm() : mixed
Return values
mixed —isAuthenticated()
Checks if user is currently authenticated
protected
isAuthenticated() : bool
Return values
bool —isNavigationRouteCurrentRoute()
Checks whether a given navigation route corresponds to the current route
protected
isNavigationRouteCurrentRoute(string $route) : mixed
Parameters
- $route : string
Return values
mixed —list()
Lists records
protected
list() : mixed
Return values
mixed —loadAreaNavigation()
Loads area navigation
protected
loadAreaNavigation() : mixed
Return values
mixed —loadCRUDLConfig()
Loads CRUDL config which is mandatory for ERP and contains informations for the CRUDL interface to be exposed
protected
loadCRUDLConfig() : mixed
Return values
mixed —loadLanguages()
Loads configured language
protected
loadLanguages() : mixed
Return values
mixed —loadModel()
Loads model at runtime
protected
loadModel(mixed $subject) : mixed
Parameters
- $subject : mixed
Return values
mixed —loadNavigation()
Loads area navigation from a file
protected
loadNavigation(string $path) : mixed
Parameters
- $path : string
Return values
mixed —loadNavigationLevel()
Loads a navigation level
protected
loadNavigationLevel(string $navigationName, array<string|int, mixed> &$loadedNavigationLevel[, object &$parentVoiceProperties = null ]) : mixed
Parameters
- $navigationName : string
- $loadedNavigationLevel : array<string|int, mixed>
- $parentVoiceProperties : object = null
Return values
mixed —loadSubjectConfig()
Loads subject config which is not (yet) mandatory for ERP TODO should hold actions informations currently stored into navigation configuration
protected
loadSubjectConfig() : mixed
Return values
mixed —moveRecord()
Moves record up/down
protected
moveRecord(mixed $direction) : mixed
Parameters
- $direction : mixed
Return values
mixed —moveRecordDown()
Moves record down
protected
moveRecordDown() : mixed
Return values
mixed —moveRecordUp()
Moves record up
protected
moveRecordUp() : mixed
Return values
mixed —output()
Outputs
protected
output(string $contentType, string $content) : mixed
Parameters
- $contentType : string
- $content : string
Return values
mixed —parseRecordActionRoute()
Parses a route which refers to a record
protected
parseRecordActionRoute(string $routePattern, object $record) : mixed
Parameters
- $routePattern : string
- $record : object
Return values
mixed —processPresetInputs()
Processes input for rpeset operation (like bulk ones)
protected
processPresetInputs() : mixed
Return values
mixed —processRecordsetForInput()
Processes a recordset to be used in a radio, checkbox or select mapping fields to value and label
protected
processRecordsetForInput(string $valueField, mixed $labelTokens, array<string|int, mixed> $recordset[, string $languageCode = null ][, mixed $valueProperty = 'value' ][, mixed $labelProperty = 'label' ][, mixed $extraFields = [] ]) : array<string|int, mixed>
Parameters
- $valueField : string
- $labelTokens : mixed
- $recordset : array<string|int, mixed>
- $languageCode : string = null
- $valueProperty : mixed = 'value'
- $labelProperty : mixed = 'label'
- $extraFields : mixed = []
Return values
array<string|int, mixed> —of records
processSaveFormInput()
Processes save form input to manipulate fields data before saving this method is void by default, it must be overridden by derived class if necessary It operates over input by reference and can return any type of extra data that will be inserted into the result of getSaveFieldsData
protected
processSaveFormInput(mixed &$input) : mixed
Parameters
- $input : mixed
Return values
mixed —redirect()
Redirects to a route
protected
redirect(string $route) : mixed
Parameters
- $route : string
Return values
mixed —renderTemplate()
Renders template and injects HTML code into response
protected
renderTemplate([string $templatePath = null ]) : mixed
Parameters
- $templatePath : string = null
Return values
mixed —renderTemplateCode()
Renders template and injects HTML code into response
protected
renderTemplateCode([string $templatePath = null ]) : string
Parameters
- $templatePath : string = null
Return values
string —resetSubjectAlerts()
Resests categorized alerts into subject cookie
protected
resetSubjectAlerts() : mixed
Return values
mixed —resizeAndCropImage()
Resizes (proprtionally to fit into a box of given width and ratio) and crops an image
protected
static resizeAndCropImage(string $path, int $width, mixed $imageRatio, mixed $cropMethodConstantName) : mixed
Parameters
- $path : string
- $width : int
- $imageRatio : mixed
- $cropMethodConstantName : mixed
Return values
mixed —resizeImage()
Resizes an image proprtionally to fit into a box of given width and height, stretching if necessary
protected
static resizeImage(string $path, int $width, int $height) : mixed
Parameters
- $path : string
- $width : int
- $height : int
Return values
mixed —setAreaCookie()
Sets a cookie into current area cookies portion
protected
setAreaCookie(string $propertyName, mixed $propertyValue) : mixed
Parameters
- $propertyName : string
- $propertyValue : mixed
Return values
mixed —setAreaCookieArray()
Sets a cookie into current area cookies portion
protected
setAreaCookieArray(array<string|int, mixed> $propertyNames, mixed $propertyValue) : mixed
Parameters
- $propertyNames : array<string|int, mixed>
- $propertyValue : mixed
Return values
mixed —setLanguage()
Gets & sets language
protected
setLanguage([mixed $languageCode = null ]) : mixed
Parameters
- $languageCode : mixed = null
Return values
mixed —setListQueryModifiers()
Checks information passed by list view that modifies model query: sorting, filtering and pagination
protected
setListQueryModifiers() : mixed
Return values
mixed —setNavigationVoiceParentsActive()
Sets recursevely voice parent as active
protected
setNavigationVoiceParentsActive(object $parentVoiceProperties) : mixed
Parameters
- $parentVoiceProperties : object
Tags
Return values
mixed —setSubjectAlert()
Sets a feedback categorized alert into subject cookie
protected
setSubjectAlert(string $severity, object $alert) : mixed
Parameters
- $severity : string
-
one of Bootstrap alert suffixes (https://getbootstrap.com/docs/4.3/components/alerts)
- $alert : object
-
object with alert informations: ->code: alphanumeric message code to be searched for into template alerts texts container ->rawMessage: a message (alternative to code) ->data: an array with any specific error code relevant data (such as involved field names), inserted into message by means of template format filter
Return values
mixed —setSubjectAlertFromException()
Sets a feedback categorized alert into subject cookie taking an exception message
protected
setSubjectAlertFromException(Exception $exception) : mixed
Parameters
- $exception : Exception
Return values
mixed —setSubjectCookie()
Sets an subject information to be stored into cookie
protected
setSubjectCookie(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed
Return values
mixed —setTemplateParameter()
pass a parameter to the template angine
protected
setTemplateParameter(string $parameterName, mixed $parameterValue) : mixed
Parameters
- $parameterName : string
- $parameterValue : mixed
Return values
mixed —setUploadMaxFilesizeTemplateParameters()
Sets template parameters necessary to file upload to be overridden if necessary by derived classes
protected
setUploadMaxFilesizeTemplateParameters() : mixed
Return values
mixed —storeAncestors()
Stores ancestors models searching for a ancestor-namespace\Model class
protected
storeAncestors() : mixed
Return values
mixed —storeCurrentSubjectRoot()
Stores current route subject root
protected
storeCurrentSubjectRoot() : mixed
Return values
mixed —storeModel()
Stores model searching for a subject-namespace\Model class
protected
storeModel() : mixed
Return values
mixed —storeRequest()
Stores request and related informations
protected
storeRequest(ServerRequestInterface $request) : mixed
Parameters
- $request : ServerRequestInterface
Return values
mixed —storeSubject()
Stores subject
protected
storeSubject() : mixed
Return values
mixed —stp()
short alias for the - much used - setTemplateParameter method
protected
stp(string $parameterName, mixed $parameterValue) : mixed
Parameters
- $parameterName : string
- $parameterValue : mixed
Return values
mixed —turnPathToUrl()
Turns a local path from root into an URL prepending current scheme and domain
protected
turnPathToUrl(string $path) : string
Parameters
- $path : string
Return values
string —update()
Updates record
protected
update() : mixed
Return values
mixed —updateForm()
Update form
protected
updateForm() : mixed
Return values
mixed —upload()
Uploads a file posted through the upload field of a form
protected
upload() : mixed
Return values
mixed —verifyAuthentication()
Checks if authenticaion is needed and is valid
protected
verifyAuthentication() : bool
Return values
bool —buildCommonTemplateHelpers()
Builds common template helpers NOTE: do not change visibility
private
buildCommonTemplateHelpers() : mixed
Return values
mixed —buildPathToContextTemplatesCache()
Builds the path to a context template cache
private
buildPathToContextTemplatesCache(string $context) : mixed
Parameters
- $context : string
Return values
mixed —buildPathToTranslationsCache()
Builds the path to the translations cache
private
buildPathToTranslationsCache() : mixed
Return values
mixed —checkActionPermission()
Loads subject navigation which is *always* needed for ERP
private
checkActionPermission() : mixed
Return values
mixed —generateStartingPotFile()
Generate .pot file to start a new translation
private
generateStartingPotFile() : mixed
Return values
mixed —generateTemplatesCache()
Generate templates cache for both share and local templates
private
generateTemplatesCache(string $context, string $pathToTemplatesFolder) : mixed
Parameters
- $context : string
- $pathToTemplatesFolder : string
Return values
mixed —generateTemplatesCaches()
Generate templates cache for both share and local templates
private
generateTemplatesCaches(string $context) : mixed
Parameters
- $context : string
Return values
mixed —generateUpdatedLanguagePoFile()
Generate updated .po file for each language update local - cache totale -
private
generateUpdatedLanguagePoFile(string $context, object $language) : mixed
Parameters
- $context : string
- $language : object
Return values
mixed —generateUpdatedLanguagePoFileBAK()
Generate updated .po file for each language
private
generateUpdatedLanguagePoFileBAK(object $language) : mixed
Parameters
- $language : object
Return values
mixed —generateUpdatedPoFile()
Generate updated .po file for each language
private
generateUpdatedPoFile(string $context) : mixed
Parameters
- $context : string
Return values
mixed —setCommonTemplateParameters()
Sets common template parameters
private
setCommonTemplateParameters() : mixed