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

@@ -36,6 +36,14 @@ class HtmlView extends BaseHtmlView
*/
public mixed $item;
/**
* The app class
*
* @var Joomla___a6ee04f5_33c7_4a9b_aa6d_6a03f3715a88___Power
* @since 5.2.1
*/
public Joomla___a6ee04f5_33c7_4a9b_aa6d_6a03f3715a88___Power $app;
/**
* The input class
*
@@ -138,16 +146,19 @@ class HtmlView extends BaseHtmlView
// set params
$this->params = Joomla___aeb8e463_291f_4445_9ac4_34b637c12dbd___Power::getParams('com_###component###');
$this->useCoreUI = true;
// Assign the variables
$this->form ??= $this->get('Form');
$this->item = $this->get('Item');
$this->styles = $this->get('Styles');
$this->scripts = $this->get('Scripts');
$this->state = $this->get('State');
// Load module values
$model = $this->getModel();
$this->form ??= $model->getForm();
$this->item = $model->getItem();
$this->styles = $model->getStyles();
$this->scripts = $model->getScripts();
$this->state = $model->getState();
// get action permissions
$this->canDo = ###Component###Helper::getActions('###view###', $this->item);
// get application
$this->app ??= Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication();
// get input
$this->input ??= Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication()->input;
$this->input ??= method_exists($this->app, 'getInput') ? $this->app->getInput() : $this->app->input;
$this->ref = $this->input->get('ref', 0, 'word');
$this->refid = $this->input->get('refid', 0, 'int');
$return = $this->input->get('return', null, 'base64');