-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1087 - add getVariantBase()
This implements feature request #237 by adding the requested method: `IItem::getVariantBase()`.
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* This file is part of MetaModels/core. | ||
* | ||
* (c) 2012-2015 The MetaModels team. | ||
* (c) 2012-2017 The MetaModels team. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -14,7 +14,8 @@ | |
* @subpackage Core | ||
* @author Christian Schiffler <[email protected]> | ||
* @author Stefan Heimes <[email protected]> | ||
* @copyright 2012-2015 The MetaModels team. | ||
* @author Richard Henkenjohann <[email protected]> | ||
* @copyright 2012-2017 The MetaModels team. | ||
* @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0 | ||
* @filesource | ||
*/ | ||
|
@@ -107,10 +108,19 @@ public function isVariantBase(); | |
* | ||
* @param \MetaModels\Filter\IFilter $objFilter The filter settings to be applied. | ||
* | ||
* @return \MetaModels\IItems A list of all variants for this item. | ||
* @return \MetaModels\IItems|null A list of all variants for this item or null if the item cannot handle variants. | ||
*/ | ||
public function getVariants($objFilter); | ||
|
||
/** | ||
* Fetch the meta model variant base for this item. | ||
* | ||
* Note: For a non-variant item the variant base is the item itself. | ||
* | ||
* @return IItem The variant base. | ||
*/ | ||
public function getVariantBase(); | ||
|
||
/** | ||
* Save the current data for every attribute to the data sink. | ||
* | ||
|
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