protected function prepareListFile(array &$list)
    {
        foreach ($list as &$item) {

            $path = strval(str_replace("\0", "", $item['path']));
            $item['url'] = '';

            if ($path && file_exists(GC_DIR_FILE . '/' . $path)) {
                $item['url'] = $this->url->file($item['path']);
            }
        }
    }
protected function prepareListFile(array &$list)
    {
        foreach ($list as &$item) {

            $path = strval(str_replace("\0", "", $item['path']));
            $item['url'] = '';

            if ($path && file_exists(GC_DIR_FILE . '/' . $path)) {
                $item['url'] = $this->url->file($item['path']);
            }
        }
    }
protected function prepareListFile ( array & $ list ) { foreach ( $ list as & $ item ) { $ path = strval ( str_replace ( "\0" , "" , $ item [ 'path' ] ) ) ; $ item [ 'url' ] = '' ; if ( $ path && file_exists ( GC_DIR_FILE . '/' . $ path ) ) { $ item [ 'url' ] = $ this -> url -> file ( $ item [ 'path' ] ) ; } } }
Prepare an array of files
@param array $list
Prepare an array of files