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.
42 lines
1.4 KiB
PHP
42 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @package Joomla.Component.Builder
|
|
*
|
|
* @created 4th September 2022
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
// No direct access to this JCB template file (EVER)
|
|
defined('_JCB_TEMPLATE') or die;
|
|
?>
|
|
###BOM###
|
|
|
|
###ADMIN_VIEWS_MODAL_HEADER###
|
|
|
|
// No direct access to this file
|
|
defined('_JEXEC') or die;###LICENSE_LOCKED_DEFINED###
|
|
|
|
/** @var \###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Administrator\View\###Views###\HtmlView $this */
|
|
|
|
$app = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication();
|
|
|
|
if ($app->isClient('site'))
|
|
{
|
|
Joomla___5ba38513_5c4f_4b0d_935e_49e986a6bce8___Power::checkToken('get') or die(Joomla___ba6326ef_cb79_4348_80f4_ab086082e3c5___Power::_('JINVALID_TOKEN'));
|
|
}
|
|
|
|
// dynamic selection of title key (link in modal)
|
|
$input = method_exists($app, 'getInput') ? $app->getInput() : $app->input;
|
|
$this->modalTitleKey = $input->get('titleKey', 'id', 'word');
|
|
|
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
|
$wa = $this->getDocument()->getWebAssetManager();
|
|
$wa->useScript('core')
|
|
->useScript('multiselect')
|
|
->useScript('modal-content-select');
|
|
?>
|
|
###VIEWS_MODAL_BODY######VIEWS_FOOTER_SCRIPT###
|