update 2023-05-01 14:00:54
This commit is contained in:
parent
f0d3000280
commit
06941e45b1
@ -39,7 +39,6 @@ This repository contains an index (see below) of all the approved powers within
|
|||||||
|
|
||||||
- **interface Cryptinterface** | [Details](src/81de8f57-dd9c-4a17-964f-848cd4a0743b) | [Code](src/81de8f57-dd9c-4a17-964f-848cd4a0743b/code.php) | [Settings](src/81de8f57-dd9c-4a17-964f-848cd4a0743b/settings.json) | [81de8f57-dd9c-4a17-964f-848cd4a0743b](src/81de8f57-dd9c-4a17-964f-848cd4a0743b)
|
- **interface Cryptinterface** | [Details](src/81de8f57-dd9c-4a17-964f-848cd4a0743b) | [Code](src/81de8f57-dd9c-4a17-964f-848cd4a0743b/code.php) | [Settings](src/81de8f57-dd9c-4a17-964f-848cd4a0743b/settings.json) | [81de8f57-dd9c-4a17-964f-848cd4a0743b](src/81de8f57-dd9c-4a17-964f-848cd4a0743b)
|
||||||
- **interface FactoryInterface** | [Details](src/caf33c5d-858c-4f9a-894f-ab302ec5445a) | [Code](src/caf33c5d-858c-4f9a-894f-ab302ec5445a/code.php) | [Settings](src/caf33c5d-858c-4f9a-894f-ab302ec5445a/settings.json) | [caf33c5d-858c-4f9a-894f-ab302ec5445a](src/caf33c5d-858c-4f9a-894f-ab302ec5445a)
|
- **interface FactoryInterface** | [Details](src/caf33c5d-858c-4f9a-894f-ab302ec5445a) | [Code](src/caf33c5d-858c-4f9a-894f-ab302ec5445a/code.php) | [Settings](src/caf33c5d-858c-4f9a-894f-ab302ec5445a/settings.json) | [caf33c5d-858c-4f9a-894f-ab302ec5445a](src/caf33c5d-858c-4f9a-894f-ab302ec5445a)
|
||||||
- **interface InsertInterface** | [Details](src/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48) | [Code](src/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48/code.php) | [Settings](src/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48/settings.json) | [ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48](src/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48)
|
|
||||||
- **interface LoadInterface** | [Details](src/2ad31f74-f579-499d-b98b-c4f54fd615dd) | [Code](src/2ad31f74-f579-499d-b98b-c4f54fd615dd/code.php) | [Settings](src/2ad31f74-f579-499d-b98b-c4f54fd615dd/settings.json) | [2ad31f74-f579-499d-b98b-c4f54fd615dd](src/2ad31f74-f579-499d-b98b-c4f54fd615dd)
|
- **interface LoadInterface** | [Details](src/2ad31f74-f579-499d-b98b-c4f54fd615dd) | [Code](src/2ad31f74-f579-499d-b98b-c4f54fd615dd/code.php) | [Settings](src/2ad31f74-f579-499d-b98b-c4f54fd615dd/settings.json) | [2ad31f74-f579-499d-b98b-c4f54fd615dd](src/2ad31f74-f579-499d-b98b-c4f54fd615dd)
|
||||||
- **interface Mapperdoubleinterface** | [Details](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f) | [Code](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f/code.php) | [Settings](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f/settings.json) | [fbc58009-fa16-4d49-a0dd-419c3b62d42f](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f)
|
- **interface Mapperdoubleinterface** | [Details](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f) | [Code](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f/code.php) | [Settings](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f/settings.json) | [fbc58009-fa16-4d49-a0dd-419c3b62d42f](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f)
|
||||||
- **interface Mappersingleinterface** | [Details](src/78527c29-24ad-4735-ad4c-ec33a4952d9b) | [Code](src/78527c29-24ad-4735-ad4c-ec33a4952d9b/code.php) | [Settings](src/78527c29-24ad-4735-ad4c-ec33a4952d9b/settings.json) | [78527c29-24ad-4735-ad4c-ec33a4952d9b](src/78527c29-24ad-4735-ad4c-ec33a4952d9b)
|
- **interface Mappersingleinterface** | [Details](src/78527c29-24ad-4735-ad4c-ec33a4952d9b) | [Code](src/78527c29-24ad-4735-ad4c-ec33a4952d9b/code.php) | [Settings](src/78527c29-24ad-4735-ad4c-ec33a4952d9b/settings.json) | [78527c29-24ad-4735-ad4c-ec33a4952d9b](src/78527c29-24ad-4735-ad4c-ec33a4952d9b)
|
||||||
@ -481,14 +480,6 @@ namespace VDM\Joomla\Componentbuilder\Interfaces #Olive {
|
|||||||
+ {static} getContainer() : Container
|
+ {static} getContainer() : Container
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InsertInterface #Lavender {
|
|
||||||
+ defaults() : void
|
|
||||||
+ rows() : bool
|
|
||||||
+ items() : bool
|
|
||||||
+ row() : bool
|
|
||||||
+ item() : bool
|
|
||||||
}
|
|
||||||
|
|
||||||
interface LoadInterface #Lavender {
|
interface LoadInterface #Lavender {
|
||||||
+ rows() : ?array
|
+ rows() : ?array
|
||||||
+ items() : ?array
|
+ items() : ?array
|
||||||
|
@ -1,79 +0,0 @@
|
|||||||
```
|
|
||||||
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
||||||
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
||||||
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
||||||
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
||||||
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
||||||
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
||||||
```
|
|
||||||
# interface InsertInterface (Details)
|
|
||||||
> namespace: **VDM\Joomla\Componentbuilder\Interfaces**
|
|
||||||
```uml
|
|
||||||
@startuml
|
|
||||||
interface InsertInterface #Lavender {
|
|
||||||
+ defaults(bool $trigger = true) : void
|
|
||||||
+ rows(array $data, string $table, ...) : bool
|
|
||||||
+ items(array $data, string $table, ...) : bool
|
|
||||||
+ row(array $data, string $table) : bool
|
|
||||||
+ item(object $data, string $table) : bool
|
|
||||||
}
|
|
||||||
|
|
||||||
note right of InsertInterface::defaults
|
|
||||||
Switch to prevent/allow defaults from being added.
|
|
||||||
|
|
||||||
since: 3.2.0
|
|
||||||
return: void
|
|
||||||
end note
|
|
||||||
|
|
||||||
note right of InsertInterface::rows
|
|
||||||
Insert rows to the database (with remapping and filtering columns option)
|
|
||||||
|
|
||||||
since: 3.2.0
|
|
||||||
return: bool
|
|
||||||
|
|
||||||
arguments:
|
|
||||||
array $data
|
|
||||||
string $table
|
|
||||||
array $columns = []
|
|
||||||
end note
|
|
||||||
|
|
||||||
note right of InsertInterface::items
|
|
||||||
Insert items to the database (with remapping and filtering columns option)
|
|
||||||
|
|
||||||
since: 3.2.0
|
|
||||||
return: bool
|
|
||||||
|
|
||||||
arguments:
|
|
||||||
array $data
|
|
||||||
string $table
|
|
||||||
array $columns = []
|
|
||||||
end note
|
|
||||||
|
|
||||||
note right of InsertInterface::row
|
|
||||||
Insert row to the database
|
|
||||||
|
|
||||||
since: 3.2.0
|
|
||||||
return: bool
|
|
||||||
end note
|
|
||||||
|
|
||||||
note right of InsertInterface::item
|
|
||||||
Insert item to the database
|
|
||||||
|
|
||||||
since: 3.2.0
|
|
||||||
return: bool
|
|
||||||
end note
|
|
||||||
|
|
||||||
@enduml
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
```
|
|
||||||
██╗ ██████╗██████╗
|
|
||||||
██║██╔════╝██╔══██╗
|
|
||||||
██║██║ ██████╔╝
|
|
||||||
██ ██║██║ ██╔══██╗
|
|
||||||
╚█████╔╝╚██████╗██████╔╝
|
|
||||||
╚════╝ ╚═════╝╚═════╝
|
|
||||||
```
|
|
||||||
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
||||||
|
|
@ -1,79 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* @package Joomla.Component.Builder
|
|
||||||
*
|
|
||||||
* @created 4th September, 2022
|
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace VDM\Joomla\Componentbuilder\Interfaces;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Database Insert Interface
|
|
||||||
*
|
|
||||||
* @since 3.2.0
|
|
||||||
*/
|
|
||||||
interface InsertInterface
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Switch to prevent/allow defaults from being added.
|
|
||||||
*
|
|
||||||
* @param bool $trigger toggle the defaults
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function defaults(bool $trigger = true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert rows to the database (with remapping and filtering columns option)
|
|
||||||
*
|
|
||||||
* @param array $data Dataset to store in database [array of arrays (key => value)]
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
* @param array $columns Data columns for remapping and filtering
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function rows(array $data, string $table, array $columns = []): bool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert items to the database (with remapping and filtering columns option)
|
|
||||||
*
|
|
||||||
* @param array $data Data to store in database (array of objects)
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
* @param array $columns Data columns for remapping and filtering
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function items(array $data, string $table, array $columns = []): bool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert row to the database
|
|
||||||
*
|
|
||||||
* @param array $data Dataset to store in database (key => value)
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function row(array $data, string $table): bool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert item to the database
|
|
||||||
*
|
|
||||||
* @param object $data Dataset to store in database (key => value)
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function item(object $data, string $table): bool;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
|||||||
/**
|
|
||||||
* Switch to prevent/allow defaults from being added.
|
|
||||||
*
|
|
||||||
* @param bool $trigger toggle the defaults
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function defaults(bool $trigger = true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert rows to the database (with remapping and filtering columns option)
|
|
||||||
*
|
|
||||||
* @param array $data Dataset to store in database [array of arrays (key => value)]
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
* @param array $columns Data columns for remapping and filtering
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function rows(array $data, string $table, array $columns = []): bool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert items to the database (with remapping and filtering columns option)
|
|
||||||
*
|
|
||||||
* @param array $data Data to store in database (array of objects)
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
* @param array $columns Data columns for remapping and filtering
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function items(array $data, string $table, array $columns = []): bool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert row to the database
|
|
||||||
*
|
|
||||||
* @param array $data Dataset to store in database (key => value)
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function row(array $data, string $table): bool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert item to the database
|
|
||||||
*
|
|
||||||
* @param object $data Dataset to store in database (key => value)
|
|
||||||
* @param string $table The table where the data is being added
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
public function item(object $data, string $table): bool;
|
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"add_head": "0",
|
|
||||||
"add_licensing_template": "2",
|
|
||||||
"extends": "0",
|
|
||||||
"guid": "ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48",
|
|
||||||
"implements": null,
|
|
||||||
"load_selection": null,
|
|
||||||
"name": "InsertInterface",
|
|
||||||
"power_version": "1.0.0",
|
|
||||||
"system_name": "JCB.Interfaces.InsertInterface",
|
|
||||||
"type": "interface",
|
|
||||||
"use_selection": null,
|
|
||||||
"namespace": "VDM\\Joomla\\Componentbuilder.Interfaces.InsertInterface",
|
|
||||||
"description": "Database Insert Interface\r\n\r\n@since 3.2.0",
|
|
||||||
"licensing_template": "\/**\r\n * @package Joomla.Component.Builder\r\n *\r\n * @created 4th September, 2022\r\n * @author Llewellyn van der Merwe <https:\/\/dev.vdm.io>\r\n * @git Joomla Component Builder <https:\/\/git.vdm.dev\/joomla\/Component-Builder>\r\n * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.\r\n * @license GNU General Public License version 2 or later; see LICENSE.txt\r\n *\/\r\n",
|
|
||||||
"head": "",
|
|
||||||
"composer": ""
|
|
||||||
}
|
|
@ -29,16 +29,6 @@
|
|||||||
"path": "src\/2ad31f74-f579-499d-b98b-c4f54fd615dd",
|
"path": "src\/2ad31f74-f579-499d-b98b-c4f54fd615dd",
|
||||||
"guid": "2ad31f74-f579-499d-b98b-c4f54fd615dd"
|
"guid": "2ad31f74-f579-499d-b98b-c4f54fd615dd"
|
||||||
},
|
},
|
||||||
"ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48": {
|
|
||||||
"name": "InsertInterface",
|
|
||||||
"type": "interface",
|
|
||||||
"namespace": "VDM\\Joomla\\Componentbuilder\\Interfaces",
|
|
||||||
"code": "src\/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48\/code.php",
|
|
||||||
"power": "src\/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48\/code.power",
|
|
||||||
"settings": "src\/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48\/settings.json",
|
|
||||||
"path": "src\/ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48",
|
|
||||||
"guid": "ad12ca1c-d3ce-4e7f-88c5-c6c92bdedc48"
|
|
||||||
},
|
|
||||||
"2da6d6c4-eb29-4d69-8bc2-36d96e916adf": {
|
"2da6d6c4-eb29-4d69-8bc2-36d96e916adf": {
|
||||||
"name": "Tableinterface",
|
"name": "Tableinterface",
|
||||||
"type": "interface",
|
"type": "interface",
|
||||||
|
Loading…
Reference in New Issue
Block a user