[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/maximebf/debugbar/src/DebugBar/DataCollector/ -> AggregatedCollector.php (summary)

(no description)

File Size: 191 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

AggregatedCollector:: (14 methods):
  __construct()
  addCollector()
  getCollectors()
  setMergeProperty()
  getMergeProperty()
  setSort()
  getSort()
  collect()
  sort()
  getName()
  offsetSet()
  offsetGet()
  offsetExists()
  offsetUnset()


Class: AggregatedCollector  - X-Ref

Aggregates data from multiple collectors

<code>
$aggcollector = new AggregateCollector('foobar');
$aggcollector->addCollector(new MessagesCollector('msg1'));
$aggcollector->addCollector(new MessagesCollector('msg2'));
$aggcollector['msg1']->addMessage('hello world');
</code>
__construct($name, $mergeProperty = null, $sort = false)   X-Ref

param: string $name
param: string $mergeProperty
param: boolean $sort

addCollector(DataCollectorInterface $collector)   X-Ref

param: DataCollectorInterface $collector

getCollectors()   X-Ref

return: array

setMergeProperty($property)   X-Ref
Merge data from one of the key/value pair of the collected data

param: string $property

getMergeProperty()   X-Ref

return: string

setSort($sort)   X-Ref
Sorts the collected data

If true, sorts using sort()
If it is a string, sorts the data using the value from a key/value pair of the array

param: bool|string $sort

getSort()   X-Ref

return: bool|string

collect()   X-Ref

return: array

sort($data)   X-Ref
Sorts the collected data

param: array $data
return: array

getName()   X-Ref

return: string

offsetSet($key, $value)   X-Ref

param: mixed $key
param: mixed $value

offsetGet($key)   X-Ref

param: mixed $key
return: mixed

offsetExists($key)   X-Ref

param: mixed $key
return: bool

offsetUnset($key)   X-Ref

param: mixed $key



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer