Download the PHP package heimrichhannot/contao-haste_plus without Composer
On this page you can find all versions of the php package heimrichhannot/contao-haste_plus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-haste_plus
More information about heimrichhannot/contao-haste_plus
Files in heimrichhannot/contao-haste_plus
Package contao-haste_plus
Short Description An extension for the contao haste module.
License LGPL-3.0-or-later
Homepage https://github.com/heimrichhannot/contao-haste_plus
Informations about the package contao-haste_plus
Please note:
This bundle is deprecated and not actively maintained anymore!
Haste Plus
Haste plus extends codefog/contao-haste as a collection of tools and classes to ease working with Contao.
Module Preview
Features
Cache
The PHP high-performance object caching system, phpfastcache is part of hast_plus. Currently only File-Caching is supported, but Pull-Request are welcome.
Example : FileCache
Security
Add security headers to http request (configurable in tl_settings)
- IFRAME Clickjacking Protection: X-Frame-Options: SAMEORIGIN
- Allow Origins Check: Access-Control-Allow-Origins & Access-Control-Allow-Headers
These options don't work anymore with Contao 4! Further Information
Input/Widget rgxp
The following regular expression can be used to validate widget input.
Name | Example | Description |
---|---|---|
customDate | customDate::d.m | Validate custom date format against input. |
price | price | Validate price input. |
posfloat | posfloat | Validate float numbers in input. |
maxlength | maxlength::120 | Validate the user input without html elements against the input given length. |
Utils
The following Classes and Methods are helpers that ease the working with Contao.
Class | Description |
---|---|
Files | Contains helper function for working with files and filenames. |
PaymentUtils | Contains helper functions for payment relevant use cases. |
StringUtils | Contains helper function for working with strings. |
Type | Name | Method | Description |
---|---|---|---|
Url | addScheme | \HeimrichHannot\Haste\Util\Url::addScheme($strUrl, $strScheme) | Add the given protocol/scheme (http://,https://,ftp://…) to the given url if not present. |
Arrays | filterByPrefixes | \HeimrichHannot\Haste\Util\Arrays::filterByPrefixes($arrData, $arrayPrefixes) | Filter an array by given prefixes and return the filtered array. |
Arrays | getListPositonCssClass | \HeimrichHannot\Haste\Util\Arrays::getListPositonCssClass($key, $arrList, $blnReturnAsArray) | Create the class names for an item within a array list |
Google Maps
If you want to add google maps with ease that are build from dynamic entities, and not withing dlh_googlemaps backend module, use the following code.
Inserttags
Tag | Arguments | Example |
---|---|---|
trimsplit | 1st: the delimiter, 2nd: the value | {{trimsplit::,::2,1}} |
encrypt | 1st: the value | {{encrypt::my secret value}} |
Developer notes
- provide a minimum of 3 unit test for each test case of a util method
Notification Tokens
- Added
##form_submission_html_all##
, an equivalent to##formsubmission##
but for html format
All versions of contao-haste_plus with dependencies
contao/core-bundle Version ^4.4.52 || ^4.13
codefog/contao-haste Version ^4.0 || ^5.0
tijsverkoyen/css-to-inline-styles Version ^2.2
phpfastcache/phpfastcache Version ^7.0
hackzilla/password-generator Version ^1.4
soundasleep/html2text Version ^1.1
globalcitizen/php-iban Version ~2.0 || ~3.0 || ~4.0
heimrichhannot/contao-components Version ^2.0