-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backporting a few of the versioning classes to ease transition from 3…
….x to 4.0
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Versioning; | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
/** | ||
* Defines the trait for a Versionable Controller Class. | ||
* Note: This is a placeholder to ease transition to the new system in 4.0 | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
trait VersionableControllerTrait | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Versioning; | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
/** | ||
* Defines the trait for a Versionable Model Class. | ||
* Note: This is a placeholder to ease transition to the new system in 4.0 | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
trait VersionableModelTrait | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Joomla! Content Management System | ||
* | ||
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\CMS\Versioning; | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
use Joomla\CMS\Table\TableInterface; | ||
|
||
/** | ||
* Interface for a versionable Table class | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
interface VersionableTableInterface extends TableInterface | ||
{ | ||
/** | ||
* Get the type alias for the history table | ||
* | ||
* The type alias generally is the internal component name with the | ||
* content type. Ex.: com_content.article | ||
* | ||
* @return string The alias as described above | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function getTypeAlias(); | ||
} |