PHPFusion\httpdownload::download_ex PHP Метод

download_ex() публичный Метод

public download_ex ( $size )
    function download_ex($size)
    {
        if (!$this->initialize()) {
            return FALSE;
        }
        ignore_user_abort(TRUE);
        //Use seek end here
        if ($this->seek_start > $size - 1) {
            $this->seek_start = 0;
        }
        if ($this->seek_end <= 0) {
            $this->seek_end = $size - 1;
        }
        $this->header($size, $seek, $this->seek_end);
        $this->data_mod = time();
        return TRUE;
    }