includes/class/Collection.class.php
Broker
- Package
- Broker
\Broker\Collection
Package: Broker
















Collection
- Parent(s)
- \Broker\Database
- Inherited_from
- \Broker\Database
Properties
Methods


__construct(string $directory, \Broker\unknown $configuration) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$directory | string | |
$configuration | \Broker\unknown |


__construct(string $directory, \Broker\unknown $configuration, string $classname) : void
inherited
Constructor
Inherited from:Parameters
Name | Type | Description |
---|---|---|
$directory | string | |
$configuration | \Broker\unknown | |
$classname | string |


_create(\Broker\unknown $configuration, \Broker\unknown $filter, \Broker\unknown $condition, string $field, string $collectionId) : string
Create
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | \Broker\unknown | |
$filter | \Broker\unknown | |
$condition | \Broker\unknown | |
$field | string | |
$collectionId | string |
Type | Description |
---|---|
string |


check(string $key, \Broker\number $recheckTime = 60) : array
Check
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$recheckTime | \Broker\number |
Type | Description |
---|---|
array |


create(\Broker\unknown $configuration, \Broker\unknown $filter, \Broker\unknown $condition, string $field) : string
Create
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | \Broker\unknown | |
$filter | \Broker\unknown | |
$condition | \Broker\unknown | |
$field | string |
Type | Description |
---|---|
string |


createFromCollection(\Broker\unknown $configuration, string $collectionId) : string
Create from collection
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | \Broker\unknown | |
$collectionId | string |
Type | Description |
---|---|
string |


createHash(\Broker\unknown $configuration, \Broker\unknown $filter, \Broker\unknown $condition, \Broker\unknown $field, \Broker\unknown $collectionId) : array
static
Create hash
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | \Broker\unknown | |
$filter | \Broker\unknown | |
$condition | \Broker\unknown | |
$field | \Broker\unknown | |
$collectionId | \Broker\unknown |
Type | Description |
---|---|
array |


doCheck(string $key, boolean $dontReintialise = false) : boolean
Do check
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$dontReintialise | boolean |
Type | Description |
---|---|
boolean |


errorCheck(string $source, \PDOStatement $query, boolean $removeDatabase) : void
inherited
Check for errors
Inherited from:Parameters
Name | Type | Description |
---|---|---|
$source | string | |
$query | \PDOStatement | |
$removeDatabase | boolean |


generateKey(\Broker\number $length = 20) : string
Generate key
Parameters
Returns
Name | Type | Description |
---|---|---|
$length | \Broker\number |
Type | Description |
---|---|
string |


getList(\Broker\number $start, \Broker\number $number) : array
Get list
Parameters
Returns
Name | Type | Description |
---|---|---|
$start | \Broker\number | |
$number | \Broker\number |
Type | Description |
---|---|
array |


getWithDependencies(array $keys) : array
Get with dependencies
Parameters
Returns
Name | Type | Description |
---|---|---|
$keys | array |
Type | Description |
---|---|
array |


setChecked(string $key, string $solrCheckStatus) : void
Set checked
Parameters
Name | Type | Description |
---|---|---|
$key | string | |
$solrCheckStatus | string |


setCreated(string $key, string $solrCreateStatus) : void
Set created
Parameters
Name | Type | Description |
---|---|---|
$key | string | |
$solrCreateStatus | string |


setInitialised(string $key, \Broker\unknown $configuration, string $solrUrl, string $solrCreateRequest, string $solrCheckRequest, string $solrShards, string $collectionIds) : void
Set initialised
Parameters
Name | Type | Description |
---|---|---|
$key | string | |
$configuration | \Broker\unknown | |
$solrUrl | string | |
$solrCreateRequest | string | |
$solrCheckRequest | string | |
$solrShards | string | |
$collectionIds | string |


setUnchecked(string $key, string $solrCheckStatus = null) : void
Set unchecked
Parameters
Name | Type | Description |
---|---|---|
$key | string | |
$solrCheckStatus | string |


setUncreated(string $key, string $solrCreateStatus) : void
Set uncreated
Parameters
Name | Type | Description |
---|---|---|
$key | string | |
$solrCreateStatus | string |