Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ public function optimize()
/**
* Method to handle a send a \JSON response. The body parameter
* can be an \Exception object for when an error has occurred or
* a CMSObject for a good response.
* an object for a good response.
*
* @param \Joomla\CMS\Object\CMSObject|\Exception $data CMSObject on success, \Exception on error. [optional]
* @param object|\Exception $data CMSObject on success, \Exception on error. [optional]
*
* @return void
*
Expand Down
8 changes: 0 additions & 8 deletions administrator/components/com_users/src/Helper/UsersHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Helper\UserGroupsHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\CMSObject;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand All @@ -28,13 +27,6 @@
*/
class UsersHelper extends ContentHelper
{
/**
* @var CMSObject A cache for the available actions.
* @since 1.6
* @deprecated 5.3 will be removed in 7.0 without replacement
*/
protected static $actions;

/**
* Get a list of filter options for the blocked state of a user.
*
Expand Down
7 changes: 2 additions & 5 deletions libraries/src/Editor/Button/ButtonsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use Joomla\CMS\Event\Editor\EditorButtonsSetupEvent;
use Joomla\CMS\Factory;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\Event\DispatcherAwareInterface;
use Joomla\Event\DispatcherAwareTrait;
Expand Down Expand Up @@ -124,16 +123,14 @@ public function initRegistry(array $options = []): ButtonsRegistryInterface
@trigger_error('7.0 Button "' . $plugin->name . '" instance should be set up onEditorButtonsSetup event.', \E_USER_DEPRECATED);

// Transform Legacy buttons to Button object
if ($legacyButton instanceof CMSObject || $legacyButton instanceof Registry) {
if ($legacyButton instanceof Registry) {
$legacyButton = [$legacyButton];
}

if (\is_array($legacyButton)) {
foreach ($legacyButton as $i => $item) {
// Extract button properties
if ($item instanceof CMSObject) {
$props = $item->getProperties();
} elseif ($item instanceof Registry) {
if ($item instanceof Registry) {
$props = $item->toArray();
} else {
continue;
Expand Down
7 changes: 3 additions & 4 deletions libraries/src/Form/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\User\CurrentUserInterface;
use Joomla\CMS\User\CurrentUserTrait;
use Joomla\Database\DatabaseAwareInterface;
Expand Down Expand Up @@ -172,9 +171,9 @@ protected function bindLevel($group, $data)
if ($data instanceof Registry) {
// Handle a Registry.
$data = $data->toArray();
} elseif ($data instanceof CMSObject) {
// Handle a CMSObject.
$data = $data->getProperties();
} else {
// Handle an object.
$data = ArrayHelper::fromObject($data);
}
}

Expand Down
2 changes: 0 additions & 2 deletions libraries/src/Installer/InstallerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand All @@ -27,7 +26,6 @@
class InstallerExtension
{
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait;

/**
* Client ID of the extension
Expand Down
62 changes: 0 additions & 62 deletions libraries/src/Object/CMSObject.php

This file was deleted.

167 changes: 0 additions & 167 deletions libraries/src/Object/LegacyPropertyManagementTrait.php

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/src/Serializer/JoomlaSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Joomla\CMS\Serializer;

use Joomla\CMS\Factory;
use Joomla\CMS\Object\CMSObject;
use Tobscure\JsonApi\AbstractSerializer;
use Tobscure\JsonApi\Relationship;

Expand Down Expand Up @@ -61,11 +60,6 @@ public function getAttributes($post, ?array $fields = null)
throw new \InvalidArgumentException($message);
}

// The response from a standard AdminModel query also works for legacy objects which extends CMSObject
if ($post instanceof CMSObject) {
$post = $post->getProperties();
}

// The object response, from a standard ListModel query
if (\is_object($post)) {
$source = $post;
Expand Down
2 changes: 0 additions & 2 deletions libraries/src/Table/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\Database\DatabaseAwareInterface;
use Joomla\Database\DatabaseAwareTrait;
use Joomla\Database\DatabaseInterface;
Expand Down Expand Up @@ -43,7 +42,6 @@ abstract class Table extends \stdClass implements TableInterface, DispatcherAwar
use DispatcherAwareTrait;
use DatabaseAwareTrait;
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait;


/**
Expand Down
2 changes: 0 additions & 2 deletions libraries/src/Updater/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Object\LegacyErrorHandlingTrait;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\CMS\Table\Tuf as TufMetadata;
use Joomla\CMS\TUF\TufFetcher;
use Joomla\CMS\Version;
Expand All @@ -36,7 +35,6 @@
class Update
{
use LegacyErrorHandlingTrait;
use LegacyPropertyManagementTrait;

/**
* Update manifest `<name>` element
Expand Down
3 changes: 0 additions & 3 deletions libraries/src/Updater/UpdateAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Object\LegacyPropertyManagementTrait;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Version;
use Joomla\Database\DatabaseDriver;
Expand All @@ -32,8 +31,6 @@
*/
abstract class UpdateAdapter
{
use LegacyPropertyManagementTrait;

/**
* Parent
*
Expand Down
Loading
Loading