Powerful Search for use in JCB extensions
Go to file
Robot a8bce7c630
update 2023-05-01 14:00:54
2023-05-01 14:00:58 +02:00
src update 2023-05-01 14:00:54 2023-05-01 14:00:58 +02:00
README.md update 2023-05-01 14:00:54 2023-05-01 14:00:58 +02:00
super-powers.json update 2023-05-01 14:00:54 2023-05-01 14:00:58 +02:00

README.md

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

What is JCB Super Powers?

The Joomla Component Builder (JCB) Super Power features are designed to enhance JCB's functionality and streamline the development process. These Super Powers enable developers to efficiently manage and share their custom powers across multiple JCB instances through repositories hosted on https://git.vdm.dev/[username]/[repository-name]. JCB Super Powers are managed using a combination of layers, events, tasks, methods, switches, and algorithms, which work together to provide powerful customization and extensibility options. More details on JCB Super Powers can be found in the Super Powers Documentation.

In summary, JCB Super Powers offer a flexible and efficient way to manage and share functionalities between JCB instances. By utilizing a sophisticated system of layers, events, tasks, methods, switches, and algorithms, developers can seamlessly integrate JCB core powers and their custom powers. For more information on how to work with JCB Super Powers, refer to the Super Powers User Guide.

What can I find here?

This repository contains an index (see below) of all the approved powers within the JCB GUI. During the compilation of a component, these powers are automatically added to the repository, ensuring a well-organized and accessible collection of functionalities.

Index of powers

Class Diagrams

namespace VDM\Joomla\Componentbuilder\Search

@startuml

namespace VDM\Joomla\Componentbuilder\Search #Olive {


  abstract Factory  #Orange {
    # static $container
    + {static} _() : Mixed
    + {static} getContainer() : Container
    # {static} createContainer() : Container
  }

  class Agent  #Gold {
    # Config $config
    # Load $load
    # Insert $insert
    # Find $find
    # Replace $replace
    # Search $search
    # Update $update
    # Table $table
    # string $return
    # array $marker
    # array $markerHtml
    + __construct()
    + getValue() : ?string
    + setValue() : bool
    + table() : ?array
    + find() : ?array
    + replace() : int
    # getRow() : array
    # getRowCode() : string
    # getRowEditButton() : string
    # setReturnValue() : void
    # setMarkers() : void
  }

  class Config  #Gold {
    # getTypesearch() : ?int
    # getSearchvalue() : ?string
    # getReplacevalue() : string
    # getMatchcase() : int
    # getWholeword() : int
    # getRegexsearch() : int
    # getComponentid() : int
    # getTablename() : ?string
    # getFieldname() : ?string
    # getItemid() : int
    # getFieldcounter() : int
    # getLinecounter() : int
    # getMarkerstart() : string
    # getMarkerend() : string
  }
}


@enduml

VDM Joomla Componentbuilder Search Abstraction

namespace VDM\Joomla\Componentbuilder\Search\Abstraction

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Abstraction #LightGreen {


  abstract Engine  #Orange {
    # Config $config
    # ?string $searchValue
    # string $replaceValue
    # int $matchCase
    # int $wholeWord
    # string $start
    # string $end
    + __construct()
    # lineCounter()
  }
}


@enduml

VDM Joomla Componentbuilder Search Agent

namespace VDM\Joomla\Componentbuilder\Search\Agent

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Agent #LightGreen {


  class Find  #Gold {
    # array $found
    # Config $config
    # Search $search
    + __construct()
    + get() : ?array
    + item() : void
    + items() : void
    + reset() : void
  }

  class Replace  #Gold {
    # array $updated
    # Config $config
    # Update $update
    + __construct()
    + get() : ?array
    + item() : void
    + items() : void
    + reset() : void
  }

  class Search  #Gold {
    # array $found
    # Config $config
    # SearchEngine $search
    + __construct()
    + get() : ?array
    + value() : bool
    + reset() : void
    # searchValue() : ?array
    # string() : ?array
    # prep() : void
    # fieldCounter()
  }

  class Update  #Gold {
    # SearchEngine $search
    + __construct()
    + value() : mixed
    # updateValue() : mixed
    # validateUpdateKey() : bool
    # string() : string
  }
}


@enduml

VDM Joomla Componentbuilder Search Database

namespace VDM\Joomla\Componentbuilder\Search\Database

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Database #LightGreen {


  class Insert  #Gold {
    # Config $config
    # Table $table
    # Model $model
    # \JDatabaseDriver $db
    + __construct()
    + value() : bool
    + item() : bool
    + items() : bool
  }

  class Load  #Gold {
    # int $bundle
    # Config $config
    # Table $table
    # Model $model
    # Database $load
    + __construct()
    + value() : mixed
    + item() : ?object
    + items() : ?array
    # next() : int
    # incremental() : int
    # setDatabaseFields() : ?array
  }
}


@enduml

VDM Joomla Componentbuilder Search Engine

namespace VDM\Joomla\Componentbuilder\Search\Engine

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Engine #LightGreen {


  class Basic  #Gold {
    # string $regexValue
    + __construct()
    + string() : ?string
    + replace() : string
    # replaceWhole() : string
    # searchWhole() : ?string
    + match() : bool
    # searchAll() : ?string
    # replaceAll() : string
  }

  class Regex  #Gold {
    # string $regexValue
    + __construct()
    + string() : ?string
    + replace() : string
    + match() : bool
  }
}


@enduml

VDM Joomla Componentbuilder Search Interfaces

namespace VDM\Joomla\Componentbuilder\Search\Interfaces

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Interfaces #LightGreen {


  interface FindInterface  #Lavender {
    + get() : ?array
    + item() : void
    + items() : void
    + reset() : void
  }

  interface InsertInterface  #Lavender {
    + value() : bool
    + item() : bool
    + items() : bool
  }

  interface LoadInterface  #Lavender {
    + value() : mixed
    + item() : ?object
    + items() : ?array
  }

  interface ReplaceInterface  #Lavender {
    + get() : ?array
    + item() : void
    + items() : void
    + reset() : void
  }

  interface SearchInterface  #Lavender {
    + get() : ?array
    + value() : bool
    + reset() : void
  }

  interface SearchTypeInterface  #Lavender {
    + string() : ?string
    + replace() : string
  }
}


@enduml

VDM Joomla Componentbuilder Search Model

namespace VDM\Joomla\Componentbuilder\Search\Model

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Model #LightGreen {


  class Insert  #Gold {
    # Config $config
    + __construct()
    + value() : mixed
    # validateBefore() : bool
    # validateAfter() : bool
    # getTable() : string
  }

  class Load  #Gold {
    # Config $config
    + __construct()
    + value() : mixed
    # validateBefore() : bool
    # validateAfter() : bool
    # getTable() : string
  }
}


@enduml

VDM Joomla Componentbuilder Search Service

namespace VDM\Joomla\Componentbuilder\Search\Service

@startuml

namespace VDM\Joomla\Componentbuilder\Search\Service #LightGreen {


  class Agent  #Gold {
    + register() : void
    + getAgent() : SearchAgent
    + getFind() : Find
    + getReplace() : Replace
    + getSearch() : Search
    + getUpdate() : Update
  }

  class Database  #Gold {
    + register() : void
    + getLoad() : Load
    + getDatabaseLoad() : LoadDatabase
    + getDatabaseInsert() : InsertDatabase
  }

  class Model  #Gold {
    + register() : void
    + getModelLoad() : Load
    + getModelInsert() : Insert
  }

  class Search  #Gold {
    # $searchEngine
    + register() : void
    + getConfig() : Config
    + getTable() : Table
    + getRegex() : Regex
    + getBasic() : Basic
    + getSearch() : SearchEngine
  }
}


@enduml

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

Build with Joomla Component Builder