id: 51 name: cmp.getlist.class.php category: MyComponent properties: null ----- toArray(); if (array_key_exists('category', $fields)) { if (!empty($fields['category'])) { $categoryObj = $this->modx->getObject('modCategory', $fields['category']); if ($categoryObj) { $fields['category'] = $categoryObj->get('category'); } else { $fields['category'] = $this->modx->lexicon('invalid_category'); } } else { $fields['category'] = $this->modx->lexicon('none'); } } if (array_key_exists('template', $fields)) { if (!empty($fields['template'])) { $templateObj = $this->modx->getObject('modTemplate', $fields['template']); if ($templateObj) { $fields['template'] = $templateObj->get('category'); } else { $fields['template'] = $this->modx->lexicon('invalid_template'); } } else { $fields['template'] = $this->modx->lexicon('none'); } } return $fields; } } return 'mc_ProcessorTypeProcessor';