+ if ($category) {
+ $label = ucfirst($category) . ' Constants';
+ $ret[$label] = $this->getConstants($category);
+ }
+
+ if (!$user && !$internal && !$category) {
+ $ret['Constants'] = $this->getConstants();
+ }
+
+ return array_map(array($this, 'prepareConstants'), array_filter($ret));