Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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();
 }