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, object $configuration) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$directory | string | |
$configuration | object |
__construct(string $directory, object $configuration, string $classname) : void
inherited
Constructor
Inherited from:Parameters
Name | Type | Description |
---|---|---|
$directory | string | |
$configuration | object | |
$classname | string |
_create(object $configuration, object $filter, object $condition, string $field, string $collectionId) : string
Create
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | object | |
$filter | object | |
$condition | object | |
$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(object $configuration, object $filter, object $condition, string $field) : string
Create
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | object | |
$filter | object | |
$condition | object | |
$field | string |
Type | Description |
---|---|
string |
createFromCollection(object $configuration, string $collectionId) : string
Create from collection
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | object | |
$collectionId | string |
Type | Description |
---|---|
string |
createHash(object $configuration, object $filter, object $condition, object $field, object $collectionId) : array
static
Create hash
Parameters
Returns
Name | Type | Description |
---|---|---|
$configuration | object | |
$filter | object | |
$condition | object | |
$field | object | |
$collectionId | object |
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, object $configuration, string $solrUrl, string $solrCreateRequest, string $solrCheckRequest, string $solrShards, string $collectionIds) : void
Set initialised
Parameters
Name | Type | Description |
---|---|---|
$key | string | |
$configuration | object | |
$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 |