NAME
Strehler::Helpers - Helpers
DESCRIPTION
Just few methods used in Strehler that could come useful throughtout in the application and also while developing on top of Strehler.
FUNCTIONS
- slugify
-
arguments: $string
return value: $slugified
This method take a string and return the slugified version of it. Used to retrieve articles.
- class_from_entity
-
arguments: entity
return value $class
Return the $class related to the given entity
- get_categorized_entities
-
return value @entities
Return all the entities using categories
- standard_entities
-
return value @entities
Return standard entities defined in Strehler core.
- entities_list
-
return value @entities
Return all the entities managed by the system
- top_bars
-
return value \@editor_menu, \@admin_menu
Used to build the structure of the top bar, considering access level
- class_from_plural
-
argument: $class_plural
return value $class
Return a class from its plural name.
- public_directory
-
return value $dir
Return public directory as configured by Dancer2, using Dancer2 explicit configuration, but with a fallback calculated on configuration directory.
- check_statics
-
return value $checked
Return true is static version configured in VERSION file under public directory is the same configured in Strehler module.
- list_parameters_init
-
arguments: $entity, $session, $params
return value @parametes
Take entity, session values and parameters from request and calculate all the parameters that will be used for list page.
Parameters considered are listed by the function list_parameters_names