/** * Get posted data * * @param string $field Name of the field to retrieve OPTIONAL * * @return mixed */ protected function getPostedData($field = null) { $result = parent::getPostedData($field); if (parent::getPostedData('autogenerateCleanURL') && (!isset($field) || 'cleanURL' === $field)) { $value = $this->generateCleanURL(parent::getPostedData('name')); if (isset($field)) { $result = $value; } else { $result['cleanURL'] = $value; } } return $result; }