protected function parseConfig($configParam)
{
$configItems = explode(',', $configParam);
foreach ($configItems as $configItem) {
$configItem = trim($configItem);
$pos = strpos($configItem, '-');
$cat = substr($configItem, 0, $pos);
$option = substr($configItem, $pos + 1);
if ($cat == 'mode') {
if ($option == 'count') {
$this->mode = 'count';
}
} else {
if ($cat == 'meta') {
if ($option == 'total-count') {
$this->meta[] = new CountMetaProvider('Meta-Total-Count', $this->originalQuery);
} else {
if ($option == 'filter-count') {
$this->meta[] = new CountMetaProvider('Meta-Filter-Count', $this->query);
}
}
} else {
if ($cat == 'response') {
if ($option == 'envelope') {
$this->envelope = true;
} else {
if ($option == 'default') {
$this->envelope = false;
}
}
}
}
}
}
}