4
0
api-powers/src/c03b9c61-17d3-4774-a335-783903719f83
2023-06-02 04:47:47 +02:00
..
2023-06-02 04:47:47 +02:00
2023-06-02 04:47:47 +02:00
2023-06-02 04:47:47 +02:00
2023-06-02 04:47:47 +02:00

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

final class Load (Details)

namespace: VDM\Joomla\GetBible\Database

@startuml
class Load << (F,LightGreen) >> #Green {
  # Table $table
  # Model $model
  # Database $load
  + __construct(Table $table, Model $model, ...)
  + value(int $id, string $field, ...) : mixed
  + item(int $id, ?string $table) : ?object
  + items(array $ids, string $table) : ?array
}

note right of Load::__construct
  Constructor

  since: 2.0.1
  
  arguments:
    Table $table
    Model $model
    Database $load
end note

note right of Load::value
  Get a value from a given table
Example: $this->value(23, 'value_key', 'table_name');

  since: 2.0.1
  return: mixed
  
  arguments:
    int $id
    string $field
    string $table
end note

note right of Load::item
  Get values from a given table
Example: $this->item(23, 'table_name');

  since: 2.0.1
  return: ?object
end note

note right of Load::items
  Get values from a given table
Example: $this->items($ids, 'table_name');

  since: 2.0.1
  return: ?array
end note
 
@enduml

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

Build with Joomla Component Builder