includes/class/Collection.class.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Broker
Package
Broker  

\Broker\Collection

Package: Broker
Collection
Parent(s)
\Broker\Database
Inherited_from
\Broker\Database  

Properties

>VPropertyprivatestring $classname
Classname
Details
Type
string
>VPropertypublicobject $configuration
Configuration
Details
Type
object
>VPropertypublic\PDO $database
Database
Details
Type
\PDO
>VPropertypublicstring $filename
Filename
Details
Type
string

Methods

methodpublic__construct(string $directory, object $configuration) : void

Constructor

Parameters
NameTypeDescription
$directorystring
$configurationobject
methodpublic__construct(string $directory, object $configuration, string $classname) : void
inherited

Constructor

Inherited from:
Parameters
NameTypeDescription
$directorystring
$configurationobject
$classnamestring
methodprivate_create(object $configuration, object $filter, object $condition, string $field, string $collectionId) : string

Create

Parameters
NameTypeDescription
$configurationobject
$filterobject
$conditionobject
$fieldstring
$collectionIdstring
Returns
TypeDescription
string
methodpubliccheck(string $key, \Broker\number $recheckTime = 60) : array

Check

Parameters
NameTypeDescription
$keystring
$recheckTime\Broker\number
Returns
TypeDescription
array
methodpublicclean() : void

Clean

methodpubliccreate(object $configuration, object $filter, object $condition, string $field) : string

Create

Parameters
NameTypeDescription
$configurationobject
$filterobject
$conditionobject
$fieldstring
Returns
TypeDescription
string
methodpubliccreateFromCollection(object $configuration, string $collectionId) : string

Create from collection

Parameters
NameTypeDescription
$configurationobject
$collectionIdstring
Returns
TypeDescription
string
methodprivatecreateHash(object $configuration, object $filter, object $condition, object $field, object $collectionId) : array
static

Create hash

Parameters
NameTypeDescription
$configurationobject
$filterobject
$conditionobject
$fieldobject
$collectionIdobject
Returns
TypeDescription
array
methodpublicdelete(string $key) : void

Delete

Parameters
NameTypeDescription
$keystring
methodpublicdoCheck(string $key, boolean $dontReintialise = false) : boolean

Do check

Parameters
NameTypeDescription
$keystring
$dontReintialiseboolean
Returns
TypeDescription
boolean
methodpublicdoInitialise(string $key) : void

Do initialise

Parameters
NameTypeDescription
$keystring
methodpublicerrorCheck(string $source, \PDOStatement $query, boolean $removeDatabase) : void
inherited

Check for errors

Inherited from:
Parameters
NameTypeDescription
$sourcestring
$query\PDOStatement
$removeDatabaseboolean
methodprivategenerateKey(\Broker\number $length = 20) : string

Generate key

Parameters
NameTypeDescription
$length\Broker\number
Returns
TypeDescription
string
methodpublicget(string $key) : array

Get

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
array
methodpublicgetList(\Broker\number $start, \Broker\number $number) : array

Get list

Parameters
NameTypeDescription
$start\Broker\number
$number\Broker\number
Returns
TypeDescription
array
methodpublicgetWithDependencies(array $keys) : array

Get with dependencies

Parameters
NameTypeDescription
$keysarray
Returns
TypeDescription
array
methodpublicinit() : void

Initialize

methodpublicinit() : void
abstractinherited

Init

Inherited from:
methodpublicnumber() : \Broker\number
inherited

Get number

Inherited from:
Returns
TypeDescription
\Broker\number
methodpublicreset() : void
inherited

Reset

Inherited from:
methodpublicsetChecked(string $key, string $solrCheckStatus) : void

Set checked

Parameters
NameTypeDescription
$keystring
$solrCheckStatusstring
methodpublicsetCreated(string $key, string $solrCreateStatus) : void

Set created

Parameters
NameTypeDescription
$keystring
$solrCreateStatusstring
methodpublicsetInitialised(string $key, object $configuration, string $solrUrl, string $solrCreateRequest, string $solrCheckRequest, string $solrShards, string $collectionIds) : void

Set initialised

Parameters
NameTypeDescription
$keystring
$configurationobject
$solrUrlstring
$solrCreateRequeststring
$solrCheckRequeststring
$solrShardsstring
$collectionIdsstring
methodpublicsetUnchecked(string $key, string $solrCheckStatus = null) : void

Set unchecked

Parameters
NameTypeDescription
$keystring
$solrCheckStatusstring
methodpublicsetUncreated(string $key, string $solrCreateStatus) : void

Set uncreated

Parameters
NameTypeDescription
$keystring
$solrCreateStatusstring
methodpublicsetUninitialised(string $key) : void

Set uninitialised

Parameters
NameTypeDescription
$keystring
Documentation was generated by phpDocumentor 2.8.5.