/** * Returns the allowed file extensions. * * @return mixed The extension map or false */ protected function getAllowedFileExtensions() { if (!is_null($this->allowedExtensions) && $this->allowedExtensions instanceof Map && $this->allowedExtensions->size() > 0) { return $this->allowedExtensions->trim(); } return false; }
/** * Returns the data of the XML element as a map. * * @param string $name Element name [optional] * * @return Map */ public function getMap($name = null) { $map = new Map($this->getArray($name)); return $map->trim(); }