A collection of useful classes and helpers that can save you a bundle of development time.
This plugin is also included into the following bundles
Cumulus Bundle
Create SaaS application using all Cumulus products and Power Components.
Cumulus Bundle
Create SaaS application using all Cumulus products and Power Components.
- Cumulus Core
- Cumulus subscriptions
- InIT DRY
- Money
- + 2 more
Car rental
Everything that's needed to make a car rental software
Car rental
Everything that's needed to make a car rental software
- InIT DRY
- Money
- Let's rent
- Let's rent cars
The following plugins extend or depend on the plugin
Cumulus Core
The heart and start point of any Cumulus application
Cumulus Core
The heart and start point of any Cumulus application
Let's rent
The core component for building a rental database
Let's rent
The core component for building a rental database
Let's rent cars
The perfect solution for any car rental business
Let's rent cars
The perfect solution for any car rental business
PluginRegistrationManager
The PluginRegistrationManager
was created to run and merge the output of any register methods from Plugin.php
in your system. Using the manager you can define your own registersomething method which returns an array of merged arrays.
The manager is Singleton
so the example usage would be as follows:
$pluginRegistrationManager = PluginRegistrationManager::instance(); $registeredDefinitions = $pluginRegistrationManager->runMethod('registerMyPluginDefinitions');
Helpers
Class with commonly used functions that do not belong to any other helpers.
getUser() : mixed Get currently logged in user and timestamp 'last seen' Returns: mixed — (User || null) getFileListToDropdown() : array Helper to be used in models to list all cms pages in dropdown Returns: array — pages base file names getPageUrl(string $pageCode, \Cms\Classes\Theme $theme = null) : string Get url of page using page code Parameters: string $pageCode page code \Cms\Classes\Theme $theme theme object Returns: string — url
StringHelpers
Class with string helpers.
random_str(integer $length, string $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') : string A method by Scott Arciszewski: https://stackoverflow.com/a/31107425 Generate a random string, using a cryptographically secure pseudorandom number generator (random_int) Parameters: integer $length How many characters do we want? string $keyspace A string of all possible characters to select from Returns: string ucwords(string $string, array $delimiters = array(' ', '-', '\'', '"', ".")) : string Upper case every word after the delimiter Parameters: string $string string to upper case after all delimiters array $delimiters array of delimiters to uppercase after Returns: string — parsed string mb_ucfirst(string $string, string $encoding = 'UTF-8') : string First letter uppercase in string Parameters: string $string string to make first letter upper case string $encoding encoding Returns: string — First letter uppercased string
-
This plugin has not been reviewed yet.
-
1.1.0 |
Update for RainLab.User 3 Oct 06, 2024 |
---|---|
1.0.7 |
Update for October 3.6 May 31, 2024 |
1.0.6 |
Update FullPluginTestCase to reflect the newest PluginTestCase Jul 03, 2022 |
1.0.5 |
Fake Storage in testcase Jan 22, 2022 |
1.0.4 |
Added ManageDirectory trait Jul 31, 2019 |
1.0.3 |
Fixed Helpers class Dec 14, 2018 |
1.0.2 |
Fixed docs, added string helpers Dec 13, 2018 |
1.0.1 |
First version of InitDry Dec 11, 2018 |