public function getTypes()
    {
        //Gets the folders list
        list($folders) = (new Folder(UPLOADED))->read(true, true);

        //Each folder is a file type supported by KCFinder
        foreach ($folders as $type) {
            $types[$type] = '';
        }

        //Adds the "images" type by default
        $types['images'] = '*img';

        return $types;
    }
public function getTypes()
    {
        //Gets the folders list
        list($folders) = (new Folder(UPLOADED))->read(true, true);

        //Each folder is a file type supported by KCFinder
        foreach ($folders as $type) {
            $types[$type] = '';
        }

        //Adds the "images" type by default
        $types['images'] = '*img';

        return $types;
    }
public function getTypes ( ) { //Gets the folders list list ( $ folders ) = ( new Folder ( UPLOADED ) ) -> read ( true , true ) ; //Each folder is a file type supported by KCFinder foreach ( $ folders as $ type ) { $ types [ $ type ] = '' ; } //Adds the "images" type by default $ types [ 'images' ] = '*img' ; return $ types ; }
Gets the file types supported by KCFinder
@return array
Gets the file types supported by KCFinder