Release of v5.1.2-alpha3

Migrates view HTML classes to use getModel() directly instead of the deprecated magic get() calls to model methods. Refactores event handling (contentPrepare, titlePrepare, contentBeforeDisplay, contentAfterDisplay) to use Joomla 5’s native event dispatcher via the model’s new getDispatcher() method. Updates table classes to properly support NULL values, both in the store() method and in table variable definitions. #1245. Extractes the setAutoCheckIn() and setCheckInCall() logic into a dedicated CheckInNow class for cleaner design. Replace all direct $app->input property calls with the recommended $app->getInput() method across the entire codebase.
This commit is contained in:
2025-09-03 20:34:41 +00:00
parent 129cdfe8da
commit c0aeb798db
381 changed files with 2788 additions and 1601 deletions

View File

@@ -50,9 +50,10 @@ class ###Component###Model###Views### extends ListModel
protected function populateState($ordering = null, $direction = null)
{
$app = Factory::getApplication();
$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input;
// Adjust the context to support modal layouts.
if ($layout = $app->input->get('layout'))
if ($layout = $input->get('layout'))
{
$this->context .= '.' . $layout;
}###POPULATESTATE###