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) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $directory | string | |
| $configuration | object |

__construct(string $directory, object $configuration, string $classname) : voidinherited
Constructor
Inherited from:Parameters
| Name | Type | Description |
|---|---|---|
| $directory | string | |
| $configuration | object | |
| $classname | string |

_create(object $configuration, object $filter, object $condition, string $field, string $collectionId) : stringCreate
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) : arrayCheck
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $recheckTime | \Broker\number |
| Type | Description |
|---|---|
| array |

create(object $configuration, object $filter, object $condition, string $field) : stringCreate
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $configuration | object | |
| $filter | object | |
| $condition | object | |
| $field | string |
| Type | Description |
|---|---|
| string |

createFromCollection(object $configuration, string $collectionId) : stringCreate 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) : arraystatic
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) : booleanDo check
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $dontReintialise | boolean |
| Type | Description |
|---|---|
| boolean |

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

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

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

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

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

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

setInitialised(string $key, object $configuration, string $solrUrl, string $solrCreateRequest, string $solrCheckRequest, string $solrShards, string $collectionIds) : voidSet 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) : voidSet unchecked
Parameters
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $solrCheckStatus | string |

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