{
"require": {
"MMO/CoreLib": [
2020270,
"[MMO] Core Library v2.2.2+"
]
}
}
mcl_diff_for_humanmcl_phrase_pluralmcl_phrase_plural function to retrieve the phrase for a given "count".MMO\CoreLib\Option\UserGroup - Displays a list of user groups with the ability to select a checkbox type.MMO\CoreLib\Option\UserUpgrade - Displays a list of promotions of user groups with the ability to select the type of checkboxMMO\CoreLib\Option\CustomFields\Contact - Displays additional user fields of type contactsMMO\CoreLib\Option\CustomFields\Personal - Displays additional user fields of type personalsMMO\CoreLib\Option\CustomFields\Prefefernces - Displays additional user fields of type preferencesMacroable - A trait to dynamically add methods to a class.$macroableClass = new class() {
use Illuminate\Support\Traits\Macroable;
};
$macroableClass::macro('concatenate', function(... $strings) {
return implode('-', $strings);
};
$macroableClass->concatenate('one', 'two', 'three'); // returns 'one-two-three'
macro function will be bound to the class$macroableClass = new class() {
protected $name = 'myName';
use Illuminate\Support\Traits\Macroable;
};
$macroableClass::macro('getName', function() {
return $this->name;
};
$macroableClass->getName(); // returns 'myName'
MMO\CoreLib\Util\Collection class provides a fluent, convenient wrapper for working with arrays of data. The collect helper returns a new MMO\CoreLib\Util\Collection instance for the given array. So, creating a collection is as simple as:$collection = collect([1, 2, 3]);MMO\CoreLib\Util\Collection class' macro method accepts a closure that will be executed when your macro is called. The macro closure may access the collection's other methods via $this, just as if it were a real method of the collection class.{
"require": {
"MMO/CoreLib": [
2020270,
"[MMO] Core Library v2.2.2+"
]
}
}
mcl_diff_for_humanmcl_phrase_pluralmcl_phrase_plural function to retrieve the phrase for a given "count".MMO\CoreLib\Option\UserGroup - Displays a list of user groups with the ability to select a checkbox type.MMO\CoreLib\Option\UserUpgrade - Displays a list of promotions of user groups with the ability to select the type of checkboxMMO\CoreLib\Option\CustomFields\Contact - Displays additional user fields of type contactsMMO\CoreLib\Option\CustomFields\Personal - Displays additional user fields of type personalsMMO\CoreLib\Option\CustomFields\Prefefernces - Displays additional user fields of type preferencesMacroable - A trait to dynamically add methods to a class.$macroableClass = new class() {
use Illuminate\Support\Traits\Macroable;
};
$macroableClass::macro('concatenate', function(... $strings) {
return implode('-', $strings);
};
$macroableClass->concatenate('one', 'two', 'three'); // returns 'one-two-three'
macro function will be bound to the class$macroableClass = new class() {
protected $name = 'myName';
use Illuminate\Support\Traits\Macroable;
};
$macroableClass::macro('getName', function() {
return $this->name;
};
$macroableClass->getName(); // returns 'myName'
MMO\CoreLib\Util\Collection class provides a fluent, convenient wrapper for working with arrays of data. The collect helper returns a new MMO\CoreLib\Util\Collection instance for the given array. So, creating a collection is as simple as:$collection = collect([1, 2, 3]);MMO\CoreLib\Util\Collection class' macro method accepts a closure that will be executed when your macro is called. The macro closure may access the collection's other methods via $this, just as if it were a real method of the collection class.This resource has a discussion thread on the forum where you can ask questions, report issues, and talk with the author and other users.
Inactive member accounts are automatically deleted after 1 month. Some countries cannot register and are not allowed to register on this website, there is a reason for that.
All duplicate accounts will be banned and a warning will be issued to the primary account holder.
To ensure a positive and productive experience for everyone, please take a moment to review the site's guidelines and community rules outlined in the link here. Website Rules of Conduct