forked from joomla/super-powers
Update 2024-09-13 05:08:13
This commit is contained in:
parent
e78ebe5eeb
commit
599c54d774
@ -107,6 +107,7 @@ class File implements ServiceProviderInterface
|
||||
public function getDisplay(Container $container): Display
|
||||
{
|
||||
return new Display(
|
||||
$container->get('Data.Item'),
|
||||
$container->get('Data.Items')
|
||||
);
|
||||
}
|
||||
|
@ -78,6 +78,7 @@
|
||||
public function getDisplay(Container $container): Display
|
||||
{
|
||||
return new Display(
|
||||
$container->get('Data.Item'),
|
||||
$container->get('Data.Items')
|
||||
);
|
||||
}
|
@ -12,11 +12,11 @@
|
||||
```uml
|
||||
@startuml
|
||||
class Display << (F,LightGreen) >> #RoyalBlue {
|
||||
# Items $items
|
||||
# Item $item
|
||||
# Items $items
|
||||
# array $fileTypes
|
||||
# array $fileTypeTasks
|
||||
+ __construct(Items $items, Item $item)
|
||||
+ __construct(Item $item, Items $items)
|
||||
+ get(string $entity, string $target) : ?array
|
||||
# setFileTypeTask(object $file) : void
|
||||
# setFileDownloadLink(object $file) : void
|
||||
|
@ -14,8 +14,8 @@ namespace VDM\Joomla\Componentbuilder\File;
|
||||
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use VDM\Joomla\Interfaces\Data\ItemsInterface as Items;
|
||||
use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
|
||||
use VDM\Joomla\Interfaces\Data\ItemsInterface as Items;
|
||||
|
||||
|
||||
/**
|
||||
@ -25,14 +25,6 @@ use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
|
||||
*/
|
||||
final class Display
|
||||
{
|
||||
/**
|
||||
* The Items Class.
|
||||
*
|
||||
* @var Items
|
||||
* @since 5.0.2
|
||||
*/
|
||||
protected Items $items;
|
||||
|
||||
/**
|
||||
* The Item Class.
|
||||
*
|
||||
@ -41,6 +33,14 @@ final class Display
|
||||
*/
|
||||
protected Item $item;
|
||||
|
||||
/**
|
||||
* The Items Class.
|
||||
*
|
||||
* @var Items
|
||||
* @since 5.0.2
|
||||
*/
|
||||
protected Items $items;
|
||||
|
||||
/**
|
||||
* The file types
|
||||
*
|
||||
@ -60,15 +60,15 @@ final class Display
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Items $items The Items Class.
|
||||
* @param Item $item The Item Class.
|
||||
* @param Items $items The Items Class.
|
||||
*
|
||||
* @since 5.0.2
|
||||
*/
|
||||
public function __construct(Items $items, Item $item)
|
||||
public function __construct(Item $item, Items $items, )
|
||||
{
|
||||
$this->items = $items;
|
||||
$this->item = $item;
|
||||
$this->items = $items;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,11 +1,3 @@
|
||||
/**
|
||||
* The Items Class.
|
||||
*
|
||||
* @var Items
|
||||
* @since 5.0.2
|
||||
*/
|
||||
protected Items $items;
|
||||
|
||||
/**
|
||||
* The Item Class.
|
||||
*
|
||||
@ -14,6 +6,14 @@
|
||||
*/
|
||||
protected Item $item;
|
||||
|
||||
/**
|
||||
* The Items Class.
|
||||
*
|
||||
* @var Items
|
||||
* @since 5.0.2
|
||||
*/
|
||||
protected Items $items;
|
||||
|
||||
/**
|
||||
* The file types
|
||||
*
|
||||
@ -33,15 +33,15 @@
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Items $items The Items Class.
|
||||
* @param Item $item The Item Class.
|
||||
* @param Items $items The Items Class.
|
||||
*
|
||||
* @since 5.0.2
|
||||
*/
|
||||
public function __construct(Items $items, Item $item)
|
||||
public function __construct(Item $item, Items $items, )
|
||||
{
|
||||
$this->items = $items;
|
||||
$this->item = $item;
|
||||
$this->items = $items;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10,13 +10,13 @@
|
||||
"system_name": "Joomla.File.Display",
|
||||
"type": "final class",
|
||||
"use_selection": {
|
||||
"use_selection0": {
|
||||
"use": "7212e4db-371f-4cfd-8122-32e9bb100d83",
|
||||
"as": "Items"
|
||||
},
|
||||
"use_selection1": {
|
||||
"use": "05744dd3-4030-4cf8-8dda-a93ab809b473",
|
||||
"as": "Item"
|
||||
},
|
||||
"use_selection0": {
|
||||
"use": "7212e4db-371f-4cfd-8122-32e9bb100d83",
|
||||
"as": "Items"
|
||||
}
|
||||
},
|
||||
"extendsinterfaces": null,
|
||||
|
Loading…
Reference in New Issue
Block a user