CoreFiles by mySites.guru
VersionableModelInterface.php34 lines, 776 bytes, from Joomla_6.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.0.0-beta1
md5
0561591b963a388cd2ac50387ad1155c
sha1
256cf8b5bb8451e7403deda91706ac95c725b3b4
sha256
293bc12005cab1a55458b4cf910e96b1bc5ad8455cf7c903a7b49977f6b5cbba
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2025 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Versioning;

// phpcs:disable PSR1.Files.SideEffects

\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Interface for a versionable model.
 *
 * @since  6.0.0
 */
interface VersionableModelInterface
{
    /**
     * Method to load a row for editing from the version history table.
     *
     * @param   integer  $historyId  Key to the version history table.
     *
     * @return  boolean  False on failure or error, true otherwise.
     *
     * @since   6.0.0
     */
    public function loadHistory(int $historyId);
}

The same content is in 2 releases, Joomla 6.0.0-beta1 to 6.0.0-beta2. See them all, or every version of this file.