super-powers/src/524eb8f6-38d4-47dc-92ad-98b94e099ac0
2024-04-07 13:20:46 +02:00
..
code.php update 2023-07-16 05:50:59 2023-07-16 05:51:03 +02:00
code.power update 2023-07-16 05:50:59 2023-07-16 05:51:03 +02:00
README.md update 2023-10-04 18:35:53 2023-10-04 20:23:30 +02:00
settings.json update 2024-04-07 13:20:18 2024-04-07 13:20:46 +02:00

██████╗  ██████╗ ██╗    ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝

final class Insert (Details)

namespace: VDM\Joomla\Database extends: Database

@startuml
class Insert << (F,LightGreen) >> #RoyalBlue {
  # bool $defaults
  + 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
  # getArrayColumns(array $data) : array
  # getObjectsColumns(array $data) : array
  # insert(array $data, string $table, ...) : bool
}

note right of Insert::defaults
  Switch to prevent/allow defaults from being added.

  since: 3.2.0
  return: void
end note

note left of Insert::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 Insert::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 left of Insert::row
  Insert row to the database

  since: 3.2.0
  return: bool
end note

note right of Insert::item
  Insert item to the database

  since: 3.2.0
  return: bool
end note

note left of Insert::getArrayColumns
  Get columns from data array

  since: 3.2.0
  return: array
end note

note right of Insert::getObjectsColumns
  Get columns from data objects

  since: 3.2.0
  return: array
end note

note left of Insert::insert
  Insert data into the database

  since: 3.2.0
  return: bool
  
  arguments:
    array $data
    string $table
    array $columns
    bool $isArray
end note
 
@enduml

     ██╗ ██████╗██████╗
     ██║██╔════╝██╔══██╗
     ██║██║     ██████╔╝
██   ██║██║     ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
 ╚════╝  ╚═════╝╚═════╝

Build with Joomla Component Builder