SearchViewHelper
in package
Uses
ArcheUtilTrait
Description of SearchViewHelper
Tags
Table of Contents
Properties
- $config : mixed
- $generalFunctions : mixed
- $repoDb : mixed
- $siteLang : mixed
- $data : mixed
- $metadata : mixed
- $objLang : mixed
- $searchObj : mixed
- $searchParams : mixed
- $searchViewObjectArray : mixed
Methods
- __construct() : mixed
- createMetaObj() : object
- Create object from the search values
- createResourceObject() : array<string|int, mixed>
- createView() : array<string|int, mixed>
- explodeSearchString() : void
- Fill the search object with the search metadata
- getCount() : int
- Get the count from the rest api result
- paramsToSqlParams() : array<string|int, mixed>
- processGraph() : array<string|int, mixed>
- Process the easyrdf graph data and create ResourceObject arrays
- extendActualObj() : mixed
- Extend the actual object with the shortcuts
- makeInsideUri() : string
- Create gui inside uri from the identifier
- checkSearchStringValues() : mixed
- checkSqlBasicParams() : mixed
- createObj() : object
- Create the root object for gui
- explodeCategorySearchStrValues() : array<string|int, mixed>
- Explode the categories url string to get the ID
- explodeSearchStringValues() : string
- explode the search string values
- explodeTypes() : array<string|int, mixed>
- Explode the search string types
- formatResultToGui() : array<string|int, mixed>
- We need to format the root results for the gui
- formatResultV2() : mixed
- getLiteralValues() : object
- getObjectValues() : array<string|int, mixed>
- getParams() : mixed
- getParamsCategory() : string
- getParamsType() : string
- getParamsWords() : string
- getResourceRepoIdentifier() : string
- getUriValues() : object
- processMetaValues() : mixed
- setAcdhId() : void
- setBasicParamValue() : array<string|int, mixed>
- setIDTypeAcdhId() : void
- setIDTypeRepoId() : void
- setIDTypeUri() : void
- setLanguage() : string
- Set the language tag for the object
- setTitle() : void
- setupLang() : string
- get the language for the result object
- setUpMetadata() : void
- the search object creation steps
- setUpRepoIdForExternalType() : void
- setUri() : void
Properties
$config
protected
mixed
$config
$generalFunctions
protected
mixed
$generalFunctions
$repoDb
protected
mixed
$repoDb
$siteLang
protected
mixed
$siteLang
$data
private
mixed
$data
= array()
$metadata
private
mixed
$metadata
$objLang
private
mixed
$objLang
= "en"
$searchObj
private
mixed
$searchObj
$searchParams
private
mixed
$searchParams
= []
$searchViewObjectArray
private
mixed
$searchViewObjectArray
Methods
__construct()
public
__construct([mixed $cfg = null ]) : mixed
Parameters
- $cfg : mixed = null
createMetaObj()
Create object from the search values
public
createMetaObj(string $metavalue) : object
Parameters
- $metavalue : string
Return values
objectcreateResourceObject()
public
createResourceObject(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>createView()
public
createView([array<string|int, mixed> $data = array() ][, int $version = 1 ]) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed> = array()
- $version : int = 1
Return values
array<string|int, mixed>explodeSearchString()
Fill the search object with the search metadata
public
explodeSearchString() : void
getCount()
Get the count from the rest api result
public
getCount(array<string|int, mixed> &$obj) : int
Parameters
- $obj : array<string|int, mixed>
Return values
intparamsToSqlParams()
public
paramsToSqlParams(string $metavalues) : array<string|int, mixed>
Parameters
- $metavalues : string
Return values
array<string|int, mixed>processGraph()
Process the easyrdf graph data and create ResourceObject arrays
public
processGraph(array<string|int, mixed> $obj) : array<string|int, mixed>
Parameters
- $obj : array<string|int, mixed>
Return values
array<string|int, mixed>extendActualObj()
Extend the actual object with the shortcuts
protected
extendActualObj([bool $root = false ]) : mixed
Parameters
- $root : bool = false
makeInsideUri()
Create gui inside uri from the identifier
protected
makeInsideUri(string $data) : string
Parameters
- $data : string
Return values
stringcheckSearchStringValues()
private
checkSearchStringValues(string $arr, string $f) : mixed
Parameters
- $arr : string
- $f : string
checkSqlBasicParams()
private
checkSqlBasicParams() : mixed
createObj()
Create the root object for gui
private
createObj(int $id, string $property, string $title, string $value) : object
Parameters
- $id : int
- $property : string
- $title : string
- $value : string
Return values
objectexplodeCategorySearchStrValues()
Explode the categories url string to get the ID
private
explodeCategorySearchStrValues(string $data) : array<string|int, mixed>
Parameters
- $data : string
Return values
array<string|int, mixed>explodeSearchStringValues()
explode the search string values
private
explodeSearchStringValues(string $data) : string
Parameters
- $data : string
Return values
stringexplodeTypes()
Explode the search string types
private
explodeTypes(string $data) : array<string|int, mixed>
Parameters
- $data : string
Return values
array<string|int, mixed>formatResultToGui()
We need to format the root results for the gui
private
formatResultToGui(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>formatResultV2()
private
formatResultV2(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
getLiteralValues()
private
getLiteralValues(array<string|int, mixed> $v) : object
Parameters
- $v : array<string|int, mixed>
Return values
objectgetObjectValues()
private
getObjectValues(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>getParams()
private
getParams(string $prop, string $meta) : mixed
Parameters
- $prop : string
- $meta : string
getParamsCategory()
private
getParamsCategory(string $values) : string
Parameters
- $values : string
Return values
stringgetParamsType()
private
getParamsType(string $values) : string
Parameters
- $values : string
Return values
stringgetParamsWords()
private
getParamsWords(string $values) : string
Parameters
- $values : string
Return values
stringgetResourceRepoIdentifier()
private
getResourceRepoIdentifier(mixed $id) : string
Parameters
- $id : mixed
Return values
stringgetUriValues()
private
getUriValues(array<string|int, mixed> $v) : object
Parameters
- $v : array<string|int, mixed>
Return values
objectprocessMetaValues()
private
processMetaValues(string $metavalues) : mixed
Parameters
- $metavalues : string
setAcdhId()
private
setAcdhId(object &$d) : void
Parameters
- $d : object
setBasicParamValue()
private
setBasicParamValue(string $param) : array<string|int, mixed>
Parameters
- $param : string
Return values
array<string|int, mixed>setIDTypeAcdhId()
private
setIDTypeAcdhId(object &$d) : void
Parameters
- $d : object
setIDTypeRepoId()
private
setIDTypeRepoId(object &$d) : void
Parameters
- $d : object
setIDTypeUri()
private
setIDTypeUri(object &$d) : void
Parameters
- $d : object
setLanguage()
Set the language tag for the object
private
setLanguage(object $obj) : string
Parameters
- $obj : object
Return values
stringsetTitle()
private
setTitle(object &$d) : void
Parameters
- $d : object
setupLang()
get the language for the result object
private
setupLang(string &$v) : string
Parameters
- $v : string
Return values
stringsetUpMetadata()
the search object creation steps
private
setUpMetadata() : void
setUpRepoIdForExternalType()
private
setUpRepoIdForExternalType(object &$d) : void
Parameters
- $d : object
setUri()
private
setUri(object &$d) : void
Parameters
- $d : object