protected function saveBlocksFromFolder($folder)
    {
        $ids = [];
        if (is_dir($folder)) {
            foreach (FileHelper::findFiles($folder) as $blockItem) {
                $ids[] = $this->saveBlockByPath($blockItem);
            }
        }
        
        return $ids;
    }
protected function saveBlocksFromFolder($folder)
    {
        $ids = [];
        if (is_dir($folder)) {
            foreach (FileHelper::findFiles($folder) as $blockItem) {
                $ids[] = $this->saveBlockByPath($blockItem);
            }
        }
        
        return $ids;
    }
protected function saveBlocksFromFolder ( $ folder ) { $ ids = [ ] ; if ( is_dir ( $ folder ) ) { foreach ( FileHelper :: findFiles ( $ folder ) as $ blockItem ) { $ ids [ ] = $ this -> saveBlockByPath ( $ blockItem ) ; } } return $ ids ; }
Save all blocks from a given folder.

@param string $folder
@return number[]|boolean[]
@since 1.0.8
Save all blocks from a given folder .