public function supportedExtensions($dot = false)
    {
        $extensions = array();
        foreach ($this->getHandlers() as $handler) {
            if (!empty($handler['extensions'])) {
                $extensions += array_merge($extensions, (array) $handler['extensions']);
            }
        }

        $extensions = array_unique($extensions);

        if ($dot) {
            $extensions = array_map(function ($value) {
                return ".$value";
            }, $extensions);
        }

        return $extensions;
    }
public function supportedExtensions($dot = false)
    {
        $extensions = array();
        foreach ($this->getHandlers() as $handler) {
            if (!empty($handler['extensions'])) {
                $extensions += array_merge($extensions, (array) $handler['extensions']);
            }
        }

        $extensions = array_unique($extensions);

        if ($dot) {
            $extensions = array_map(function ($value) {
                return ".$value";
            }, $extensions);
        }

        return $extensions;
    }
public function supportedExtensions ( $ dot = false ) { $ extensions = array ( ) ; foreach ( $ this -> getHandlers ( ) as $ handler ) { if ( ! empty ( $ handler [ 'extensions' ] ) ) { $ extensions += array_merge ( $ extensions , ( array ) $ handler [ 'extensions' ] ) ; } } $ extensions = array_unique ( $ extensions ) ; if ( $ dot ) { $ extensions = array_map ( function ( $ value ) { return ".$value" ; } , $ extensions ) ; } return $ extensions ; }
Returns an array of all supported file extensions
@param boolean $dot
@return array
Returns an array of all supported file extensions