Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($name, $mergeProperty=null, $sort=false) | |
addCollector (DataCollectorInterface $collector) | |
getCollectors () | |
setMergeProperty ($property) | |
getMergeProperty () | |
setSort ($sort) | |
getSort () | |
collect () | |
getName () | |
offsetSet ($key, $value) | |
offsetGet ($key) | |
offsetExists ($key) | |
offsetUnset ($key) | |
Fonctions membres protégées | |
sort ($data) | |
Attributs protégés | |
$name | |
$mergeProperty | |
$sort | |
$collectors = array() | |
Aggregates data from multiple collectors
$aggcollector = new AggregateCollector('foobar'); $aggcollector->addCollector(new MessagesCollector('msg1')); $aggcollector->addCollector(new MessagesCollector('msg2')); $aggcollector['msg1']->addMessage('hello world');
string | $name | |
string | $mergeProperty | |
boolean | $sort |
Références AggregatedCollector\$mergeProperty, AggregatedCollector\$name, AggregatedCollector\$sort, name, et AggregatedCollector\sort().
addCollector | ( | DataCollectorInterface | $collector | ) |
DataCollectorInterface | $collector |
Références DataCollectorInterface\getName().
collect | ( | ) |
Implémente DataCollectorInterface.
Références $data, AggregatedCollector\$mergeProperty, null, et AggregatedCollector\sort().
getCollectors | ( | ) |
Références AggregatedCollector\$collectors.
getMergeProperty | ( | ) |
Références AggregatedCollector\$mergeProperty.
getName | ( | ) |
getSort | ( | ) |
Références AggregatedCollector\$sort.
offsetExists | ( | $key | ) |
offsetGet | ( | $key | ) |
offsetSet | ( | $key, | |
$value | |||
) |
mixed | $key | |
mixed | $value |
DebugBarException |
offsetUnset | ( | $key | ) |
mixed | $key |
DebugBarException |
setMergeProperty | ( | $property | ) |
Merge data from one of the key/value pair of the collected data
string | $property |
setSort | ( | $sort | ) |
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
bool | string | $sort |
Références AggregatedCollector\$sort, et AggregatedCollector\sort().
|
protected |
Sorts the collected data
array | $data |
Références $b, $data, AggregatedCollector\$sort, et elseif.
Référencé par AggregatedCollector\__construct(), AggregatedCollector\collect(), et AggregatedCollector\setSort().
|
protected |
Référencé par AggregatedCollector\getCollectors().
|
protected |
|
protected |
Référencé par AggregatedCollector\__construct(), et AggregatedCollector\getName().
|
protected |